protocols - Transmitting odd number of bits serially -


i'm implementing lin protocol on linux sbc transmits on uart. don't have time develop complete lin stack, i'm implementing frame structure messages defined protocol. problem protocol requires "break" field makes slave devices on bus listen. field consists of zeros 13 bit-times. ideas how send zeros 13 bit-times on uart, when serial data transmission requires complete bytes?

per wiki:

lin (local interconnect network) serial network protocol used communication between components in vehicles. need cheap serial network arose technologies , facilities implemented in car grew, while can bus expensive implement every component in car. european car manufacturers started using different serial communication topologies, led compatibility problems.

if have paid attention @ class have known that:

data transferred across bus in fixed form messages of selectable lengths. the master task transmits header consists of break signal followed synchronization , identifier fields. slaves respond data frame consists of between 2, 4 , 8 data bytes plus 3 bytes of control information.

you should send echo of 0x0000 following cr/lf.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -