donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

USB to RS232 (COM) options

Thu Apr 20, 2017 1:03 pm

Good afternoon,

I'm testing Raspberry Pi 3(B) with Windows IoT Core to see if I can port one of the current apps made on WinForms to Windows Universal Platform.

All is looking good and promising, however, I'm currently facing issues with getting my current USB to RS232 adapters to work. I would need 1 to 3 of those to be functioning on a single RPi device, so USB to RS232 is the best option.

Currently I have Prolific USB to RS232 adapters, which have drivers for pretty much all OSes, but Windows IoT. These adapters are being seen by Windows IoT, but missing the drivers.

After I've done my research online, I understood as of now, that I have these 3 options available?
  1. Waiting till Startech will realease drivers for Windows IoT
  2. Using their drivers for Windows x86/x64 to build Universal driver myself (would it really work thought?)
  3. Trying to find some alternative USB to RS232 adapter with Silicon Labs chip that would be supported out of the box (could not find one yet)
What would you, guys, recommend me of doing, based on your experience? Second option looks ok to me as long as I'm pretty confident it can be done without too much of hassle (I'm software developer myself). FTDI drivers are not working anymore with the latest IoT Core, as far as I know.

Thank you!

User avatar
Clanzer
Posts: 27
Joined: Wed Jun 13, 2012 1:42 pm
Location: UK
Contact: Website

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 1:58 pm

I just checked and the FT232 USB>Serial adapter gets picked up okay this end

Windows build 10.0.14393.1066

Also ran one of our programs up that uses serial comms and it enumerates/lists the Raspberry serial port and the FTDI adapter, both connect okay and send/receive data.

Cheers

Sean
******************************
http://www.pthat.com
******************************

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 2:20 pm

Windows build that I have is v.10.0.15063.0, Sean.

If you had a chance to confirm it's working for you, I could order UC232R-10 device and use DX22 Windows RT drivers for it, as far as I understand?

However, here is the note on FTDISample page:
Note: As of version 10556.0 the ftdi driver does no longer seem to work. A sample application showcasing the FTDI D2XX driver use in Windows Universal projects (UWP). This sample is tested on the Raspberry PI 2 with Windows IOT installed and a FTDI FT232R usb-to-serial adapter.
Thank you!

User avatar
Clanzer
Posts: 27
Joined: Wed Jun 13, 2012 1:42 pm
Location: UK
Contact: Website

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 2:41 pm

Well it works here on the latest build :)
******************************
http://www.pthat.com
******************************

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 2:52 pm

My build is 15063 (or 1703) released April 2017 and it's called Creators Update, Sean, and the one you mentioned is 14393 (or 1607) released August 2016 and called Anniversary Update :)

So unless I'm mixing something up, you are not using the latest build ;)

Thank you for your answers!

User avatar
Clanzer
Posts: 27
Joined: Wed Jun 13, 2012 1:42 pm
Location: UK
Contact: Website

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 3:21 pm

On the IOT dashboard it updated yesterday using windows update for the 1607 which looks like a 11th April update, but you are right the update did not take it up to 15063


Current Branch (CB) 1607 14393.1066 Availability date 8/2/2016 Latest revision date 4/11/2017

Will see if I can install manually and give it a go.
******************************
http://www.pthat.com
******************************

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 3:23 pm

Oh, that would be great, Sean! Many thanks for your help.

User avatar
Clanzer
Posts: 27
Joined: Wed Jun 13, 2012 1:42 pm
Location: UK
Contact: Website

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 4:07 pm

Okay updated to 10563 and Serial comms work fine on FT232 adapter with Windows 10 IOT Universal Application.

Cheers

Sean
******************************
http://www.pthat.com
******************************

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 20, 2017 7:01 pm

Thank you for the confirmation, Sean.

Will order one of FT232 adapters and will post here if my test was successful.

However, did anyone actually tried making USB to RS232 drivers from Windows x86/64 *.sys and *.inf files as described here?

Soni.noni
Posts: 2
Joined: Tue Apr 25, 2017 9:39 pm

Re: USB to RS232 (COM) options

Tue Apr 25, 2017 9:52 pm

