Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

USB-Serial Freezes OS when buffer is full (Blue Screen) #437

Open
MyersMade opened this issue Mar 23, 2017 · 6 comments
Open

USB-Serial Freezes OS when buffer is full (Blue Screen) #437

MyersMade opened this issue Mar 23, 2017 · 6 comments
Assignees

Comments

@MyersMade
Copy link

MyersMade commented Mar 23, 2017

Using Hardware or Software Handshaking on an external USB-Serial (FTDI) device:

When the receiving devices holds it's RTS low, the StoreAsync() should time out based on the .WriteTimeout parameter in the SerialDevice, return a 0 and allow me to react appropriately.

In IOT Core however, the StoreAsync() never times out, and will even lock up the entire OS and cause a blue screen watchdog violation after a while.

I believe there is a serious issue with the Microsoft-provided driver for USB-Serial devices.

I've detailed the issue further and supplied sample code here:

https://github.com/MyersMade/PiSerialCrashTest

I would really appreciate it if someone could verify this as well.

@IoTGirl
Copy link
Contributor

IoTGirl commented Mar 23, 2017

Hi @MyersMade ,

I will ask someone to review this issue but please be aware that there are a number of issues with the USB hardware Stack in the RPi. Have you seen this issue on any other platform?

Sincerely,
IoTGirl

@MyersMade
Copy link
Author

No, Pi and Windows Desktop is all I have available.

@MyersMade
Copy link
Author

MyersMade commented Mar 30, 2017

@jordanrh1 , have you had a chance to look at this?

@IoTGirl
Copy link
Contributor

IoTGirl commented Apr 4, 2017

@embedded101
Copy link

@MyersMade,

There are known issues with certain FTDI USB-to-RS232 chip (I don't remember the details.).
A while back, I was using a batch of USB-to-RS232 adapter from FTDI for a community project using Windows 10 as the dev machine. I got report from some participants the FTDI adapters had problems.
I reached out to my contact at FTDI at the time and was told there was known issue with the USB-to-RS232 adapters we were using.

Sorry, I don't have the affected FTDI) part number. You should check to make sure you are not using a problematic device.

If the USB-to-Serial device is external to the controller, I would try a different chip to see whether the same problem occur.

@MyersMade
Copy link
Author

MyersMade commented Apr 4, 2017

Thanks for your response. My hardware is an external USB-RS232 adapter

I've tried two different models:

GEARMO FTDI-LED
Chipset FTDI FT232RL
(tried 2 different units)

Unknown Mfg
Chipset FTDI FT232RL

Both devices I got the same results.

s20170404_0009

s20170404_0010

capture2

capture

I guess I had assumed the hardware was okay, since they work fine in Windows Desktop.

My gut tells me that the issue is coming from whatever driver that IOT ships with for the FTDI chipsets.

Does anything stand out from what I've posted here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants