CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
699 stars 352 forks source link

Radio Module not sending ping #201

Open UrjitDave opened 6 years ago

UrjitDave commented 6 years ago

Hi @CongducPham Sir I'm using EthicsTech LoRa Development Kit (http://www.ethicstech.in/products/iot/lora-iot) and trying to run Arduino_Lora_Ping_Pong program from your sdk. We have a LoRa Gateway configured with Radio Module as per your tutorial. But it is still not receiving anything. 2018-05-30-151750_1824x984_scrot

I am uploading this sketch : https://github.com/CongducPham/LowCostLoRaGw/tree/master/Arduino/Arduino_LoRa_Ping_Pong

The Serial Monitor of Arduino IDE displays : capture

Looking forward to your response

CongducPham commented 6 years ago

Check the CS pin on this board, we use pin 10 as default, maybe it is different for this board.

UrjitDave commented 6 years ago

Thanks for the prompt reply. The board that we are using is a combination of Arduino and LoRa Radio Module and runs the Arduino sketches itself. Thus I don't need to connect any boards for sending packets. Here's how my board look : p_20180530_180044

The board, when attached to Arduino IDE, displays as "Adafruit Feather M0" and runs other sketches smoothly. But the Ping Pong sketch is uploaded it shows ... ... in Serial Monitor.

What could be the issue then ?

CongducPham commented 6 years ago

As I said, the CS pin used by this board may be not pin 10, so check the board schematic. If it is like the Adafruit M0, then maybe pin 8. Either change in SX1272.h or do as shown here: https://github.com/CongducPham/LowCostLoRaGw/blob/43c49579248f5599b5e55425d939df3d9a2c8d90/Arduino/Arduino_LoRa_Ping_Pong_LCD/Arduino_LoRa_Ping_Pong_LCD.ino#L227

CongducPham commented 6 years ago

If you look at the vendor github https://github.com/ethicstechOSS/LoRa-Development-Kit, the CS pin is pin 5, so use sx1272.setCSPin(5);

UrjitDave commented 6 years ago

Thanks, Sir for the prompt reply. I tried sx1272.setCSPin(5), and the serial monitor displays:

capture2

But the Gateway still displays : 2018-05-31-011421_1824x984_scrot

I cannot see the packets received on the gateway. However, when I press 'l' on the gateway interface, it displays the following two entries. I don't know how I got those 2018-05-31-010241_1824x984_scrot

What could be the issue ??