LoRaWan and LoRa Gateway

Bluetooth, XBee, RF......

Re: LoRaWan and LoRa Gateway

Postby kelvinswee94 » Mon Feb 26, 2018 12:48 am

bengchet WROTE:Hi,

No, at the time being we are not preparing the tutorial yet. However, you can start reading from previous link I provided here. It is a good start to setup LoRa RFM shield with raspberry pi as single channel Gateway (not LoRaWAN compliant but useful for testing).

Hope it helps, thanks!

Hi,
do you know the connection for LoRa RFM shield and Raspberry Pi 3 ? how to connect the shield to the RPi3? the steps in this link(http://www.instructables.com/id/Use-Lora-Shield-and-RPi-to-Build-a-LoRaWAN-Gateway/) is not so clear. Do you have another tutorial/link?
Thanks
kelvinswee94
Novice
 
Posts: 16
Joined: Wed Nov 15, 2017 4:19 pm

Re: LoRaWan and LoRa Gateway

Postby bengchet » Mon Feb 26, 2018 2:28 pm

Hi,

For raspberry pi, you can use this link. I personally think it is better and its guide is more comprehensive. Please read throught. Connection and wiring are also stated in the guide. you can look at this part. For Cytron RFM shield, 5V is needed instead of 3V3 so just connect 5V pin from shield to raspberry pi 5V pin.

For Arduino LoRa node, are you refering to our tutorial? If so, please set freq under "SX127x_conf" to one of following frequencies, 920000000, 920200000, 920400000, 920600000, 920800000, 921000000, 921200000. Under "servers", just change the "address" to router.au.thethings.network, just change only one of them.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: LoRaWan and LoRa Gateway

Postby kelvinswee94 » Thu Mar 01, 2018 12:16 pm

bengchet WROTE:Hi,

For raspberry pi, you can use this link. I personally think it is better and its guide is more comprehensive. Please read throught. Connection and wiring are also stated in the guide. you can look at this part. For Cytron RFM shield, 5V is needed instead of 3V3 so just connect 5V pin from shield to raspberry pi 5V pin.

For Arduino LoRa node, are you refering to our tutorial? If so, please set freq under "SX127x_conf" to one of following frequencies, 920000000, 920200000, 920400000, 920600000, 920800000, 921000000, 921200000. Under "servers", just change the "address" to router.au.thethings.network, just change only one of them.


Hi,
Thanks for the guide, by the way is there any document pinout for LoRa RFM shield? like which pin is for mosi and miso and which pin is for sck?
Thanks
kelvinswee94
Novice
 
Posts: 16
Joined: Wed Nov 15, 2017 4:19 pm

Re: LoRaWan and LoRa Gateway

Postby bengchet » Thu Mar 01, 2018 2:58 pm

Hi,

LoRa SPI (MISO, MOSI and SCK) is located at shield 6 pin SPI header. You can refer to this image below. However, 5V(VCC) and GND for shield must be taken from near Vin header there. 5V and GND is not available at shield SPI header.
Image
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: LoRaWan and LoRa Gateway

Postby kelvinswee94 » Sat Mar 10, 2018 3:49 pm

bengchet WROTE:Hi,

LoRa SPI (MISO, MOSI and SCK) is located at shield 6 pin SPI header. You can refer to this image below. However, 5V(VCC) and GND for shield must be taken from near Vin header there. 5V and GND is not available at shield SPI header.
Image


Hi bengchet, if i want my LoRa server to receive from specific LoRa RFM shield only, how should i do that? have to put specific address on the LoRa node?
Thanks
kelvinswee94
Novice
 
Posts: 16
Joined: Wed Nov 15, 2017 4:19 pm

Re: LoRaWan and LoRa Gateway

Postby bengchet » Mon Mar 12, 2018 5:26 pm

Hi,

For addressing, you need to apply your own protocol.
For example, you can send a series of bytes from client to server like below

header, address, payload size, payload, checksum

Let's say 0xFF, 0x01, 0x02, 0x01, 0x02, 0xF9, total of 6 bytes to send
- 0xFF is header value, which can be any value, you can vary this value for server or client
- 0x01 is address value, which means it is address 1
- 0x02 is size of payload
- size content will be 0x01 and 0x02
- 0xF9 is a checksum from address value to last payload byte (2 complement)[/list]

Server will need to filter these bytes to know which node is sending which data to it. If checksum is not correct, the data is not valid and server will discard it. You can do server -> client with the similar method.

The protocol above is just an example. You can customise your own protocol to make it more secure.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: LoRaWan and LoRa Gateway

Postby kelvinswee94 » Fri Mar 16, 2018 3:20 pm

bengchet WROTE:Hi,

For addressing, you need to apply your own protocol.
For example, you can send a series of bytes from client to server like below

header, address, payload size, payload, checksum

Let's say 0xFF, 0x01, 0x02, 0x01, 0x02, 0xF9, total of 6 bytes to send
- 0xFF is header value, which can be any value, you can vary this value for server or client
- 0x01 is address value, which means it is address 1
- 0x02 is size of payload
- size content will be 0x01 and 0x02
- 0xF9 is a checksum from address value to last payload byte (2 complement)[/list]

Server will need to filter these bytes to know which node is sending which data to it. If checksum is not correct, the data is not valid and server will discard it. You can do server -> client with the similar method.

The protocol above is just an example. You can customise your own protocol to make it more secure.


Hi, Beng Chet,
do you have any other specific example or any link that i can refer? thanks
kelvinswee94
Novice
 
Posts: 16
Joined: Wed Nov 15, 2017 4:19 pm

Previous

Return to Wireless Device

Who is online

Users browsing this forum: No registered users and 0 guests

cron