Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

Unknown receive format #76

Closed cdupont closed 3 years ago

cdupont commented 4 years ago

This message appeared on several occasions on V1.1 final:

2020-03-31T17:04:33.237058540Z [     ] Edge ID: "b827eb02f33a"
2020-03-31T17:04:33.247893977Z [Edge ] Connected to edge mqtt.
2020-03-31T17:04:33.252051621Z [     ] LORA: Region: EU, Freq: 865.20MHz, BW: 8, SF: 12, CR: 5, Power: 14dBm
2020-03-31T17:04:33.252226203Z [     ] Looking for connected radios...
2020-03-31T17:04:33.553832606Z [     ] Detected radio: SX1276
2020-03-31T17:04:34.223527557Z [     ] Receiving, please stand by...
2020-03-31T17:05:25.081390517Z [     ] Err: unknown receive format
2020-03-31T17:06:29.282758646Z [     ] Err: unknown receive format
2020-03-31T17:07:28.307584787Z [     ] Err: unknown receive format
2020-03-31T17:08:32.498102825Z [     ] Err: unknown receive format
2020-03-31T17:09:31.580496745Z [     ] Err: unknown receive format
2020-03-31T17:10:30.663464302Z [     ] Err: unknown receive format

Partners assured that they didn't change the code on the WaziDev. With previous version of the WaziGate software, it was working, but with the new version the message appeared. Where can it comes from? @j-forster it would also be nice to print the content of the buffer in the logs for debugging.

cdupont commented 4 years ago

This is the decoding on Gateway side: https://github.com/Waziup/wazigate-lora/blob/master/edge.go#L67

cdupont commented 4 years ago

This is the log I have with V1.1:

2020-03-31T14:18:07.545138451Z [     ] Looking for connected radios...
2020-03-31T14:18:07.822436512Z [     ] Detected radio: SX1276
2020-03-31T14:18:08.492784413Z [     ] Receiving, please stand by...
2020-03-31T14:44:50.967648123Z [Edge ] Err: dial tcp 127.0.0.1:1883: connect: connection refused
2020-03-31T14:44:52.969644827Z [Edge ] Connected to edge mqtt.
2020-04-02T10:07:31.722123837Z [     ]  Dest: 1, Typ: 24, Src: 8, Num: 215, Data: "UID/MyDevice/SM1/0.00", RSSI: -31
rickhiram commented 4 years ago

logs-wazigate-lora-2020-06-16_14.43.16.txt I am facing a similar problem. Any solutions?

cdupont commented 4 years ago

@j-forster @mojtaba-esk

mojtaba-esk commented 3 years ago

Do you see it with the new forwarder?

cdupont commented 3 years ago

I think this is obsolete right? Old LoRa format is not supported in V2 (only LoRaWAN + LPP)?

mojtaba-esk commented 3 years ago

I think so, let's see what Johann says about it.

On Wed, Nov 11, 2020 at 12:26 PM Corentin Dupont notifications@github.com wrote:

I think this is obsolete right? Old LoRa format is not supported in V2 (only LoRaWAN + LPP)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Waziup/WaziGate/issues/76#issuecomment-725369048, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADJAXHAUKAM7VWP2NJNLDUTSPJYF3ANCNFSM4LZO5JOQ .

-- Mojtaba Eskandari

j-forster commented 3 years ago

The old payload encoding was replaced by LPP for Wazidevs and might be further improved by https://github.com/Waziup/WaziGate/issues/121. Any discussion on payload formats should be moved to the new issue.