made some progress…
Start LoRaWAN Single Channel Gateway
RX Frequency: 902.30
TX Frequency: 923.00
Spread Factor: SF7
connected!
TX Spread Factor: SF7
Coding Rate: 4/5
Bandwidth: 125000
PreambleLength: 8
connected!
but still having some issue, can you complete some testing on your side with these changes:
you have to apply these changes to the Single_pkt_fwd_v003.ino sketch like this:
Modification to single_pkt_fwd_v003
//Read frequency from uci ####################
int j = 0;
memset(tmp, 0, sizeof(tmp));
p.begin("uci");
p.addParameter("get");
p.addParameter("lorawan.radio.rx_frequency");
p.run(); // Run the process and wait for its termination
while (p.available() > 0 && j < 9) {
tmp[j] = p.read();
j++;
}
freq = atof(tmp);
freq = freq/1000000; //add this line into single_pkt_fwd
//Read txfre from uci ####################
j = 0;
memset(tmp, 0, sizeof(tmp));
p.begin("uci");
p.addParameter("get");
p.addParameter("lorawan.radio.tx_frequency");
p.run(); // Run the process and wait for its termination
while (p.available() > 0 && j < 10) {
tmp[j] = p.read();
j++;
}
txfreq = atof(tmp);
txfreq = txfreq/1000000; //add this line into single_pkt_fwd
ric2498, can you please explain how did you get this issure resolved on the LG01? the modifications to the Single_pkt_fwd_v003.ino sketch you provided does not work.
This is what I did to update the lg01_pkg_fwd (package), and by the way my first test with the lg01_pkt_fwd.ino sketch for arduino to fix the problem, was not the solution to this problem, as it is mentionned above.
I took the decision to follow the instruction provided by Dragino to build an updated firware containing the lg01_pkt_fwd (package) running into linux in the LG01.
run this shell script ./set_up_build_environment.sh (this command will clone the source code of Dragino including lg01_pkt_fwd package)
the source code is now residing into /openwrt-cc-15.05/openwrt/feeds/dragino/lg01_pkt_fwd/src/main.c; which I modified to change the frequency in Mhz before to build the firmware by the next step.
Some manipulation of the .config.IoT file must be done before to execute the next step, if you need it I can provide more details.
7 ./build_image.sh -a IoT
Voila…
you can use this link to see the lg01_pkt_fwd source code that must be modified:
Also as I said I’m trying to push this update to Edwin from Dragino to include this mod into a new firmware… but I can’t guarantee it…
Hey - thanks for the note. I was suspecting the way to fix this was editing the lg01-pkt-fwd souce and recompiling, your note confirmed it.
Thanks for the source code I’m going to re-build the utility right away!
I connected this to my lora network server and it has shown up in chirpstack. All I did however was update the firmware on the Dragino LG01 P.
Do you know if I have to uypdate the packet forwarder on the gateway?
I have seen this post: https://www.chirpstack.io/gateway-bridge/gateway/dragino/ however this is for a different version of the gateway… could you provide any guidance? I am just waiting for some new batteries for a ABP node to test… Any help would be greatly appreciated…
my system works fine with TTN .I also have the same system LoRa IoT Development kit v1.4 from Dragino with LG01-N gateway. Have you succeed to connect with ChirpStack server ? I also need to go further with this system.
TTN prevents/denies Single Channel Gateway (SCG) for connecting to its server beacuse this gaeway is not fully match and disturbs other fully loRawan gateways,which comes with 8 channels.