Giter Site home page Giter Site logo

single_chan_pkt_fwd's People

Contributors

tftelkamp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

single_chan_pkt_fwd's Issues

lora hat dragino problems

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'.

SERVER IP update

please update the SERVER IP to the new "elastic" IP

define SERVER1 "54.72.145.119"

not works

Trying to detect module CE0 with NSS=6 DIO0=7 Reset=0 Led1=unused
Transceiver version 0x00
Trying to detect module CE1 with NSS=6 DIO0=7 Reset=0 Led1=unused
Transceiver version 0x00
Gateway ID: b8:27:eb:ff:ff:9c:24:13
Listening at SF7 on 913.300000 Mhz.
Listening at SF7 on 913.500000 Mhz.

Compilation problem

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

Pin mapping

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?

image while the tutorial I saw used the following pin mapping
image 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

Compatibility

May I know If such setup works with Raspberry Pi 4 instead of Raspi 3?

Unable to connect more than one node.

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.

how to get Indian freq range of 865-867

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;

Unable to recognize device's transceiver

photo6152080489180147795

Capture

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?

SF7 250KHz

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?

Gateway ID calculation on Raspberry Pi Zero

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 ?

Disable Frequency Hoping

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.

Gateway id 00:00:00:ff:ff:00:00:00

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?

Disable "fake gps" when coordinates are 0,0.

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); 
}

Protocol

What protocol do you use in this project?
Protocol_version 1, what does that means?
Could you tell me please?

Modification with 433MHz and private server

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

Only receives the first message

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,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.