Help - serial protocol from the controller to the display

slothorpe

1 mW
Joined
Aug 2, 2019
Messages
14
Hello,

I want to convert my China electric scooter to a new, programmable controller. Unfortunately, the speedometer is connected to the old controller via a serial communication, which I do not get decrypted ... I actually wanted to use an Arduino Nano as a control for the display.

I have attached a short sequence of the communication, it looks at first glance like a normal UART at about 2400 BAUD, but it is not.

What could that be ?

Seriell.png


Thanks and regards
Holger
 
It's probably not the same as any of these, but they'll probably get you started figuring it out:
https://endless-sphere.com/forums/search.php?keywords=protocol&terms=all&author=&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search


especially this
https://endless-sphere.com/forums/viewtopic.php?f=2&t=73471&hilit=protocol

and
https://endless-sphere.com/forums/viewtopic.php?f=2&t=74692&hilit=protocol
 
thanx, but did'nt really help, had to figure out myself:

0 and 1 are coded for different lengths of low-high phases, each
bit is 1.5ms long and starts with the falling edge - 0.5ms low and
1ms high is a 1, whereas 1 ms low and 0.5ms high is a 0, the
data transfer starts with a kind of start bit of 1ms high. transfer
be exactly 12 bytes (96 bits), which takes exactly 145ms, then follows 50ms
break (low). high level is 3.2V, low level is 0V.

these 12Byte are also very strange to describe that
blows up the frame here, e.g. the last byte is always an XOR
checksum, the second is a circulating 8bit counter, in the other
the information such as speed and gear 1-3, etc. right
cryptically and partially coded several times.

I wrote some little arduino code to read, analyse and than write the data to the display, now I can control the display over the arduino. next step is do connect an arduino nano to the sabvoton controller.
 
Hi,

Any further information for decoding the data?
can you share the Arduino sketch for reading the protocol?

Regards,
TJ.
 
Back
Top