LinuxQuestions.org
Register a domain and help support LQ
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 04-17-2013, 09:13 AM   #1
saman_artorious
Member
 
Registered: Sep 2008
Posts: 78

Rep: Reputation: 1
cannot transfer packet via serial COM


I have a Linux Ubuntu installed on an Intel Panel PC. My code did not run so, I checked out packet transfer using cutecom. It does OPEN THE PORT successfully, but no data is transfered. I plugged the serial port to my own PC, it works. One thing crossed my mind that the error could have error come from was checking the BIOS, how ttyS0-3 are allocated. Bios shows S0 to 11 or upper. All in AVAILABLE mode, I set S3 to RESERVED and checked via cutecom again. NO TRANSFER!. On the other hand, I DO NOT THINK that a driver should be installed for distinguishing the PC COMs, it SHOULD identify them automatically.

Code:
[    0.416691] ACPI: Power Button [PWRB]

[    0.416846] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1

[    0.416859] ACPI: Power Button [PWRF]

[    0.443708] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

[    0.557357] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

[    0.708888] serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A

[    0.872588] serial8250: ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A

[    1.015669] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

[    1.036607] 00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

[    1.060599] 00:08: ttyS2 at I/O 0x3e8 (irq = 11) is a 16550A

[    1.084589] 00:09: ttyS3 at I/O 0x2e8 (irq = 10) is a 16550A

[    1.085551] agpgart-intel 0000:00:00.0: detected gtt size: 262144K total, 262144K 

[   14.956323] serio: Serial port ttyS1

[   14.994250] serio: Serial port ttyS1

[   15.032073] input: Elo Serial TouchScreen as /devices/pnp0/00:07/tty/ttyS1/serio2/input
is there anything wrong with what dmesg shows? shall i change irqs using setirq? if yes, please write me an example of the details please.
 
Old 04-17-2013, 07:27 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by saman_artorious View Post
My code did not run so
We need more information before we can help you. What is your "code" trying to do?
Quote:
Originally Posted by saman_artorious View Post
I checked out packet transfer using cutecom. It does OPEN THE PORT successfully, but no data is transferred.
How are you verifying data transfer? If you are connecting two serial ports, you probably need a null modem cable. You can make your own by crossing pins 2 and 3 on a standard DB9 pass through cable.
Quote:
Originally Posted by saman_artorious View Post
I plugged the serial port to my own PC, it works.
Which serial port are you connecting to your PC?

We really need more information before we can help you. If you can draw a simple diagram of the test setups you have tried, that will help a lot.
 
Old 04-24-2013, 11:10 AM   #3
saman_artorious
Member
 
Registered: Sep 2008
Posts: 78

Original Poster
Rep: Reputation: 1
The problem was with DB9 cable. But, the problem is only one of the COMs work. I mean, only one when connected, can transfer the packets. (using any available program like cutecom). The other three are inactive.
The PC I need to configure is an Intel PC Series, for Windows I was told that it has its own device driver program. when installed all other COms become available.
However, i think in linux all COMs are recognized. But I am definitely NOT SURE about it. before getting suspiscious about searching for the relevant linux version device driver, I think there may be something wrong with the IRQs.
see above, both S0 and S2 share irq=4 and S1, S3 share irq=3.
do you think the problem would be fixed if I reserve irq 1 2 3 4 in BIOS and set each to one of the devices at bootup?
(note that S1 is dedicated to touchscreen, as printed above).

let's find out the solution guys.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Serial data to IP packet conversion raja7799 Linux - Networking 2 11-14-2009 03:25 PM
Packet transfer from multiple connection priyadarshan Linux - Networking 1 02-13-2009 06:45 AM
ftp http and other protocols packet transfer trunx Linux - Networking 4 01-23-2005 06:54 AM
ftp http and other protocols packet transfer trunx Linux - Networking 0 01-23-2005 03:55 AM
Serial port transfer tklima Programming 1 01-12-2005 03:13 PM


All times are GMT -5. The time now is 02:41 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration