Questions tagged [9-bit-serial]

Serial protocol for instruments which use a 9-bit date frame, rather than the more common 8 data bits and a parity bit.

11 questions
13
votes
1 answer

serial communication, read the 9th bit

I have an application which connects with an external protocol using serial communication. I need know if the wakeup bit is set on each packet it sends to me (the 9 bit), and as communication rates must be below 40ms, and response must be sent under…
miguel.hpsgaming
  • 461
  • 8
  • 17
12
votes
6 answers

Is it possible to use 9-bit serial communication in Linux?

RS-232 communication sometimes uses 9-bit bytes. This can be used to communicate with multiple microcontrollers on a bus where 8 bits are data and the extra bit indicates an address byte (rather than data). Inactive controllers only generate an…
joeforker
  • 40,459
  • 37
  • 151
  • 246
2
votes
2 answers

c++ serial communication linux 9data bits

a bit exotic question :D I'm programming c++ in ubuntu 10 and i need to code a mdb(multi drop bus) protocol which uses 9 data bits in serial communication (YES 9 data bits :D) Some drivers do support 9 data bits on some uart chips, but mostly they…
Lonko
  • 389
  • 9
  • 25
2
votes
0 answers

9 bits from serialPort c#

I've a serialPort communication to a device wich send me a packege of 9 bits data. I'm using c#. the data are 8 bits and one bit to check if the byte is a data or a command if it's a command then the 9th bit is 1 else is 0. the problem is that the…
Amin Ben
  • 53
  • 10
1
vote
1 answer

stty serial port settings for parity not persistent

I have a netcore app that opens the serial port, and writes "parity error" on the console once a parity error gets detected. It works fine in Windows 10 but can't get it to work under Linux. My assumption is that the OS is not passing the parity…
Luis Alvarado Day
  • 217
  • 1
  • 3
  • 14
1
vote
1 answer

Atmega Toggle Variable Too Slow For 9Bit UART

I've written some code to output to the usart a 9bit message. The code is as follows: bool_t SERIAL__TX_SEND_NINE(U8_t ch, bool_t nine) // send a character { bool_t result = SE_TRUE; // assume OK // transceiver is on so…
Daniel
  • 47
  • 7
1
vote
0 answers

MARK parity detection with CMSPAR very unreliable (9 bit UART)

edit-2: Turns out this might actually be a limitation of many USB based adapters, as they always transfer multiple bytes at once to the host, without a place to put information about the individual bytes. So if any of the bytes produced an error of…
user1273684
  • 1,559
  • 15
  • 24
1
vote
1 answer

C How can I write a value to an entire data structure, rather than just an element?

I am attempting to write a little C test program for reading data from a vending machine. I have the circuit hooked up, now the hard part is the code. The machine uses UART that calls for 9 total data bits. Here is my code. Attempting to write…
Nathan Darker
  • 141
  • 1
  • 9
0
votes
1 answer

9bit serial with .NET

I need to build communication between Multidrop bus nodes and main process running on Windows IoT over Raspberry Pi 3. I know how to exchange data with 8 bit byte. It example of working code: _serial_port = await SerialDevice.FromIdAsync(di.Id); if…
0
votes
1 answer

AVR 9 bit Usart not working (MPCM)

So there is Master and Slave Attiny2313. The Master sends the 9 bits of data(the 9th bit TXB8 is set to 1), but the slave doesn't detect the 9th bit(RXB8 is still 0). I think if the TXB8 bit is set in the Master the RXB8 bit on the Slave should be…
user5425461
  • 9
  • 1
  • 6
0
votes
1 answer

9bit serial communication with MARK/SPACE mode in ubuntu

I know 9-bit serial communication is available in Linux using parity bit. And some Linux version offer MARK/SPACE parity mode, so that i can set parity bit easily. But as i know, this MARK/SPACE parity mode is not a Linux standard, so a Linux may…
SangminKim
  • 8,358
  • 14
  • 69
  • 125