CubeCell-Arduino icon indicating copy to clipboard operation
CubeCell-Arduino copied to clipboard

Example "LoRaWan_OnBoardGPS_Air530.ino" stops working after some time

Open 505222621 opened this issue 1 year ago • 2 comments

Board: CubeCell HTCC-AB02S GPS Example: LoRaWan_OnBoardGPS_Air530 After running for a few minutes in the open field, the code gets stuck in the GPS segment

505222621 avatar Aug 01 '22 02:08 505222621

are you using battery power?

Mr-HaleYa avatar Aug 01 '22 15:08 Mr-HaleYa

are you using battery power?

no,using USB power

505222621 avatar Aug 02 '22 02:08 505222621

Same problem here...

rodri16 avatar Aug 22 '22 07:08 rodri16

This is because it constantly starts and stops the GPS and there is a memory leak bug in the GPS.end() function that is fixed with this commit: https://github.com/HelTecAutomation/CubeCell-Arduino/commit/85c0c7542b4496658624e578f45d187c321bc8ad

hkicko avatar Aug 24 '22 15:08 hkicko

This is because it constantly starts and stops the GPS and there is a memory leak bug in the GPS.end() function that is fixed with this commit: 85c0c75

yes,GPS.begin -> serial-begin : malloc(buf),no free(buf),change to global variable or serial-end :free(buf)

505222621 avatar Aug 25 '22 02:08 505222621

In case anyone is still having this problem, in PlatformIO the solution is to change the platform in the platformio.ini file. If you choose the Cubecell GPS board when starting a project it will default to "platform = asrmicro650x". This platform is deprecated and must be manually changed to "platform = heltec-cubecell". Once this is done the GPS functionality will work correctly.

olman011 avatar Jun 16 '23 13:06 olman011