Page 1 of 2

Serial port support for the raspi?

Posted: Fri May 01, 2015 6:35 am
by dispachers
Does anyone have more information on whether the serial port is supported by Win10-IoT on the Raspberry?

Regards

Re: Serial port support for the raspi?

Posted: Fri May 01, 2015 10:37 pm
by jtanner_msft
I believe at the moment the serial pins on the Pi2 are configured for Kernel Debugging. The UART controller on the Pi2 is an ARM specific PL011, and currently there is no driver for it in the OS.

This might change in the future, but that's the current status as of now.

I hope that helps,

~Jonathan [MSFT]

Re: Serial port support for the raspi?

Posted: Mon May 04, 2015 7:46 am
by dispachers
Hi Jonathan,

Thank you for your reply.

I hope that Windows consider how important is the serial communication in the embedded world.

The drivers for the PL011 can be easily ported. Then a pure file access would be enough.

If this is not possible, the only way out will be to wait that FTDI writes a driver for Windows10. Although I do not understand why I have to add more hardware that is already on the board.

Regards

Re: Serial port support for the raspi?

Posted: Tue May 05, 2015 11:51 pm
by jtanner_msft
The product team is aware of this need and is looking into it.
On a different direction, apparently the MinnowBoardMax (MBM) device does have serial support so if you have one of those handy you could try that for the time being.

Re: Serial port support for the raspi?

Posted: Tue May 12, 2015 8:12 pm
by hullam
Hi,

I have spent the last 1.5 days trying to communicate with the serial port on the PI as I assumed there would already be support for this as there are a lot of applications out there that already use the Serial Port. Do you have any idea when/if this will be implemented as I will have to stop using Windows 10 core until it has serial port support.

Thanks,

Darren

Re: Serial port support for the raspi?

Posted: Wed May 13, 2015 1:03 am
by jtanner_msft
I have a brief update on Serial port support that I posted over here. Figured it'll be easier to review the whole thread instead of just the final piece:
https://social.msdn.microsoft.com/Forum ... WindowsIoT

Re: Serial port support for the raspi?

Posted: Mon Jul 13, 2015 6:26 am
by deivid77
I agree with "dispachers"

RS232 is huge important.
We have dozens of peripherals that need to be plugged to the Raspberry Pi.

If you install "PySerial", you can access to the Serial Port from Python.

Thanks in advance.
Dave White

Re: Serial port support for the raspi?

Posted: Mon Jul 13, 2015 7:01 am
by ame
deivid77 wrote:I agree with "dispachers"

RS232 is huge important.
We have dozens of peripherals that need to be plugged to the Raspberry Pi.

If you install "PySerial", you can access to the Serial Port from Python.

Thanks in advance.
Dave White
You can run Python in Win 10 IoT? That's fantastic!

Re: Serial port support for the raspi?

Posted: Mon Jul 13, 2015 7:21 am
by deivid77
I meant PySerial in Raspbian distribution

Anyway, take a look to this link:
https://www.visualstudio.com/en-us/explore/python-vs

ame wrote:
deivid77 wrote:I agree with "dispachers"

RS232 is huge important.
We have dozens of peripherals that need to be plugged to the Raspberry Pi.

If you install "PySerial", you can access to the Serial Port from Python.

Thanks in advance.
Dave White
You can run Python in Win 10 IoT? That's fantastic!

Re: Serial port support for the raspi?

Posted: Mon Jul 13, 2015 7:27 am
by ame
deivid77 wrote:I meant PySerial in Raspbian distribution
Yes, I figured. It's the only way to do anything useful with the Pi. The IoT guys have been very quiet lately.
Anyway, take a look to this link:
https://www.visualstudio.com/en-us/explore/python-vs
Thanks, or I could just run Python under Raspbian as I usually do.

Re: Serial port support for the raspi?

Posted: Fri Jul 31, 2015 6:40 pm
by dwtoledo
Are UART pins available for user in the latest version of Win10 IOT (10.0.10240.16384)?

Re: Serial port support for the raspi?

Posted: Fri Jul 31, 2015 7:41 pm
by DougieLawson
No.

Did you miss the post from one of the Microsoft tech guys on this thread?
viewtopic.php?p=750323#p750323

Re: Serial port support for the raspi?

Posted: Thu Aug 06, 2015 2:23 am
by g0189a
Would a USB connected XBee card be able to work? Or is that just going to use what would be going to the the RX and TX pins?

Re: Serial port support for the raspi?

Posted: Thu Aug 06, 2015 2:33 am
by ame
g0189a wrote:Would a USB connected XBee card be able to work? Or is that just going to use what would be going to the the RX and TX pins?
Is there a driver for the USB connected XBee card (expecting the answer "No")?

Or is the USB connected XBee card simply using a PL2303 or FTDI serial converter? (In which case the answer is still "No").

Re: Serial port support for the raspi?

Posted: Sat Aug 22, 2015 9:11 pm
by devkoes
For all the FTDI users, I just followed a quick tutorial of a friend of mine and I got a connection now:

https://github.com/Jark/FTDISample

Re: Serial port support for the raspi?

Posted: Wed Sep 30, 2015 7:17 pm
by dwtoledo
devkoes wrote:For all the FTDI users, I just followed a quick tutorial of a friend of mine and I got a connection now:

https://github.com/Jark/FTDISample
Is FTDI FT232R the same as FT232RL?

Re: Serial port support for the raspi?

Posted: Wed Oct 21, 2015 6:54 am
by deivid77
With the last Windows 10 compilation UART pins are totally accesible.

It works perfect

Stunishing!!!

Re: Serial port support for the raspi?

Posted: Wed Oct 21, 2015 8:51 am
by ricl
One more thing ticked of the list as working. Serial Rx/Tx.

38 out of the 40 pins on the header in use now!

Since Aug 10th we have had

10240
10531
10556

all with useful improvements/features at each release.

Looks like Microsoft is getting its act together on continuous updates for Windows 10 on all its targets. :-)

Re: Serial port support for the raspi?

Posted: Mon Oct 26, 2015 5:45 pm
by Kampi
Hello,

do you have an example for using the hardware UART on Raspi Win10?
I have to try it too ;)

Re: Serial port support for the raspi?

Posted: Mon Oct 26, 2015 5:47 pm
by ricl
71. How can I use the hardware Serial Port Rx/Tx on the Pi under Windows 10 Core IoT (10556 and up)
https://ms-iot.github.io/content/en-US/ ... Sample.htm

Wiring the serial connection

You have two options for wiring up your board:
1.using the On-board UART controller
2.using a USB-to-TTL adapter cable such as this one

:-)

Serian Communication w/ Arduino

Posted: Tue Oct 27, 2015 10:15 pm
by nick13579
Can I use these rx and tx pins to communicate with an Arduino and/or to receive serial commands from the Arduino?

Re: Serial port support for the raspi?

Posted: Wed Oct 28, 2015 2:06 am
by nick13579
Am I able to use the Raspberry pi's rx and tx pins with a raspberry pi running windows 10 iot with visual studio c#, to send and/or receive commands to/from an Arduino?

Re: Serial port support for the raspi?

Posted: Wed Oct 28, 2015 8:09 am
by DougieLawson
If your Arduino runs at 5V0 you will need a voltage divider on the RPi's RX pin.

Re: Serian Communication w/ Arduino

Posted: Wed Oct 28, 2015 10:17 am
by ricl
nick13579 wrote:Can I use these rx and tx pins to communicate with an Arduino and/or to receive serial commands from the Arduino?
Yes. See example

Also
http://ms-iot.github.io/content/en-US/w ... tupWRA.htm

which uses Serial over USB and

https://channel9.msdn.com/Events/Build/2015/2-724

Re: Serial port support for the raspi?

Posted: Thu Oct 29, 2015 10:25 am
by craigdudley
Anyone having any success reading/writing to the UART since 10556 was released?

I've tried the SerialSample from Github and get odd results both in and out - oddly its the same result both ways so at least looks like some sort of encoding issue.

If I send a '0' either in or out it becomes [06] in Hex.

0 -> [06]Hex
1 -> g
2 -> 3
3 -> f
4 -> [19]Hex
5 -> e
6 -> 2
7 -> d
8 -> [0C]Hex
9 -> c

Looks to be some sort of pattern but I can't figure it out at the minute.

Have tried both with serial keypad device and using a USB-Serial adapter and terminal emulator on he PC. All with exactly the same results.

:?