Freematics ONE + disconnects from WIFI

User feedbacks of the latest ESP32 based Freematics ONE+
virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Freematics ONE + disconnects from WIFI

Postby virgilio » Fri Feb 23, 2018 11:49 pm

Hi everybody
I know there's a specific forum but posting is disabled, don't know why, maybe an admin can work this out and move the post.
Moving on, I'm using the telelogger firmware, no modifications, freematics hub, and wifi (which is a mobile phone doing tethering)
The Freematics device is able to connect and to send data but it disconnects after 60-90 seconds. No log in the serial. Never tries to reconnect.
Same behaviour if I have also a laptop connected to wifi, so I'm sure the network is properly working.

Any idea on how to troubleshoot?
Is there any flag in the code to turn on verbosity?
Is this a know behaviour?

Regards
Virgilio

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

Re: Freematics ONE + disconnects from WIFI

Postby stanley » Sat Feb 24, 2018 8:31 pm

So the serial output stops after disconnected? Can you give the final output contents?

virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Freematics ONE + disconnects from WIFI

Postby virgilio » Tue Mar 13, 2018 12:48 am

Hi Stanley, thank you for your answer
No, the serial output continues, but there is no message about WIFI
And the device does not reconnect to hotspot. No matter how long I wait.

So my question is: should it automatically reconnect? is there any flag to control this behaviour?

virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Freematics ONE + disconnects from WIFI

Postby virgilio » Wed Mar 14, 2018 3:08 am

I reproduced the error and this is what I get, every time

