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

Example "LoRaWan_OnBoardGPS_Air530.ino" stops working after some time

Open schroepfer opened this issue 2 years ago • 9 comments

Board: CubeCell HTCC-AB02S GPS Version: 1.4.0 Example: LoRaWan_OnBoardGPS_Air530 > https://github.com/HelTecAutomation/CubeCell-Arduino/tree/master/libraries/LoRa/examples/LoRaWAN/LoRaWAN_Sensors/LoRaWan_OnBoardGPS_Air530 This example stops working after ca. 5 uplinks to TTN.

This seems to be the same error as issue #230 "GPS example sketch stuck after a couple of iterations".

Addendum: the software works longer with 1.3.0 ! It seems, that the error comes partly from here.

schroepfer avatar May 17 '22 09:05 schroepfer

Same problem here....

rodri16 avatar Aug 22 '22 07:08 rodri16

https://github.com/HelTecAutomation/CubeCell-Arduino/issues/247#issuecomment-1225879764

hkicko avatar Aug 24 '22 15:08 hkicko

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

this fix does not work for me, the example still stops working after 12-20 hours...

lyncker avatar Apr 11 '23 13:04 lyncker

this fix does not work for me, the example still stops working after 12-20 hours...

Exactly! :-( I give up with this board....

schroepfer avatar Apr 11 '23 13:04 schroepfer

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

Thanks! I'm not so confirm in PlatformIO. I don't know, where to define the build-flags:

`/LoraWan region, select in arduino IDE tools/ LoRaMacRegion_t loraWanRegion = ACTIVE_REGION;

/LoraWan Class, Class A and Class C are supported/ DeviceClass_t loraWanClass = LORAWAN_CLASS;

/the application data transmission duty cycle. value in [ms]./ uint32_t appTxDutyCycle = 180 * 1000; /* Should be 180 seconds */ /OTAA or ABP/ bool overTheAirActivation = LORAWAN_NETMODE;

/ADR enable/ bool loraWanAdr = LORAWAN_ADR;

/* set LORAWAN_Net_Reserve ON, the node could save the network info to flash, when node reset not need to join again */ bool keepNet = LORAWAN_NET_RESERVE;

/* Indicates if the node is sending confirmed or unconfirmed messages */ bool isTxConfirmed = LORAWAN_UPLINKMODE;`

Please can you post your platform.ini ?

schroepfer avatar Jun 16 '23 17:06 schroepfer

This is all I have in my platformio.ini

; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html

[env:cubecell_gps] platform = heltec-cubecell board = cubecell_gps monitor_speed = 115200 framework = arduino

olman011 avatar Jun 21 '23 21:06 olman011

I found it. Without this build flags PlatformIO can not compile.

Now the software compiles, but the cubecell only connect once to TTN and then stops. :-(

`[env:cubecell_gps] platform = heltec-cubecell board = cubecell_gps framework = arduino

board_build.arduino.lorawan.region = EU868 board_build.arduino.lorawan.adr = ON board_build.arduino.lorawan.debug_level = FREQ_AND_DIO board_build.arduino.lorawan.netmode = OTAA board_build.arduino.lorawan.rgb = ACTIVE `

schroepfer avatar Jun 22 '23 04:06 schroepfer