LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-03-2011, 08:28 AM   #1
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Rep: Reputation: 15
USB PL2303 and serial port show a different behavior


Hello

I wrote a program to control a serial device (power controller). Using it on an standard serial port, the device works fine, and it response properly to the commands sent. The communication relies on a stx-etx protocol (half duplex).

If I use an USB PL2303 usb-to-serial convertor, the serial device seems no longer to understand the commands issued over the serial link.
There is no handshaking mechanism used like CTS/DTS.

Not sure how to debug this. Could be a timeing issue (on the other hand the baud rate is only 9600 -- there is plenty of time and synchronization should not be an issue)

And advice what to look for ?

Thanks

Tilman
 
Old 10-03-2011, 09:27 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Should not be any difference between the two devices i.e. the real hardware and USB adapter i.e. should behave the same.
Do not take offense but are you using the correct device ID for the USB-serial adapter?
Have you verified that data is actually being transmitted with a loopback device or other computer?
 
Old 10-03-2011, 11:55 AM   #3
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Original Poster
Rep: Reputation: 15
I verified that I chose the correct USB port (I checked in /var/log/messages and I used gdb to debug). So, yes, I am confident that I am using the correct USB device (ttyUSB0).
Sometimes, the USB adpater correctly transmit a command. Mostly it does not. Maybe a driver issue ? I will search nother USB serial adapter (should be here somewhere :-)) and give this another try . ...
 
  


Reply

Tags
usb serial



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help for installing driver pl2303, USB to serial converter Misbah Naveed Linux - Newbie 2 07-13-2008 01:36 PM
help needed intalling pl2303 driver USB to serial converter for 2.6 Misbah Naveed Linux - Newbie 2 05-23-2008 02:51 PM
PL2303 & Pl2303x usb serial device alokm Linux - Newbie 1 02-09-2008 09:56 PM
pl2303 does not recognize my USB-Serial Controller sheeluh Linux - Hardware 1 06-05-2006 04:21 AM
how to install pl2303 (usb to serial) on fedora core 3? lusiano Linux - Software 1 10-19-2005 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration