CongducPham / LowCostLoRaGw

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

Setting channels for 915MHz SX1276 on raspberrypi gateway #128

Open comimoma opened 7 years ago

comimoma commented 7 years ago

Hi,

I am using 900MHz SX1276 transceiver but I don't know where to modify the program in raspberrypi. Could someone tell me which programming file I should look into in order to change the frequency range?

ankitnehra commented 7 years ago

lora_gateway.cpp on line 223 comment #define BAND868 and uncomment BAND900

CongducPham commented 7 years ago

Hi, the README has been updated. Please read:

https://github.com/CongducPham/LowCostLoRaGw#running-in-433mhz-and-900mhz-band

regards,

Le 14/07/2017 à 16:08, ai6sm3596ru61u04 a écrit :

Hi,

I am using 900MHz SX1276 transceiver but I don't know where to modify the program in raspberrypi. Could someone tell me which programming file I should look into in order to change the frequency range?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CongducPham/LowCostLoRaGw/issues/128, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNENzcC5UEkMt9XuJJ8yKRJkQ8rb5v0ks5sN3ZZgaJpZM4OYTHR.

C. Pham.

-- ------------ Congduc PHAM - Professor -------------------------- LIUPPA - Equipe T2I U.P.P.A. Pau http://liuppa.univ-pau.fr/ http://www.univ-pau.fr
UPPA, LIUPPA laboratory, UFR Sciences et Techniques
Avenue de l'Université - BP 1155
64013 PAU CEDEX, FRANCE
phone: [33] (0) 5 59 40 75 94
fax: [33] (0) 5 59 40 76 54
Congduc.Pham@univ-pau.fr http://www.univ-pau.fr/~cpham
----------------------------------------------------------------
DuaneKaufman commented 7 years ago

Hello, I too am trying to use the Dragino HAT on a RaspberryPi3 for the 915MHz bad (US)

The HAT is marked for 915MHz use, and I have jumpered the correct pins. I modified the lora_gateway.cpp on line 223 comment #define BAND868 and uncomment BAND900, but when I start the program (using sudo ./lora_gateway) I get:

pi@LORA_Gateway:~/lora_gateway $ sudo ./lora_gateway SX1276 detected, starting. SX1276 LF/HF calibration ... ^$**Power ON: state 0 ^$Default sync word: 0x12 ^$LoRa mode 1 ^$Setting mode: state 0 ^$Channel CH_10_868: state 0 ^$Set LoRa power dBm to 14 ^$Power: state 0 ^$Get Preamble Length: state 0 ^$Preamble Length: 8 ^$LoRa addr 1: state 0 ^$SX1272/76 configured as LR-BS. Waiting RF input for transparent RF-serial bridge ^$Low-level gw status ON

...which doesn't look like I am enabling the 915MHz channels?

Sincerely, Duane

ankitnehra commented 7 years ago

Did you compile it after making the change?

DuaneKaufman commented 7 years ago

Hi ankitnehra, Thanks for the response. Yes, I did a make lora_gateway, then deleted the old one and linked lora_gateway_pi2 to lora_gateway, like the original installer did.

Duane

DuaneKaufman commented 7 years ago

Hi all, I'm sorry, I mis-interpreted the linking of lora_gateway and lora_gateway_pi2, and was running a stale copy

I now get:

pi@LORA_Gateway:~/lora_gateway $ sudo ./lora_gateway SX1276 detected, starting. SX1276 LF/HF calibration ... ^$**Power ON: state 0 ^$Default sync word: 0x12 ^$LoRa mode 1 ^$Setting mode: state 0 ^$Channel CH_5_900: state 0 ^$Set LoRa power dBm to 14 ^$Power: state 0 ^$Get Preamble Length: state 0 ^$Preamble Length: 8 ^$LoRa addr 1: state 0 ^$SX1272/76 configured as LR-BS. Waiting RF input for transparent RF-serial bridge ^$Low-level gw status ON

Which looks right, right?

Sincerely, Duane

GARYARIES commented 3 years ago

If you enter from your LAN network as http://192.168.xxx.xxx/admin with username: admin and password: loragateway In the gateway configuration screen you can change the working frequency