Zrohn wrote: ↑
Wed Sep 04, 2019 9:01 pm
I understand not wanting to share the solution, but any and all help is much appreciated. I have the TX and RX lines connected to RealTerm and GND to GND and the blue wire hooked up to 3.3v. When I open up coms with a baud of 9600, I get a seemingly random loop of hex values. Is this normal?
You are almost there!!
Before I wrote my code for microcontroller, I used RealTerm. RealTerm can be set up to "parse" incoming packets from scooter to show one packet on one line. This makes everything much easier. Then you will notice that incoming packets follows the protocol ZipperZ published.
From received data I was able to find out correct CRC16 type (my previous post). Then I constructed "turn on" packet, added two CRC bytes, hit "send" and scooter came to life. All you need is RealTerm, protocol description and online CRC calculator.
In my microcontroller code I have not even bothered to calculate CRC, but used hand precalculated values. After all you need only 4 different packets for basic control.