matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 650 forks source link

433Mhz frequency #98

Open ELIVB opened 7 years ago

ELIVB commented 7 years ago

Hello I am quite new in Arduino and LoraWan, the Lmic library support only 915Mhz and 868Mhz, what about 433Mhz?

Thanks

eli

PhatHub commented 6 years ago

Did you try setting LMIC.freq=433000000?

PhatHub commented 6 years ago

I'm sorry... looking back at my response, I was thinking in RAW mode, not lorawan/MAC. I've been also looking into the 433 standard, but I haven't found enough information published yet to see how the lorawan standard is set for it. By comparison, eu868 and us915 are both fairly well laid out by the Lora Alliance. So far I've tried:

I got it to compile, but I haven't tested it yet. Also, my remaining Arduino is a Mega2560, which I have issues trying to get operational with the LMIC's rtos. EDIT: I've gotten "raw" TX to work. However, as stated below, I don't have a 433MHZ concentrator to work with, so I won't be testing against an implemented 433 MAC/WAN stack.

As far as I've seen, there aren't very many 433mhz gateways... although I see that brocaar's loraserver has the EU433 specs worked out last year. Maybe a few months from now I'll eventually purchase a 433 gateway to play with.

MauriPastorini commented 6 years ago

I have the same question, Can I use this library to comunicate 433mhz lora sx1278 modules? What do I have to change for it? If someone could answer me please! Best regards

chris-gunawardena commented 6 years ago

Have you tried this? http://wiki.dragino.com/index.php?title=Connect_to_TTN#How_To_add_other_frequency_band_such_as_EU433

These lines in the ABP sketch seems to reset the frequncy back to 868, comenting them out I sometimes get TX_COMPLETE but the device never shows up in TTN.

gclairec commented 6 years ago

Hi, Does anybody have any fix on this? My device is stuck in TX_COMPLETE. No packets were received in TTN

the-louie commented 6 years ago

I made a naivë adaption of the library to add eu433 support. I added eu433 sections everywhere I found a eu868 section and copied over the values I could find regarding 433 and left all other values the same as for 868. Most of the information comes from http://wiki.dragino.com/index.php?title=Connect_to_TTN#How_To_add_other_frequency_band_such_as_EU433

I have two 433MHz RAK831 gateways configured to talk to a loraserver.io server and it works! 😄

The code is available here: https://github.com/the-louie/arduino-lmic/tree/louie-add-naive-eu433-support

gizmocuz commented 6 years ago

@the-louie , if you look at this document, on what frequency are you allowed to transmit in your country ? What's the bandplan ?

https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html

the-louie commented 6 years ago

@gizmocuz In my country 433-435 MHz falls well within the range of allowed frequencies to use without license.

was1822 commented 2 years ago

Starting FAILURE C:\Users\SAP3\Documents\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:689 i am using 1278 lora node with dragino gateway LG 308 at 433MHZ i am facing this ssue