-
- Posts: 5
- Joined: Mon Jun 11, 2012 3:26 pm
Python serial
I am sucessfully using C# (via the Serial example) to read and write a WirelessThings USB device on a Pi2. Is it possible to use Python to do this?
Re: Python serial
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016
-
- Posts: 5
- Joined: Mon Jun 11, 2012 3:26 pm
Re: Python serial
Thank you - unfortunately that does not answer the question - I can run Python apps on the RPi2 with Win IOT but I cannot see how to use the USB serial port. There doesn't appear to be a PySerial for this and I can't see how to connect to the underlying windows calls.
Re: Python serial
At the most recent close of play, the Pi's on-board UART is not available in Winiot, and there are no drivers for any USB serial dongles. Therefore there would be no point porting PySerial to Winiot.jcrouchley wrote:Thank you - unfortunately that does not answer the question - I can run Python apps on the RPi2 with Win IOT but I cannot see how to use the USB serial port. There doesn't appear to be a PySerial for this and I can't see how to connect to the underlying windows calls.
I am sure Top Men are working on it.
Re: Python serial
This guy would seem to disagree....there are no drivers for any USB serial dongle,,,
https://github.com/Jark/FTDISample
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016
Re: Python serial
But, I don't understand! He is not the manufacturer. Don't you know it's a rule that the manufacturer must provide Windows drivers for any hardware ever made, forever?ricl wrote:This guy would seem to disagree....there are no drivers for any USB serial dongle,,,
https://github.com/Jark/FTDISample
-
- Posts: 5
- Joined: Mon Jun 11, 2012 3:26 pm
Re: Python serial
There are drivers for USB serial, and I believe for any device that registers as USB CDC serial - I am using them successfully with C# - all I am asking is can I use them with Python?
Re: Python serial
I have just read that PySerial is written in pure Python. Therefore, since you are using Python (and it is working) you should be able to copy the PySerial source onto the device and just use it.jcrouchley wrote:There are drivers for USB serial, and I believe for any device that registers as USB CDC serial - I am using them successfully with C# - all I am asking is can I use them with Python?
-
- Posts: 5
- Joined: Mon Jun 11, 2012 3:26 pm
Re: Python serial
I'll give it a go and let you know.
Re: Python serial
There is no rule that others cannot contribute.But, I don't understand! He is not the manufacturer. Don't you know it's a rule that the manufacturer must provide Windows drivers for any hardware ever made, forever?
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016