Jason Reiss
Forum Replies Created
-
AuthorPosts
-
October 8, 2020 at 11:48 am in reply to: Do the User register values stay intact thru' power cycles. #31222
Jason Reiss
KeymasterThe values are stored in the RTC and would only be affected by removing power. Resetting the CPU or Flash will have no affect.
October 1, 2020 at 8:42 am in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31184Jason Reiss
KeymasterI can reproduce the error if I choose mbed-os-5.15.1 revision
September 30, 2020 at 5:16 pm in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31182September 30, 2020 at 2:19 pm in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31179Jason Reiss
KeymasterWe changed repos as the old one had mbed5 in the name.
https://github.com/MultiTechSystemsSeptember 28, 2020 at 7:30 am in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31176Jason Reiss
KeymasterIndeed a protocol must be implemented by both sides to be useful.
The 4.0.0 release has redundant config and session storage saved apart from the file system. A corrupted file system will no longer cause loss of credentials, key or counters needed to join the network.
September 25, 2020 at 9:53 am in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31172Jason Reiss
KeymasterAlso with FOTA enabled the Dot will send GPS Time request MAC commands to sync the time. This can affect some network servers that do not have support for the GPS Time command.
September 25, 2020 at 7:33 am in reply to: Regarding using MDot Library version 4.0.0 and AEP Conduit firmware. #31158Jason Reiss
KeymasterThe Dot 4.0.0 includes support for LoRaWAN 1.0.4. This implements join nonce counter validation by default that verifies that the Join Accept nonce value has incremented from the last received value. Some network servers, such as TTN community, may return random nonce values that can cause the join to fail with this validation enabled.
This behavior can be disabled with this function if needed. Or with AT+JNV=0 in AT firmware.
/** * Enable/disable Join Nonce validation for App Nonce in Join Accept * Default is enabled */ int32_t setJoinNonceValidation(bool enable); bool getJoinNonceValidation();
mPower 5.2.1 or greater is compatible and implements the join nonce counter, older versions provide random nonce values.
Jason Reiss
KeymasterYou should switch to root before issuing the command. The root user will be reset when the command is issued and sudo cannot be used afterwards.
$ sudo -s # reset-defaults # shutdown -r now
The API could also be used with the restore_defaults or restore_factory commands. The Conduit will reboot after the command is issued.
$ curl -X POST 127.0.0.1/api/command/restore_defaults -H "content-type: application/json" --data ""
Jason Reiss
KeymasterWhat is the reason for lost uplinks?
Jason Reiss
KeymasterA “region” setting may be needed.
https://doc.sm.tc/station/tcproto.html?highlight=region
“region”: “AS923JP”
https://github.com/lorabasics/basicstation/blob/817e6e1e7f0c3affce078bac7b060ba675043664/src/s2e.c
There should be a region log message
LOG(MOD_S2E|INFO, “Configuring for region: %s%s — %F..%F”,
Jason Reiss
KeymasterWith two cards installed this can be done in packet forwarder mode to remote servers.
If you are using the embedded network server this mode of operation is not supported.
Jason Reiss
KeymasterThe mosquitto_pub and mosquitto_sub commands are helpful when working with MQTT.
$ mosquitto_sub -v -t lora/#
$ moquitto_pub -t lora/0011223344556677/down -m {“data”:”AQ==”}
Jason Reiss
KeymasterThese commands are used by the UI to get the list of packets received.
$ lora-query -x packet list json
$ lora-query -x packet up json
What results are you see to make you say it does not work?
-
This reply was modified 4 years, 8 months ago by
Jason Reiss.
August 14, 2020 at 7:43 am in reply to: Improving and Backing up a Setup with 6 Conduits and 250 Loggers #31084Jason Reiss
KeymasterIf you do not have creds for the device, how are authorized to make changes at all?
Jason Reiss
KeymasterHow is that more simple than direct json data as requested?
/var/run/lora/lora-network-server.db is the active file. /var/config/lora is a periodic backup.
Jason Reiss
KeymasterCan you share an example of the command you are trying to use?
Realtime data can be obtained with an MQTT client application.
See an example here.
https://github.com/trong63/mqtt_sample.gitJason Reiss
KeymasterWhat version of mPower/AEP are you using?
Jason Reiss
KeymasterIs the device connected via ABP where the session DevAddr, NwkSKey and AppSKey are set?
Perhaps the device resets the FCNT to 0 when reset. The network server will reject previously received FCNT values to protect from packets being replayed.Best practice would be for the device to save the last used FCNT and resume the session to keep replay protection.
Or you can choose the Disable Strict Counter option under the Network Server Testing section of the LoRaWAN > Network Settings page to allow a device to reset the FCNT. Click Save and Apply after submitting the changes to restart the Network Server.
Jason Reiss
KeymasterIt appears that the mtcap update file is not the correct file.
Jason Reiss
KeymasterThe full 5.2.7 image is available here.
Jason Reiss
KeymasterReceived packet data will be stored in the Network Server database and published to the local MQTT broker.
The lora-query utility can be used to retrieve the packet data from the Network Server.
Jason Reiss
KeymasterHow are you configuring the gateway? Through the UI or file system?
Does the gateway have TTN software installed?Through the UI the Packet Forwarder Manual Configuration would be needed to provide the global_conf.json file with “fake_gps” and “ref_*” fields.
Jason Reiss
KeymasterHere are the end-points for the API.
I usually use a browser to inspect the calls made by the UI for JSON examples of API calls.
Jason Reiss
KeymasterPlease open a support ticket at support.multitech.com to share logs and configuration.
Jason Reiss
KeymasterThe frequencies used to setup the Channel Plan are located here.
https://os.mbed.com/teams/MultiTech/code/libmDot-dev-mbed5-deprecated//file/0f5a742a08cd/Lora.h/const uint32_t EU868_MILLI_1_FREQ_MIN = 868700000; const uint32_t EU868_MILLI_1_FREQ_MAX = 869200000;
And used in ChannelPlan_EU868.cpp to setup the duty-cycle band with a max power on lines 201-208.
band.Index++; band.FrequencyMin = EU868_MILLI_1_FREQ_MIN; band.FrequencyMax = EU868_MILLI_1_FREQ_MAX; band.PowerMax = 14; band.TimeOffEnd = 0; band.DutyCycle = 1000; AddDutyBand(-1, band);
The PowerMax is used in SetTxConfig to limit the max power allowed on the channels within the defined band.
Let me know if that helps.
Jason Reiss
KeymasterCan you provide a link to the file you are trying to edit?
Jason Reiss
KeymasterLooking at the packet_sent event the packet_forwarder “powe” field is set to 13 for 868.3 MHz
+16 dBm EIRP minus the +3 dBi antenna gain.$ mosquitto_sub -v -t lora/+/+ lora/00-80-00-00-00-00-da-09/packet_sent {"appeui":"16-ea-76-f6-ab-66-3d-80","codr":"4/5","data":"IAhYEpGRsYmdgURxfjgJIuj/CwF6xd2xJIYUffWGq0+q","datr":"SF7BW125","deveui":"00-80-00-00-00-00-da-09","freq":868.29999999999995,"gweui":"00-80-00-00-a0-00-0e-34","id":0,"ipol":true,"mhdr":"","mic":"86ab4faa","modu":"LORA","ncrc":true,"opts":"","port":0,"powe":13,"rfch":0,"seqn":0,"size":33,"tmst":54367523,"twnd":1}
Jason Reiss
KeymasterData should be base64 encoded
Also add the header option
-H “Content-Type: application/json”Jason Reiss
KeymasterWhat does myXdotbat.getBatteryLevel() do?
What value is it returning?
Does it change if you fix the value returned by getBatteryLevel() to 128? -
This reply was modified 4 years, 8 months ago by
-
AuthorPosts