Giter VIP home page Giter VIP logo

Comments (13)

conradholt avatar conradholt commented on July 17, 2024 1

Hi akash73,
I've tried the MKRWANFirstConfiguration example but still no success... I also wanted to ask about the code on the gateway, currently I'm using a Raspberry Pi 3b with a dragino shield wired I'm using the single_channel_pkt_fwd from https://github.com/tftelkamp/single_chan_pkt_fwd. My question is; is the Arduino MKR doing frequency hops between 8 or 64 channels? Is the code from the single channel packet fwd also doing frequency hops (probably only 8 channels)? Any suggestion on which single_chan_pkt_fwd use?

Kind regards:)

from mkrwan.

sabas1080 avatar sabas1080 commented on July 17, 2024

it can be for the subband, although I still do not know how to configure that

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

I feel they should provide more information on this matter, because there's two channel plans on the US915 (referring to upstream only) one with 8 channels using Lora's 500Khz bandwidth and 64 channels using Lora's 125Khz bandwidth...
Also provide documentation for the AT commands.
I hope they fix this issue with the US LoRa connection soon...

from mkrwan.

akash73 avatar akash73 commented on July 17, 2024

Hi,
pls look at this
https://www.arduino.cc/en/Tutorial/MKRWANFirstConfiguration

inside the example :

Serial.println("Register to your favourite LoRa network and we are ready to go!");
  // change this to your regional band (eg. US915, AS923, ...)
  if (!modem.begin(EU868)) 

change the value of (!modem.begin(EU868)) to US915

check if works.
thanks

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

Any update? Have you been able to securely transmit data (OTAA,ABP) using LoRa standards over the 915MHz?

from mkrwan.

sslupsky avatar sslupsky commented on July 17, 2024

I just fired one up today on US915 and I have been able to send packets through my gateway to my server. There are some issues to resolve but the packets are getting there.

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

Hey @sslupsky could you specify the setup you used? Gateway, if possible post the gateway code, and I'm assuming you tried the mkr with the MKRWANFirstConfiguration example?
Thanks

from mkrwan.

sslupsky avatar sslupsky commented on July 17, 2024

HI @conradholt I am using the Laird gateway. I am not sure what you mean by gateway code? When using the MKRWAN1300 with an 8 channel gateway such as the Laird, select the "US915_Hybrid" region. That appears to work most reliably to join the network. I have configured my Laird gateway for channels 0 - 7 and 64. I have not actually figured out how the "Hybrid" configuration differs from the standard one yet though. It is not documented anywhere that I can find.

I should also mention that I am using the standard Semtech packet forwarder on the Laird gateway and I have a Loraserver instance (loraserver.io) running.

I've used the FirstConfiguration example and the LoraSendandReceive example and gone from there. Though, I have not actually tested receiving yet. There is some weirdness regarding resetting the board. If the board is reset by pressing the reset button or uploading a new sketch, the setup() runs and it joins the network. The loop() runs once and sends one uplink and hangs. If I do a power on reset, the loop() function cycles as it should.

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

thanks @sslupsky for the reply!.
I have been able to set an arduino uno with a dragino shield v1.4 to send data to ttn using a single channel gateway (sx12xx) like a Raspberry pi + dragino shield or the dragino lg01.
Since the gateway it's a single channel, when sending data I have to make sure I disable the 63 other channels for the us band (just sending data on 902.3Mhz) ... Is there any way to disable all the channels except 1 for mkr1300?
Also regardless of OTAA or ABP do you have to give the APPKey or APPSKey always in MSB format because that's the case for the arduino uno when connecting to ttn through abp.
cheers!

from mkrwan.

sslupsky avatar sslupsky commented on July 17, 2024

@conradholt Unfortunately I am not aware of an easy way to configure the channels on the mkrwan1300 at the moment. I suppose you could download the mkrwan1300-fw and create your own region and recompile.

If you want to purchase an inexpensive gateway, check out the Tektelic Pico Gateway. It's an 8 channel gateway.

I use the same example format they use in the MKRWAN example ... I do not recall off the top which format it is.

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

Thanks @sslupsky I will definitely do that soon, but as of now I need to work with the single channel gw!

from mkrwan.

conradholt avatar conradholt commented on July 17, 2024

so @sslupsky I've been able to setup a lorawan network with my own private server using mkr's and uno's and a kona pico gw from tektelic. The reason why the US915_HYBRID works better than the US915 has to do with the amount of channels you have in your gateway, in my case 8. That's what the US915_HYBRID is doing, is hoping between 902.3-903.9.
I am able to see the packets with the payload in my server, but everytime I send a packet the serial (for the mkr) says "error sending the message", and still the packet is perfectly received at the gw and pushed to the server, so i guess it has to do with either the downlink or some sort of ack.
Any thoughts?

from mkrwan.

sslupsky avatar sslupsky commented on July 17, 2024

Are you using the modem.endpacket() function? You get that message if the ack is not received or if the payload is more than 64 bytes. I noticed that I get the occasional error. For testing, I send a packet every 10 sec. It appears about every 6 min I see a packet failure. I noticed that the radio behaves odd when this happens. I am wondering if it is doing a rejoin.

from mkrwan.

Related Issues (20)

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.