A-Emile / Lime_Gen3_IoT_Replacement

Custom IoT for Lime Gen 3 E-Scooter and info about serial communication
Apache License 2.0
46 stars 12 forks source link

Display OK, Battery ok but motor speed nok and still locked #29

Open Nheliteuf opened 21 hours ago

Nheliteuf commented 21 hours ago

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

Hello,

I need your help please.

I use recommended hardware with EPS32.

I loaded LimeIoTWithoutSleep project (found here : https://github.com/A-Emile/Lime_Gen3_IoT_Replacement/releases/tag/latest)

 

I got a correct display control with my phone : locked, unlock, battery state of charge but unfortunately, no speed displayed and controller seems to be locked.

I tested IOT on a second Lime Gen 3 and same problem.

 

So I checked signals using DSLogic Series USB-based Logic Analyzer (https://www.dreamsourcelab.com/product/dslogic-series/) with DSView software.

 

I checked that Iot sends the correct sequence:

4643110100084C494D4542494B45BE8A

A trame is sent every 233ms.

 

Then, the motor controller replies every 457ms.

The following answers were received:

 

Id | Concat -- | -- 26664 | 46580CFF002211000040000041399542008B4437520061F180020072014B00018200000000E00000F35F 26706 | 46580CFF002211000040000041399442008B4437520061F180021072014B00018200000000E000005F3E 26748 | 46580CFF002211000040000041399542008B4437520061F180020072014B00018200000000E00000F35F 26790 | 46580CFF002211000048000041399542008B4437560061F180020072014B00018200000000E00000F35F 26832 | 46580CFF002211000040000041399442008B4437520061F180020872014B00018200000000E000005F3E A-Emile Ex | 46580CFF0022110000400000413F604200FF4464520061F180000072015C01598200000000E000000AB3

 

A-Emile : Byte n°20 = 0x64 so 100% remaining battery

Me : Byte n°20 = 0x37 so 55% remaining battery.

 

But Byte n°9 always stays at 0 even if the wheel is turning.

 

Do you see something wrong or is the motor controller locked ?

 

I attached so screen capture and DSView project.

 

Thank you for your help.

IOT sends correct sequence to controller motor : RX_controller_1

Then the motor controller answers : TX_from_controller

Iot sends sends every 233ms : RX every 233ms

Motor controller answers every 457ms : tx CONTROLLER Every 458ms

Nheliteuf commented 21 hours ago

Here is the DSView free software project.

After a long motor controller ON time, i power up the IOT.

controller first long puis esprssDSLogic PLus-la-241111-203427.zip

A-Emile commented 16 hours ago

Have you flashed the unlocked firmware?

A-Emile commented 16 hours ago

Also note that the Arduino firmware is poorly written and maybe not working with current arduino versions. So you could try using an older arduino version to compile it.