2#0=61684,10D=0,30=0,10C=783,104=32,111=0,10=15551360,A=44.378927,B=11.722743,C=200,D=0,F=9,24=0,20=-8;26;33
,0=62086,10D=0,30=0,10C=780,104=33,111=0,10=15551400,A=44.378927,B=11.722744,C=200,D=0,F=9,24=0,20=-6;28;27,
0=62487,10D=0,30=0,10C=781,104=32,111=0,10=15551440,A=44.378927,B=11.722744,C=200,D=0,F=9,24=0,20=-9;27;29,0
=62915,10D=0,30=0,10C=781,104=32,111=0,10=15551480,A=44.378926,B=11.722744,C=200,D=0,F=9,24=0,20=-8;25;31,0=
63316,10D=0,30=0,10C=782,104=33,111=0,10=15551520,A=44.378925,B=11.722744,C=200,D=0,F=9,24=0,20=2;32;15,0=63
716,10D=0,30=0,10C=778,104=33,111=0,10=15551560,A=44.378924,B=11.722744,C=200,D=0,F=9,24=0,20=27;34;-10,0=64
116,10D=0,30=0,10C=779,104=33,111=0,10=15551600,A=44.378923,B=11.722745,C=200,D=0,F=9,24=0,20=21;38;2,0=6451
6,10D=0,30=0,10C=778,104=32,111=0,10=15551640,A=44.378922,B=11.722745,C=200,D=0,F=9,24=0,20=33;39;-97*77
UTC:15551690 SAT:9
UTC:15551730 SAT:9
UTC:15551770 SAT:9
UTC:15552430 SAT:10
NO SYNC
UTC:15552470 SAT:10
NO SYNC
UTC:15552510 SAT:10
NO SYNC
UTC:15552550 SAT:10
NO SYNC
WIFI OFF
WIFI(SSID:FREEMATICS)...OK
ACC BIAS...0.86/-0.05/-0.53
IP...0.0.0.0
VIN:WF0VXXGCEVHE87672
LOGIN...[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
.[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
NO
LOGIN...[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
NO
LOGIN...[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
NO
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
[E][WiFiUdp.cpp:183] endPacket(): could not send data: 118
WIFI OFF
GPS OFF
Standby
ACC BIAS...0.80/-0.53/-0.29
Wakeup
OBD...OK
GPS...OK
WIFI(SSID:FREEMATICS)...NO
WIFI(SSID:FREEMATICS)...NO
WIFI(SSID:FREEMATICS)...NO
WIFI(SSID:FREEMATICS)...NO
WIFI(SSID:FREEMATICS)...NO

Regards
Virgilio

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

Re: Freematics ONE + disconnects from WIFI

Postby stanley » Wed Mar 14, 2018 8:03 pm

The Wire library (I2C) of ESP32 Arduino core is poorly implemented. I just rewrite the Freematics ONE+ library to avoid using Wire library and this proves to solve several stability issues. Please try updating the library from github.

virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Freematics ONE + disconnects from WIFI

Postby virgilio » Fri Mar 16, 2018 2:37 am

Thank you for the answer.
Actually I see the master branch in git has new versions of files compared to mine. Cool.
Is there a specific -stable- version you recommend?

Regards
Virgilio

virgilio
Posts: 6
Joined: Fri Feb 23, 2018 11:29 pm

Re: Freematics ONE + disconnects from WIFI

Postby virgilio » Fri Mar 16, 2018 11:59 pm

Hi there
tried getting the latest sources but got errors in compilation. It reports:

/Users/virgilio/Desktop/Freematics-master/libraries/FreematicsPlus/FreematicsMEMS.cpp: In member function 'ui
nt8_t MPU9250_ACC::readByte(uint8_t)':
/Users/virgilio/Desktop/Freematics-master/libraries/FreematicsPlus/FreematicsMEMS.cpp:16:28: error: 'i2c_ack_
type_t' was not declared in this scope


Actually file FreematicsMEMS.cpp includes (https://github.com/stanleyhuangyc/Freem ... 50a85faf35)

#include <driver/i2c.h>
#include "FreematicsMEMS.h"

but there is no driver/i2c.h neither folder nor file

Am I missing something?
Virgilio

available
Posts: 6
Joined: Mon Apr 09, 2018 4:51 pm

Re: Freematics ONE + disconnects from WIFI

Postby available » Mon Apr 30, 2018 3:31 am

Hi @virgilio / @stanley / anyoneWhoCanHelp :-)

Just received my Freematics One+ and installed Firmware V5 onto it using Atom/PlatformIO.
Writing onto the device was SUCCESS.

I followed this link :https://freematics.com/pages/products/freematics-one-plus/guide/
upto the Atom/PlatformIO section. I believe Freematics Arduino Builder is to be used when i want to modify code. Correct me.

After that, from Serial Monitor I see this (Connects to Wifi (My phone's Hotspot) and then CLOSES the connection) immediately.

=================================================================
pio device monitor --port /dev/cu.SLAB_USBtoUART
$ pio device monitor --port /dev/cu.SLAB_USBtoUART
--- Miniterm on /dev/cu.SLAB_USBtoUART  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
WIFI APs found:
1: MyS8+ (-44dB)
2: WM1e20a9 (-61dB)
3: NewThermostat_CF40BA (-82dB)
4: NETGEAR90 (-82dB)
5: NETGEAR28 (-84dB)
6: MOTOE49E (-92dB)
7: NewThermostat_CEC08D (-92dB)
8: NETGEAR28_2GEXT (-93dB)
WIFI(SSID:MyS8+)...NO
WIFI APs found:

1: MyS8+ (-55dB)
2: WM1e20a9 (-69dB)
3: NewThermostat_CF40BA (-83dB)
4: NETGEAR28 (-86dB)
5: NewThermostat_CEC08D (-90dB)
WIFI(SSID:MyS8+)...OK
OBD...NO
WIFI OFF
Standby
ACC BIAS...-0.24/0.00/0.75
=================================================================

As per above discussions, I checked that I have the latest code:
https://github.com/stanleyhuangyc/Freem ... 50a85faf35

I did check with the BLE app : BleTerm, which reads HEX values as when i say read bytes :

0x46, 0x72, 0x65, 0x65, 0x6D, 0x61, 0x74, 0x69, 0x63, 0x73, 0x44, 0x65, 0x69, 0x63, 0x65

Does if mean that Freematics is actually reading things.

Any inputs on what to do at this stage ?
Thanks,
Available


Return to “Freematics ONE+”

Who is online

Users browsing this forum: No registered users and 1 guest