如何获取本地IP地址?如何设置应用程序在开始运行?如何使用USB端口进行COM通信? [英] How to get local IP Address? How to setup an app to run in start? How can I use the USB port for COM communications?
问题描述
嗨!
我正在向Galileo移植几个arduino应用程序,我已经有了这个问题
I'm porting a couple of arduino apps to Galileo and I've got this questions
快速一个:我怎么知道伽利略设备的本地IP地址? (假设它连接到以太网电缆)
quick one: how do I know the local IP address of the galileo device? (Assuming it's connected to a ethernet cable)
快速二:如何设置一个特定的应用程序,以便在伽利略设备启动时自动运行?
quick two: how do I setup an specific app to be auto run when the galileo device is powered on?
快速三:如何在设备中设置和使用带有串行库的USB端口?我的意思是,当我启动创建SD引导的伽利略并且我将USB线连接到设备时,它在Windows中不再识别为COM设备
quick three: how can I setup and use the usb port with Serial library in the device? I mean, when I start the galileo with the SD bootable created and I plug an usb cable to the device, it doesn't recognize anymore in Windows as an COM device
提前感谢。
祝你好运
/ El Bruno
/El Bruno
MVP ALM(@elbruno )http://twitter.com/elbruno http://www.elbruno.com
MVP ALM (@elbruno) http://twitter.com/elbruno http://www.elbruno.com
推荐答案
您好,请查看GetAddrInfoW获取IP地址。 (https://msdn.microsoft.com/en-us/library/ms738519(v = VS.85).aspx)
Hi There, Look into GetAddrInfoW for getting the IP Address. (https://msdn.microsoft.com/en-us/library/ms738519(v=VS.85).aspx)
要在启动时启动应用,您需要将其添加到autorun.cmd(http://ms-iot.github.io/content/AdvancedUsage.htm#making-your-galileo-run-an-exe-on-boot)
To start your app at boot, you'll need to add it to autorun.cmd (http://ms-iot.github.io/content/AdvancedUsage.htm#making-your-galileo-run-an-exe-on-boot)
许多现代司机由于缺少SSE指令而无法使用伽利略。 Windows映像不包含很多驱动程序,因此您需要为正在使用的串行适配器安装驱动程序 - 这是一个关于添加驱动程序的演练(http://ms-iot.github.io/content/AdvancedUsage。 htm #add-a-driver-to-windows)
Many modern drivers won't work on galileo due to it missing SSE instructions. The Windows image does not contain many drivers, so you'll need to install a driver for the serial adapter you are using - Here's a walkthrough on adding a driver (http://ms-iot.github.io/content/AdvancedUsage.htm#add-a-driver-to-windows)
我希望这会有所帮助,
Lou
这篇关于如何获取本地IP地址?如何设置应用程序在开始运行?如何使用USB端口进行COM通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!