CubeCell Configurator

I have 2 sensors connected to the cubecell development board
They are BME 680 and MPU9250

Am using the TC9548A (firmware 2.1.2)

When joining the chripstack i am able to send the payload and see the data

* frequency:868100000
* modulation:"LORA"
* * bandwidth:125
* spreadingFactor:7
* codeRate:"4/5"
* polarizationInversion:false
* adr:true
* dr:5
* fCnt:0
* fPort:2
* data:"AAoA8IA/AAACPQAAQz4AcJQ/AAD6vQBQwz8AAHdBAKwAQwDkmUK9SIM/z+zaQAEBBRQB7CYYH7kAGhnI"
* objectJSON:"{"P0_MPU9250_aSqrt":1065568445,"P0_MPU9250_aY":1023541248,"P0_MPU9250_aZ":1044578304,"P0_MPU9250_ax":1065414656,"P0_MPU9250_gX":1066692608,"P0_MPU9250_gY":-1107689472,"P0_MPU9250_gZ":1069764608,"P0_MPU9250_mDirection":1088089295,"P0_MPU9250_mX":1098317824,"P0_MPU9250_mY":1124117504,"P0_MPU9250_mZ":1117381632,"P1_BME680_IAQ":26,"P1_BME680_gas":8121,"P1_BME680_humidity":49.2,"P1_BME680_pressure":975.2,"P1_BME680_temperature":30,"battery":6600}"

and see it in the chripstack. On the next uplink the data is null.

rxInfo:* frequency:867300000
* modulation:"LORA"
* * bandwidth:125
* spreadingFactor:12
* codeRate:"4/5"
* polarizationInversion:false
* adr:true
* dr:0
* fCnt:1
* fPort:0
* data:null
* objectJSON:"{}"

But the data is showing in the debug window of the configurator. This happens every time.

So in short at the time of joining all the data is send and received, but during consecutive up link data is not send
Any advise ?

Please try the actual firmware 3.0.5

In the 2. range i had some problems with the tca

Hello @wasn

Tried the new firmware 3.0.5. Still the result is the same. From the second uplink the data is null. This occurs only if am using 2 sensors together. Is there any limit to the amount of the data to be send ?

TrxInfo:*     frequency:867900000
    * modulation:"LORA"
    * * bandwidth:125
    * spreadingFactor:12
    * codeRate:"4/5"
    * polarizationInversion:false
    * adr:true
    * dr:0
    * fCnt:6
    * fPort:0
    * data:null
    * objectJSON:"{}"

cant reproduce that failure.
i have a modularnode here for testing (it is a dev board and TCA) and it is running fine with up to 3 sensors (1x BME280, 1 BME680, 1x SHT31).

my firmware does not limit the data length, but i think there is a data limit in the cubecell library.

the mpu sensor has much data to send.
perhabs i have an error in the MPU section of the code. will try to have a look in the next days.

@wasn

Found the below information

*appData size is LORAWAN_APP_DATA_MAX_SIZE which is defined in "commissioning.h".
	*appDataSize max value is LORAWAN_APP_DATA_MAX_SIZE.
	*if enabled AT, don't modify LORAWAN_APP_DATA_MAX_SIZE, it may cause system hanging or failure.
	*if disabled AT, LORAWAN_APP_DATA_MAX_SIZE can be modified, the max value is reference to lorawan region and SF.
	*for example, if use REGION_CN470, 
	*the max value for different DR can be found in MaxPayloadOfDatarateCN470 refer to DataratesCN470 and BandwidthsCN470 in "RegionCN470.h".
	*/ 

Modified below value in commissioning from 128 to 242, i was able to able to see the data.

define LORAWAN_APP_DATA_MAX_SIZE 242

The downside is setting the value to 242 is not supported with AT enabled. This means that cubecell configurator cannot be used right ?

You are right.
The configurator needs the at commands.

But i will try to raise the max size and let the at commands be activated.

Hope to find time this weekend

@wasn

Checking the source code of LoraWan_Multisensor found that the last release was 2.1. Can you kindly push the latest source code ?

https://github.com/HelTecAutomation/ASR650x-Arduino/tree/master/libraries/LoRa/examples/LoRaWAN/LoRaWAN_Sensors/LoRaWan_MultiSensor

Regards,
JIhad

All version above 3 will not be open sourced.
There is too much work involved

The modularnode and indoornode version will have a copyprotection.
But we will release a version for the Board, capsule and tca every now and then when big changes were made.

ok,
Thanks for the update. Good luck

i am sorry that i cant publish the sources anymore and give you only the compiled file.
there was the first seller on ali selling boards with my firmware without asking and saying the developed all.

Hi I think we fully understand the need to protect the f/w so that you can keep full control. Just as reference I noted the other week that when using a BH1750 I noticed that you have multiplied the LUX values in the sensor end by 10 and divide the value on the decoder. I have found with this at high lux values it reaches a peak and does not give the full 64k values so does not report the correct values as sit at a fixed value. May be some thing to change in next release. I do not add the x 10 in my scripts and can reach the full 64 k LUX level. Best regards keep safe Simon

An other point for my todo list

We have made a decission here.

We will update the precombiled version allways with the actual version. The board, capsule and tca version will have no copyprotection only the special firmware for our modular and indoor node will be copyprotected.

And now to the source code.
We will try to update the source (without copyprotect code) for the main releases.
So the mk3 source code version will be uploaded this weekend.

I think we can give the community the possibility to get the sources and have all new development in the compiled version

for all waiting for the actual sources of the MultiSensor example, here it is:

1 Like

@wasn

Thanks for making the source code open again… There is a lot to learn from that code. Your contribution to the community is highly valuable and this action is highly appreciated.

Hello @wasn

Seems like the code in the github is reverted to an older version which is 2.1.2

https://github.com/HelTecAutomation/ASR650x-Arduino/blob/master/libraries/LoRa/examples/LoRaWAN/LoRaWAN_Sensors/LoRaWan_MultiSensor/LoRaWan_MultiSensor.ino

Please have a look

@Aaron s last commit made a wrong merge.
Just commited the 3.0.7 ino again

@wasn
Thanks its okay now. Could you tell me which BME280 libarary are you using in your sketch? I tried different libraries . None of them worked Below is the message which i am getting.

arduino_build_836167\sketch\include/includesDeclarations_ce.cpp:7:20: fatal error: BME280.h: No such file or directory

Thanks

I am using the seed studio library.
But renamed it to bme280 and changed the include.

Will rename it to the original name in the next release

Just released the V0.0.6 board manager package.

We expect to upgrade and maintain the website and forum next Tuesday, and release the ASR6502 series.

1 Like