tftelkamp / single_chan_pkt_fwd Goto Github PK
View Code? Open in Web Editor NEWSingle Channel LoRaWAN Gateway
License: Other
Single Channel LoRaWAN Gateway
License: Other
hello:
I tested its development with a raspberry pi 3 and a dragino for raspberry shield and I couldn't get it to work.
Following your instructions change the fie global_colnf.json
{
"SX127x_conf":
{
"freq": 868100000,
"freq_2": 868300000,
"spread_factor": 7,
"pin_nss": 6,
"pin_dio0": 7,
"pin_rst": 0
},
"gateway_conf":
{
"ref_latitude": 0.0,
"ref_longitude": 0.0,
"ref_altitude": 10,
"name": "your name",
"email": "[email protected]",
"desc": "Dual channel pkt forwarder",
"interface": "wlan0",
"servers":
[
{
"address": "router.eu.staging.thethings.network",
"port": 1700,
"enabled": true
},
{
"address": "router.eu.thethings.network",
"port": 1700,
"enabled": false
}
]
}
}
But it returns an error
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Unrecognized transceiver: Success
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: server: .address = router.eu.staging.thethings.network; .port = 1700; .enable = 1
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: server: .address = router.eu.thethings.network; .port = 1700; .enable = 0
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Gateway Configuration
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: your name ([email protected])
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Dual channel pkt forwarder
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Latitude=0.00000000
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Longitude=0.00000000
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Altitude=10
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Interface: wlan0
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Trying to detect module CE0 with NSS=6 DIO0=7 Reset=0 Led1=unused
Jun 09 01:07:00 lora dual_chan_pkt_fwd[867]: Transceiver version 0x00
Jun 09 01:07:00 lora systemd[1]: dual_chan_pkt_fwd.service: Main process exited, code=exited, status=1/FAILURE
Jun 09 01:07:00 lora systemd[1]: dual_chan_pkt_fwd.service: Failed with result 'exit-code'.
please update the SERVER IP to the new "elastic" IP
Hi all,
I am new on the LoRa/rpi world and I am trying to run this example.
I have all the files cloned to my rpi 3 and the wiringPi library installed.
I´m trying to run the following code:
g++ -o LoraWan main.cpp -lwiringPi -lstdc++
but, intead of a clean compilation, i get the following error:
main.cpp:(.text+0x9b8): undefined reference to `bin_to_b64(unsigned char const*, int, char*, int)'
main.cpp:(.text+0xf80): undefined reference to `bin_to_b64(unsigned char const*, int, char*, int)'
Do you guys know how to fix this?
Thanks
I am using an SX1276 transceiver module. I understand that the pin mapping is meant for SX1272, but why does it does not reflect the actual mapping on the raspberry pi?
while the tutorial I saw used the following pin mapping
with no error. When I tried to change to follow the actual pin mapping on raspberry pi and after restarting the raspberry pi, error printed is transceiver not recognised.
Hope someone can help explain the reason for the odd mapping and why.
Thanks
May I know If such setup works with Raspberry Pi 4 instead of Raspi 3?
I am evaluating this single channel gateway even it is deprecated. Its still looking good for learning LoRa components.
I am using RPI as gateway and used two SX1276 transreceivers with 868Mhz freq. I can only connect with one node and unable to connect second node. I also tried the suspend mode once the data is transfered, but it wont work. I can able to connect second node only when I disconnect/poweroff the first node. Here I assumed that I can connect more than one node and transfer datas (one by one) in this single channel gateway. Some one help me to connect more than one node with single channel gateway.
TIA.
Thanks for this great work !
Is it possible to use raspberry gateway with sx1278 and end devices with stm32 and sx1278 ?
Regards
as i see this repo isn't updated, is there any working repo? i have sx1276 and I want to make it run on RP4.
Hi,
i want to use Lora hat and raspberry pi for Indian frequency range of 865-867.
Will it work by changing "freq" variable in main.cpp as given below.
// Set center frequency
uint32_t freq = 865100000;
Hi, currently I am setting up a LoRa gateway using a raspberry pi and Dragino LoRa GPS HAT (915 MHz). I have connected both of these as shown below in the figure. It ran normally for the first few times. However, after few days, I keep getting the messages "Unrecognized Transceiver" at the terminal. May I know what are the possible reasons causing this problem?
Is it possible to configure SF7 with 250Khz eg. DR_SF7B or is it possible to add some code so that the recognition of 250KHz packets are possible?
The "rxpk" message is missing the "time" field for the time of reception of the packet
can we use the Semtech sx1278 instead of sx1276 or sx1272 using these same libraries ?
When using on Raspberry Pi Zero, gateway ID is bad calculated.
Gateway ID: 00:00:00:ff:ff:00:00:00
This is probably due to lack of eth0 interface.
Any option to force gateway ID ? Or use wlan0 MAC to calculate ID ?
Hello,
in your setupLora() function you set the LoRa register for the Frequency Hoping Period to 0xFF.
I tried on my setup (hopeRF 95W with a SX1276) the following line.
writeRegister(REG_HOP_PERIOD,0x00);
I disable the Frequency Hopping and so for I stick to the given frequency.
When I tested it, I received all packages from my node.
P.S. I am a new to all this but I just wanted to let you know.
When I run the app with a Dragino LoRa/GPS HAT, the SX1276 is detected, but the gateway values remain at 0. Are these values the MAC address from the ethernet port? I'm running this on an RPI A+ with no ethernet. Is that why the values are zero?
I've been using the LowCostLoraGw code for my Pi + Dragino Lora/GPS HAT.
It's working as intended but it isn't clear to me if it's possible to connect to TTN with it. If it is, it isn't supported out of the box.
When the coordinates are set to lat=0, lon=0, the status packet that are sent looks like:
{"stat":{"time":"2017-05-15 14:29:06 GMT","lati":0.00000,"long":0.00000,"alti":10,"rxnb":0,"rxok":0,"rxfw":0,"ackr":0.0,"dwnb":0,"txnb":0,"pfrm":"Single Channel Gateway","mail":"[email protected]","desc":"My gateway"}}
but on the TTN NOC I see
{"id":"eui-b827ebffff706141","status":{"time":"1494859297251862030","gps":{"latitude":0.0000012673606,"longitude":0.000002682209,"altitude":10}
Which means we get a floating point rounding error.
What we expected was that the coordinates remain 0, and are then replaced by the coordinates from the TTN Console.
Recommendation:
If the coordinates are set to 0,0, do not add them to the status message. In other words, replace line 368 of main.cpp with (untested):
int j;
if(lat==0 || lon==0)
{
j = snprintf((char *)(status_report + stat_index), STATUS_SIZE-stat_index, "{\"stat\":{\"time\":\"%s\",\"rxnb\":%u,\"rxok\":%u,\"rxfw\":%u,\"ackr\":%.1f,\"dwnb\":%u,\"txnb\":%u,\"pfrm\":\"%s\",\"mail\":\"%s\",\"desc\":\"%s\"}}", stat_timestamp, cp_nb_rx_rcv, cp_nb_rx_ok, cp_up_pkt_fwd, (float)0, 0, 0,platform,email,description);
}
else
{
j = snprintf((char *)(status_report + stat_index), STATUS_SIZE-stat_index, "{\"stat\":{\"time\":\"%s\",\"lati\":%.5f,\"long\":%.5f,\"alti\":%i,\"rxnb\":%u,\"rxok\":%u,\"rxfw\":%u,\"ackr\":%.1f,\"dwnb\":%u,\"txnb\":%u,\"pfrm\":\"%s\",\"mail\":\"%s\",\"desc\":\"%s\"}}", stat_timestamp, lat, lon, (int)alt, cp_nb_rx_rcv, cp_nb_rx_ok, cp_up_pkt_fwd, (float)0, 0, 0,platform,email,description);
}
What protocol do you use in this project?
Protocol_version 1, what does that means?
Could you tell me please?
Hey, so I'm new to LoRa but i was hoping to make a gateway and node for a school project.
Can i simply modify the single channel packet forwarding file's configuration section for the 433MHz band and change the server address from the TTN server address to the new private server to get it forwarding packages?
I am hoping to connect with the Brocaar/gotthardp/loraserver.io server project
Hello,
I am using RPi and SX1276 (Hope RF95W) transceiver operating at 915 MHz. The packet forwarder only detects the first message and won't detect any consecutive message even after 30 minutes. The node is still sending messages every 30 seconds but the gateways can't detect them.
Any suggestion what might cause the gateway not to detect the message?
Thanks,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.