Hello,
I have the same problem :i've the latest version 15063,to install the FTDI drivers I followed the procedure described in the link that u have mentionned,i can see the USB to SERIAL converter in the manager devices in the dashboard however i can't send and receive data using background application (visual studio 2015 c#) i'm using raspberry pi 2.
Did you find a solution for this problem ?!!

Thank you in advance.

Soni.noni
Posts: 2
Joined: Tue Apr 25, 2017 9:39 pm

Re: USB to RS232 (COM) options

Tue Apr 25, 2017 9:57 pm

Oups sorry to install the drivers i followed this one http://embedded101.com/Blogs/David-Jone ... ial-driver

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 27, 2017 11:07 am

Just started testing UC232R-10 FTDI device.

First thing I've noticed was that the driver got installed automatically once I plugged adapter in. The details of it you can see in the picture attached.

Then I loaded FTDI WinRT drivers, but nothing has changed in terms of device details, that you can see in the picture.

Code: Select all

devcon status "USB\VID_0403&PID_6001"
says that driver is running.

So then I attached digital scale to a COM port, connected it to the adapter and was expecting to see data flowing to UART Sample app. That wasn't the case though. That's the bit I'm testing now, because I'm getting a single byte through when switching the scale on/off. Just random letter is being shown as an output, such as 'N' or 'O' or 'U'.

Then I connected a printer, which also returns a single character when turned on.

Then I connected same adapter to Windows 10 x64 device. Default Microsoft drivers were installed. Connected scale and printer to this machine. However, UART Sample app in this case was only returning "No mapping for the Unicode character exists in the target multi-byte code page." error.

After that I've upgraded default Microsoft drivers of version 2.12.24.0 (28/09/2016) to FTDI recommended version 2.12.16.0 (24/02/2017). This time printer returned '[]' when switched on, and scale still keeps giving "No mapping for the Unicode character exists in the target multi-byte code page." error.

As the last step so far I did ran my WinForms x86 app, which works fine with other USB to RS232 adapters on Windows PCs, and this time all worked fine - scale is working as expected.

So for now these are my thoughts:
  1. UART Sample app needs to be amended
  1. I should move logic from my WinForms app to a new Universal Windows app and see if scale will work then
Will keep you updated!
Attachments
sddsadsd.png
sddsadsd.png (15.85 KiB) Viewed 5774 times

User avatar
Clanzer
Posts: 27
Joined: Wed Jun 13, 2012 1:42 pm
Location: UK
Contact: Website

Re: USB to RS232 (COM) options

Thu Apr 27, 2017 11:22 am

Your welcome to download one of our Universal Apps we wrote for the PTHAT example.

http://pthat.com/index.php/project/ptha ... roduction/

Even though this is written to communicate with the PTHAT with specific commands, you can simple type your commands in the Write Data: Text box and then click the Write button.

The Read Data box is event driven, so will automatically display any data received back.

The drop down list at the top should enumerate both the Raspberry Pi serial port and your plugged in FT232 device.
If you need to change the baud rate this can be done in the mainpage.cs easy enough.
******************************
http://www.pthat.com
******************************

donatas
Posts: 7
Joined: Thu Apr 20, 2017 12:41 pm

Re: USB to RS232 (COM) options

Thu Apr 27, 2017 1:23 pm

Thank you, Sean.

I've tried your PTHAT example on both Windows PC and Raspberry Pi one and results were basically the same as on UART Sample app.

So since it works same on both machines and also works fine on a real life app on Windows PC, I'm hopeful, that it should work on my new Universal Windows app too.

I haven't been able to receive anything after I wrote command on both machines, so maybe I'm not testing it in a proper way too. So once again - the only option I have is finishing to port at least SerialCommunication logic from WinForms app onto Universal Windows app and see if that works.
Attachments
Clipboard01.jpg
PTHAT app
Clipboard01.jpg (63.56 KiB) Viewed 5759 times

mmeissa
Posts: 1
Joined: Mon Dec 25, 2017 8:57 pm

Re: USB to RS232 (COM) options

Mon Dec 25, 2017 9:02 pm

Same problem here using latest version of Windows iot core.
I tried all options but nothing seems to work on the new iot builds.
I don't understand why the new builds are full of problems.

User avatar
fruitoftheloom
Posts: 16455
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: USB to RS232 (COM) options

Mon Dec 25, 2017 10:21 pm

mmeissa wrote:
Mon Dec 25, 2017 9:02 pm
Same problem here using latest version of Windows iot core.
I tried all options but nothing seems to work on the new iot builds.
I don't understand why the new builds are full of problems.

Maybe ask the Software Developers ??

https://social.msdn.microsoft.com/forum ... WindowsIoT
""understanding the theoretical, but not always the end goal""

My other Devices are the ChromeBit CS10, ChromeCast & Huawei Mate 10 Pro SmartPhone

biradarsm
Posts: 2
Joined: Tue Feb 13, 2018 7:54 am

Re: USB to RS232 (COM) options

Tue Feb 13, 2018 8:09 am

Did you get a solution to this? I am also facing the same problem, I am trying to Connect to a Serial Communication Device through USB Port in Raspberry Pi 3 using RS232 Converter, But it is not detecting. In Windows it's drivers are provided by Prolific

biradarsm
Posts: 2
Joined: Tue Feb 13, 2018 7:54 am

Re: USB to RS232 (COM) options

Wed Feb 14, 2018 5:49 am

I am using Raspberry Pi 3 on Windows 10 IOT Core Build 16299, Fall Creators Update. I have a Weighing Balance connected to Raspberry pi 3 via Serial to USB Converter cable to one of the USB Port on Pi. Serial Device is not getting detected in UWP application. Please let me know what needs to be done?

Return to “Windows 10 for IoT”

Who is online

Users browsing this forum: No registered users and 1 guest