开发者

how to "usb to tty"?

I'm new to the C++ world but have strong knowledge in several languages (so i'm not THAT lost). I just received an usb missile launcher as a gift and wanted to control it via different platforms, including web. To do so, i was planning to use a "serial to socket" proxy i wrote in python (and then use socket after that...). I found an opensource driver for my device, but it does not appear as a tty r开发者_运维知识库esource (with ls /dev/tty.*). That way, i'm not able to read/write into it with the pyserial library i use in my python script. My question is about finding tutorial/howto on creating such tty resources and "wire" them to usb devices...

Hoping u'll understand :)

Thanks


on linux it is easy to access the usb ports directly using the libusb-dev package and tools. Of course commands etc... are vendor specific but there exist already libs for perl and python to control various usb missle launchers. E.g.:

http://code.google.com/p/pymissile/

https://metacpan.org/pod/Device::USB::MissileLauncher

Sorry that's not a solution but hopefully a good starting point ;-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