RAKWireless / WisBlock

Quickstart, tutorials and examples for the RAKwireless WisBlock product line.
https://www.rakwireless.com
MIT License
156 stars 117 forks source link

OTAA JOIN FAILED ON RAK4631 #53

Closed kzmKZuzmo closed 2 years ago

kzmKZuzmo commented 2 years ago

Hello I get this error I dont now why ? Is problem on chirpstack or node ? bc8432b805967d82552804397454e6588cd1b789

image

uint8_t nodeDeviceEUI[8] = {0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x33, 0x33}; uint8_t nodeAppEUI[8] = {0xB8, 0x27, 0xEB, 0xFF, 0xFE, 0x39, 0x00, 0x00}; uint8_t nodeAppKey[16] = {0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88};

beegee-tokyo commented 2 years ago

From your screenshot it looks like you setup the Device-Profile in Chirpstack to LoRaWAN MAC version 1.1. But the library used with RAK4631 is only LoRaMAC version 1.0.2.

Try to change your Device profile: image

kzmKZuzmo commented 2 years ago

it works thank you

beegee-tokyo commented 2 years ago

Is this from the beginning or does it start after a while?

You are on EU868 and there is a duty cycle that defines how often you are allowed to send a packet. It should be disabled by default, but it still could be the reason.

Can you see packets arriving in Chirpstack?

kzmKZuzmo commented 2 years ago

image I got this where I can find this definition ?

beegee-tokyo commented 2 years ago

Do you have defined a Payload Codec in the Device Profile? You want to forward data to an integration, but it seems there is no decoder defined. image

kzmKZuzmo commented 2 years ago

Yes I did a make a code. I do not understand why the gateway stops receiving data from the node when the node still sends? I do manualy restart the gateway packet forwarder. see the difference in times when it was received image

beegee-tokyo commented 2 years ago

Do you have the log of the device that stops sending? I have no explanation right now why this would happen. I have sensor nodes running in my house since months without problems.

What type of gateway are you using? Is the Chirpstack directly running on the gateway or is it a separate unit?

danak6jq commented 2 years ago

@kzmKZuzmo perhaps you could share the gateway live reception when the GW stops hearing the RAK4631. See example below of GW live frames; this will show what frames the GW is receiving (and possibly not processing in your CS application) as well as ADR commands send to the mote. Using the 'Download' button, you can get a JSON file of the live frames and attach that here.

I want to check the RSSI/SNR of the uplinks and see if there are ADR commands that possibly command the mote into an unusable state.

image
beegee-tokyo commented 2 years ago

No more feedback. Closed.