LinuxQuestions.org
Help answer threads with 0 replies.
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 06-25-2012, 04:36 AM   #1
pavankc
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
RS485 with Linux 2.6.34


Hi All,

I am working with RS485 for sending a few frames to a RET (Remote Electrical Tilt) unit. This all works beautifully on linux 2.6.25 but with Linux 2.6.34, the response from the RET is not complete. I mean I receive an incomplete frame. The first and the last bytes are missing from the frame.

I am making sure that the bus is released as soon as the frame is sent to the RET unit. Is there a delay in releasing the bus which is causing this?

Any ideas?

Thanks,
Pavan
 
Old 06-25-2012, 09:12 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,755

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Do you have a black box for this 485 or are you just trying to get by with 232? Or do you have a 485 card?

I'd like to know the speed too and any other settings used that did work and now do not.
 
Old 06-26-2012, 08:59 AM   #3
pavankc
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hi jefro,

Thanks a lot for the reply. I have solved it now. When the 34 kernel booted up, it detected and initilaised the 16550 UART (which has a 1 byte FIFO) and not the 16550A UART (which has a 16 byte FIFO). So when frames were sent to ttyS1, 16550 UART was being used and not the 16550A UART.
This made things slower and also resulted in loss of bytes. Now I have made sure that 16550A is detected and initialised. So its all working now. :-)

Thanks,
Pavan
 
  


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
[SOLVED] Linux RS485 multi drop and RS232 programming differences golden_boy615 Programming 7 01-10-2011 12:17 PM
[SOLVED] switching between RS232 ,RS422,RS485 from linux golden_boy615 Linux - Hardware 4 12-26-2010 10:03 PM
windows application -> dial in -> linux embedded -> rs485 -> external device Hark28 Linux - Embedded & Single-board computer 22 03-05-2010 11:24 AM
How to toggle RTS signal within Linux-2.6.17.13 RS485 driver? yyqoons Linux - Newbie 1 06-10-2008 09:47 PM
Linux and RS485 question? Onyx^ Linux - Hardware 7 02-13-2006 09:42 PM


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

Main Menu
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