Edited by Goat, 20 July 2011 - 11:35 PM.
Another COM port problem
Started by Goat, Jul 20 2011 10:32 PM
2 replies to this topic
#1
Posted 20 July 2011 - 10:32 PM
Hi all!
I am a noob at netduino but have quite an expertise in C# and currently I am porting a small project that was working on my PC to the netduino. This project makes my PC communicate with a device using a Prolific USB-to-COM port; specifically, request some info and get back results. The problem is that upon compiling this 20-line code to netduino, the device I want to "talk" to does not respond. Here is some more info:
- I use the CuteDigi COM shield which uses pin 0 and pin 1 of the netduino (so COM1 is used).
- COM initialization is at 57600, 8, N, 1.
- Netduino sends the appropriate byte sequence to the device and the device does NOT answer.
- PC sends the appropriate byte sequence to the device and the device answers back.
- PC and Netduino can send info to each other when connected with no problems.
- netduino firmware version is 4.1.0.6
What am I missing here? Any help would be gladly appreciated...
PS1: The device I connect to does not respond if it gets a wrong byte sequence or, of course, if it gets no bytes at all...
PS2: Could this be voltage related? Does the netduino work on 5V signals or 3.3V signals for COM port operation?
#2
Posted 21 July 2011 - 07:16 AM
PS2: Could this be voltage related? Does the netduino work on 5V signals or 3.3V signals for COM port operation?
Welcome to the community.
The Netduino will tolerate 5V input but the output is 3.3V.
Regards,
Mark
To be or not to be = 0xFF
Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life
Follow @nevynuk on Twitter
#3
Posted 21 July 2011 - 08:17 AM
Pins 0 and 1 are fixed on the shield I'm afraid, any chance to set them to pins 2 and 3 temporarily? I know COM1 has some limitations compared to COM2, perhaps this is one of them (although 57600,8,N,1 is quite common)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users