LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 11-18-2008, 02:52 PM   #1
sardok
LQ Newbie
 
Registered: Dec 2005
Location: istanbul
Posts: 5

Rep: Reputation: 0
connecting from usb to serial problem


Hi,
I have a ppc (405 ep) based chamelon dev kit. I wanted to re-use it
after long time ago. First i noticed that i do not have a serial
interface on my board, so i bought serial-to-usb connector, Then
noticed that the both side of serial-to-usb's and boards serial
connecter's output is male, i found a cable which has female
connectors on both sides. I connected my board and my pc via plugged-
in this long cable, i successfully receive messages from pretty old
board but then i noticed that i cannot type anything! actually i can
type but when pressed to a character, non-related and randomly some
weird character(s) appear, if i am lucky by pressing enter several
times to enter, i can send my command.
example output;

(I'm trying to type hello here)

CPU: IBM PowerPC 405EP Rev. B at 333.333 MHz (PLB=111, OPB=55,
EBC=37 MHz)
+----------------------------------------+
IIC Boot EEPROM disabled
PCI async ext clock used, internal PCI arbiter enabled
16 kB I-Cache 16 kB D-Cache
Board: ### No HW ID - assuming PPChameleonEVB
I2C: ready
DRAM: 32 MB
FLASH: 4 MB
PCI: Bus Dev VenId DevId Class Int
Video: Controller not found !
NAND: 32 MB
=> i i l M

i tried in both using minicom and cu and linux recognizes the
connector as /dev/ttyUSB0.My connection scheme

PPC rs232 male <--------rs232 female in bothe side -------><-----rs232
male to usb -------->Computers USB port

What can be a problem?

Thanks.
 
Old 11-18-2008, 03:35 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
It sounds like a parameters problem - possibly speed, parity, or number of stop bits.
 
Old 11-20-2008, 09:12 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
Might be a parameter problem but if you can see readable text from the board then the baud rate, parity and stop bits should be ok. Also might be a hardware/software control or a cable issue.
 
Old 11-25-2008, 07:35 AM   #4
sardok
LQ Newbie
 
Registered: Dec 2005
Location: istanbul
Posts: 5

Original Poster
Rep: Reputation: 0
Hi actually beside hardware/software flow control, i tried everything including half/full duplex, im gonna try flow controls. There must be a trick, i tried different with usb to serial, it doesnt work too, even it works with serial to serial with same configuration.
 
Old 11-25-2008, 07:42 AM   #5
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
USB to Serial adapters don't just work without drivers. The USB signals need to be translated or converted to serial and that is done with drivers.

I have never seen any USB to serial adapters with drivers for Linux.
 
Old 11-25-2008, 05:08 PM   #6
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Hardware handshaking *could* be another issue because some USB-serial converters only have Tx,Rx,GND and not anything else. However, the problem you describe is not typical of a hardware handshake issue (that doesn't mean it isn't, just that I'd look more carefully).

It's easy to test the 'hardware handshake' issue though - just set up the terminals so they don't use hardware handshakes.

Quote:
Originally Posted by AuroraCA
I have never seen any USB to serial adapters with drivers for Linux.
They've been around for years; the FTDI chipsets are probably the most common.
 
Old 11-25-2008, 05:28 PM   #7
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Pinniped
Quote:
They've been around for years; the FTDI chipsets are probably the most common.
Interesting. You learn something every day. I've looked at about 20 different USB to Serial adapters and visited the manufacturer's websites and they only have drivers for various Windows versions.

Thanks
 
Old 11-25-2008, 05:41 PM   #8
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by AuroraCA View Post
I've looked at about 20 different USB to Serial adapters and visited the manufacturer's websites and they only have drivers for various Windows versions.
I don't know of any product which comes with a Linux driver on the disc, but many have a serial driver in the Linux kernel tree (usbserial). What is important is the VendorID:ProductID of the chipset. Numerous manufacturers use that FTDI chipset so many different brands and models in fact use the same driver.

Another important issue is the wiring of the RS232 side of the chip. If you need a USB serial converter you should check hardware compatibility sites and make sure that the device you plan to buy has all the signals you require; even if they have the same chipset, one manufacturer might only connect Tx,Rx,GND.
 
Old 11-25-2008, 05:46 PM   #9
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
What serial port settings did you configure Minicom for when you used it ?

If you want a Terminal App that is GUI ... you can install PuTTY.

There is always the possibility that the cable is incorrectly wired, or that the board uses special pinouts.
Most DB9M RS-232 interfaces on PC's are DTE.
When connecting a DTE to another DTE interface a crossover cable must be used.


< For those that want to know: the native Linux kernel supports many different USB to Serial converters > I have used devices with FTDI and Prolific chipsets.
Code:
6510b proc # grep -i usb_serial /usr/src/linux/.config
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_AIRCABLE is not set
# CONFIG_USB_SERIAL_AIRPRIME is not set
# CONFIG_USB_SERIAL_ARK3116 is not set
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_CH341 is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_CP2101 is not set
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
# CONFIG_USB_SERIAL_EMPEG is not set
CONFIG_USB_SERIAL_FTDI_SIO=m
# CONFIG_USB_SERIAL_FUNSOFT is not set
# CONFIG_USB_SERIAL_VISOR is not set
# CONFIG_USB_SERIAL_IPAQ is not set
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_GARMIN is not set
# CONFIG_USB_SERIAL_IPW is not set
# CONFIG_USB_SERIAL_IUU is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_MOS7720 is not set
# CONFIG_USB_SERIAL_MOS7840 is not set
# CONFIG_USB_SERIAL_NAVMAN is not set
CONFIG_USB_SERIAL_PL2303=m
# CONFIG_USB_SERIAL_OTI6858 is not set
# CONFIG_USB_SERIAL_HP4X is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set
# CONFIG_USB_SERIAL_TI is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_XIRCOM is not set
# CONFIG_USB_SERIAL_OPTION is not set
# CONFIG_USB_SERIAL_OMNINET is not set
# CONFIG_USB_SERIAL_DEBUG is not set

Last edited by dxqcanada; 11-25-2008 at 05:49 PM.
 
Old 12-02-2008, 08:01 AM   #10
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
A simple (though incomplete) test of the hardware is to loop the Tx pin back onto the Rx pin. In almost all cases, this will be a simple connection between pins 2 & 3. I prefer C-Kermit for working with serial ports, as it allows detailed configuration of the software and hardware. eg. set carrier-watch on/off, set flow-control none. Also, it is scriptable, and fairly well documented.
--- rod.
 
  


Reply



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
Problem with USB to serial adaptor. Firewall or driver? kpark Linux - Newbie 4 07-07-2008 08:21 AM
Using USB<->Serial and serial gender changer to transmit data between computers JoeyAdams Linux - Hardware 4 04-17-2008 05:15 AM
problem while reading characters from USB serial devices? d2e2004 Linux - Hardware 0 11-01-2007 04:26 AM
USB-Serial Adapter problem oceanfun Linux - Hardware 1 10-26-2005 06:29 PM
USB serial converter problem linuxBill Linux - Software 3 04-23-2003 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:31 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