Jump to content

Recommended Posts

Posted

trying to read the serial data from the UART1 port then write it on the  UART2 port ....

this is absolutely easy in the case of just reading the serial data.

 

but now what m really trying to do is to read the serial binary bits which includes the serial data and the framing data ( parity bit/stop bit/start bit) and then write all of these binary bits to the other serial port.

 

how could this be done? how could i read the serial  bits  without the framing bits being stripped? 

 

thanks in advance

best regards 

Posted

you could try the socat command  which supports some raw-configuration.

 

I use it to "copy" the stream from /dev/ttyUSB0 to /dev/ttyUSB1 for connecting 2 USB-serial devices on a armbian-SBC ;)

 

 

 

 

 

 

 

 

 

 

 

Posted

i still have another major problem ...

the baudrate is unknown ... is there any tool that can ignoring setting a baudrate or that can dynamically assign the correct baudrate.

 

i observed the signal on the oscilloscope and it seems that the baudrate is around 12800 which is not one of the standard baurates.

and the baudrate is around 12800 might be because this serial data is converted from rs485 to rs232.

it is confusing

Posted

Not sure serial transceivers (UARTs) can be configured to pass every bit rate, parity, start/stop bit combination. Maybe better to use a circuit to do this?

 

For RS232 format data, you can always tie the data sender's TX pin to multiple data receiver's RX pins. Just don't tie TX pins together.

 

For RS485 format data, you could have a large number of listeners on the same pins.

Posted

@tparys what circuit are u supposing to use instead of converting to rs232?

what i understood is that ur saying from rs485 direct the tx pin to an RX pin on a circuit that i should design?

 

then i can read all the bits being received by configuring this circuit to the wanted baudrate and what so ever.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines