Trouble when connecting between One+ and Emulator MK2

User feedbacks of the latest ESP32 based Freematics ONE+
hihihbi
Posts: 2
Joined: Mon Jan 28, 2019 2:05 pm

Trouble when connecting between One+ and Emulator MK2

Postby hihihbi » Mon Jan 28, 2019 2:11 pm

Hi,

I have a trouble with Freematics One+ when connecting to Freematics OBD-II Emulator MK2 using simple_obd_test project downloaded from https://github.com/stanleyhuangyc/Freem ... irmware_v5 (Download date: Jan 24 2019)

The project is successfully built and upload to Freematics One+. However, when I monitor the serial port, there is following error:
--- Miniterm on COM5 115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
CPU:240MHz Flash:4MB
________Firmware: V11
DEVICE ID: E5910GGV
GPS...NO
MEMS...9-DOF OK
ACC BIAS...0.00/-0.15/0.85
OBD...____________________OK
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d4fd3 PS : 0x00060b33 A0 : 0x800d517c A1 : 0x3ffb1e30
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000000 A5 : 0x00000064
A6 : 0x00000000 A7 : 0x0001a24b A8 : 0x00000024 A9 : 0x00000000
A10 : 0x3ffb843c A11 : 0x00000020 A12 : 0x00000001 A13 : 0x00000001
A14 : 0x00060b20 A15 : 0x00000000 SAR : 0x0000000a EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffe

Backtrace: 0x400d4fd3:0x3ffb1e30 0x400d5179:0x3ffb1e70 0x400d4843:0x3ffb1ea0 0x400d4c40:0x3ffb1ec0 0x400d1b57:0x3ffb1f40 0x400d2b7a:0x3ffb1f70 0x400d2e88:0x3ffb1f90 0x400d72d1:0x3ffb1fb0 0x40088989:0x3ffb1fd0

Rebooting...

When I commented the code 'if (!data) ... normalizeData(pid, data);' in FreematicsOBD.cpp --> bool COBD::readPID, the project could run without rebooting but PIDs parameters could not be read:

CPU:240MHz Flash:4MB
__Firmware: V11
Connecting to OBD...____________________OK
[79020] #0 RPM:0 SPEED:0 BATTERY:__9.21V CPU TEMP:52
[88424] #1 RPM:0 SPEED:0 BATTERY:__________0.00V CPU TEMP:52
[124301] #2 RPM:0 SPEED:0 BATTERY:9.87V CPU TEMP:52
[130539] #3 RPM:0 SPEED:0 BATTERY:_9.00V CPU TEMP:52

Detail message when I set VERBOSE_LINK to 1:

[UART BEGIN]
[UART SEND]ATI
[UART RECV]L��?���?␃
...
[UART END]
[SPI BEGIN]
[SPI SEND]ATI
_[SPI SEND]ATI
_[SPI SEND]ATI
>SPI RECV]OBDUART v1.1
Firmware: V11
Connecting to OBD...[SPI SEND]ATZ
>SPI RECV]ELM327 v1.5
[SPI SEND]ATE0
>SPI RECV]OK
[SPI SEND]ATH0
>SPI RECV]OK
[SPI SEND]010D
_[SPI SEND]010D
...
[SPI RECV]
[SPI SEND]010D
_[SPI SEND]010D
...
[SPI RECV]
[SPI SEND]010D
_[SPI SEND]0100
[SPI SEND]0120
[SPI SEND]0140
[SPI SEND]0160
OK
[84923] #0[SPI SEND]010C
[SPI RECV]
RPM:0[SPI SEND]010D
SPEED:0 BATTERY:[SPI SEND]ATRV
[SPI RECV]
[SPI SEND]ATRV
_[SPI SEND]ATRV
[SPI RECV]
[SPI SEND]ATRV
[SPI RECV]
[SPI SEND]ATRV
[SPI RECV]
[SPI SEND]ATRV
>SPI RECV]9.12V
9.12V CPU TEMP:52

When I send command 'ATDP', the device return "AUTO, ERROR". I think there seems to have a trouble with connection protocol between One+ and Emulator, but the OBD module is initialized with default parameters (PROTO_AUTO), and I could successfully connected to Emulator using Emulator GUI with protocol is CAN500kbps/11bit.

Anyone has solution?

stanley
Site Admin
Posts: 710
Joined: Sat Mar 01, 2014 3:15 am

Re: Trouble when connecting between One+ and Emulator MK2

Postby stanley » Sat Feb 16, 2019 10:21 pm

You were supplying 9V to the emulator?

quyennb
Posts: 2
Joined: Fri May 04, 2018 1:11 pm

Re: Trouble when connecting between One+ and Emulator MK2

Postby quyennb » Thu Feb 28, 2019 4:00 pm

Hi stanley

emulator is supplied 12V enough, i measured by Multimeter

may be because of access the memory ? i see the StoreProhibited

please help me fix it

thanks

stanley
Site Admin
Posts: 710
Joined: Sat Mar 01, 2014 3:15 am

Re: Trouble when connecting between One+ and Emulator MK2

Postby stanley » Tue Mar 05, 2019 11:33 am

ATRV command returns 9V only.


Return to “Freematics ONE+”

Who is online

Users browsing this forum: No registered users and 3 guests