LowCostLoRaGw icon indicating copy to clipboard operation
LowCostLoRaGw copied to clipboard

TTN LoRa GW hex. ID conversion doubt

Open fleong opened this issue 5 years ago • 5 comments

Dear Pham,

I've read the doc "TTN and LoRaWAN". When registering the Gateway in TTN it is necessary to do a conversion in the hexadecimal ID. Could you clarify why 0000B827EBD1B236 becomes B827EBFFFFD1B236?

Best regards, Fernando

fleong avatar Apr 26 '19 07:04 fleong

It is not mandatory to insert FFFF the proposed way, but it is quite a well adopted convention. RAK gateways used FFFE for instance. We also have some "translater" that can use a low-cost multi-channel gw as hardware and inject data to our post-processing stage for instance and it is a convenient way to distinguish between the 2 modes on TTN.

The fact is post_status_processing_gw.py will insert these FFFF in order to call TTNstat.py for reporting gw's status to TTN. So if you wish to change the naming, change in post_status_processing_gw.py.

regards,

CongducPham avatar Apr 26 '19 07:04 CongducPham

Ok thanks!

fleong avatar Apr 26 '19 09:04 fleong

Pham. Thanks for all your work on this (I went trout fishing in Pau once—about 50 years ago—it was a nice city!). I set up a test Lora gateway using your code and a RPI and RFM95W and it seems to be working in some way but I see a long string of receive errors. Could you look at at the output from choosing the 0 option in ./cmd.sh and explain what might be causing the large numbers of Receive error 1 lines? I posted the code at GIST: https://gist.github.com/newkton1/b145b290aa10660954cf78d6f3d5e017

newkton1 avatar Aug 21 '19 22:08 newkton1

Hi, do you start manually the lora_gateway with option 0 after boot? Because the lora_gateway program is already started at boot time. So looks like you have 2 instances of the gateway program running which will cause conflict on the SPI bus.

PS: where do you come from to had visited Pau 50 years ago?

CongducPham avatar Aug 22 '19 06:08 CongducPham

Hello Pham.

Thanks for answering. Yes, that was my mistake—there were two instances running.

I have another question if you don’t mind tech support! When I run the Web admin I/F and set the frequency to 913.8 MHz and reboot the gateway, the change does not seem to be reflected in the ./cmd.sh screen when choosing option 5 (see screenshot). Is there something else I need to change?

I am originally English and our family was very Francophile, so my parent took me to France each summer where we spent long holidays trout fishing in the rivers running down from the Pyrenees, near Pau. It is a very beautiful spot.

After university, I came to Japan for work and have been here ever since (35 years now) after marrying and having children.

One day I hope to get back to southern France for more trout fishing!

Best,

ROBERT HANCOCK [email protected]

On Aug 22, 2019, at 15:36, Congduc Pham [email protected] wrote:

Hi, do you start manually the lora_gateway with option 0 after boot? Because the lora_gateway program is already started at boot time. So looks like you have 2 instances of the gateway program running which will cause conflict on the SPI bus.

PS: where do you come from to had visited Pau 50 years ago?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/CongducPham/LowCostLoRaGw/issues/245?email_source=notifications&email_token=ADDTSB6OCBYRIMR55NDPP3TQFYXYVA5CNFSM4HITAZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD44BRPQ#issuecomment-523770046, or mute the thread https://github.com/notifications/unsubscribe-auth/ADDTSB2KGYCPKLPZ63DLNFTQFYXYVANCNFSM4HITAZUA.

newkton1 avatar Aug 22 '19 07:08 newkton1