• LoRaWAN Nano-Gateway

    lopy ttn nano gateway
    8
    0 Votes
    8 Posts
    1k Views
    J
    @cooper Hi, do you remember which firmware version did you use?, I am having issues with downlinks that I did not have before (too many looses), thanks
  • LOPY4 Switch to 433MHZ on LORAWAN

    4
    0 Votes
    4 Posts
    69 Views
    M
    Hi thanks for your quick answer. Pycom supports the 433MHz freqency now on the official firmware look at this tweet for reference. So lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU433) is supported right now https://twitter.com/Norant_/status/1275807351442997249/retweets/with_comments
  • LoPy4 power consumption

    9
    0 Votes
    9 Posts
    186 Views
    S
    @robert-hh Thank you very much for your answers! I will go with average then.
  • Lopy to Dragino-LG01

    6
    0 Votes
    6 Posts
    90 Views
    T
    Pygate shipping? Really?
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Getting battery consumption from ADC

    6
    0 Votes
    6 Posts
    292 Views
    G
    @robert-hh Thanks for clearing that up. I was confused with the dB scale for power.
  • How can I verify the signature on my lopy4 device?

    2
    0 Votes
    2 Posts
    40 Views
    WenboW
    My verify code is def isValid(self): if self.comefrom == "": return True global public_sender # public key message_decrypted = crypto.rsa_decrypt(self.signature, public_sender) return self.computeHash() == message_decrypted And the function rsa_decrypt can only accept the parameter of a private key. If I use the public key it throws a ValueError: Traceback (most recent call last): File "main.py", line 37, in <module> File "/flash/lib/blockChain.py", line 158, in addTransaction File "/flash/lib/blockChain.py", line 82, in isValid ValueError: Invalid private key, mbedtls error code: 0x3D00 So I'm confused ...
  • LoPy4 sending duplicate messager using Sigfox

    5
    0 Votes
    5 Posts
    74 Views
    J
    @Eric73 said in LoPy4 sending duplicate messager using Sigfox: s.setsockopt(socket.SOL_SIGFOX, socket.SO_TX_REPEAT, 1) setting to 1 did not work, but setting to 0 did ;) Thank you for the idea
  • 0 Votes
    6 Posts
    66 Views
    rcolisteteR
    @RyverSolare "lora.add_channel()" is for LoRaWan, while you are using LoRa-Raw. You can define your own LoRa-some-name protocol, but the gateway will not be a LoRaWan gateway, using mono or multichannel by means of FHSS (Frequency-Hopping Spread Spectrum), etc.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • where is data from sigfox??

    2
    0 Votes
    2 Posts
    47 Views
    ahmadelmasriA
    Hi @j_mor, can you share your email you are using for Pybytes, so we can troubleshoot what is happening? if you want you can send the details to ahmad@pycom.io
  • Lopy 4 433 output power

    2
    1 Votes
    2 Posts
    56 Views
    F
    Here is a minimal example that show the problem. Expansion board V3.1 + Lopy4 Platform IO / C++ #include <SPI.h> #include <LoRa.h> int counter = 0; #define LORA_SCK 5 // GPIO5 -- SX1278's SCK #define LORA_MISO 19 // GPIO19 -- SX1278's MISO #define LORA_MOSI 27 // GPIO27 -- SX1278's MOSI #define LORA_SS 18 // GPIO18 -- SX1278's CS #define LORA_RST 23 // GPIO14 -- SX1278's RESET #define LORA_DI0 26 // GPIO26 -- SX1278's IRQ(Interrupt Request) //#define LORA_DI0 33 // GPIO26 -- SX1278's IRQ(Interrupt Request) #define LORA_FREQ_BAND 433E6 void setup() { Serial.begin(115200); while (!Serial); Serial.println("Init LoRa Sender"); SPI.begin(LORA_SCK, LORA_MISO, LORA_MOSI, LORA_SS); LoRa.setPins(LORA_SS, LORA_RST, LORA_DI0); if (!LoRa.begin(LORA_FREQ_BAND)) { Serial.println("Starting LoRa failed!"); while (1); } // set spread factor LoRa.setSpreadingFactor(8); // defaults to 7, supported values are between 6 and 12 LoRa.setTxPower(17); // TX power in dB, defaults to 17 - value from 2 to 20 LoRa.setSignalBandwidth(125E3); // defaults to 125E3. Supported values are 7.8E3, 10.4E3, 15.6E3, 20.8E3, 31.25E3, 41.7E3, 62.5E3, 125E3, and 250E3 // LoRa.setCodingRate4(codingRateDenominator); // defaults to 5, Supported values are between 5 and 8, these correspond to coding rates of 4/5 and 4/8. The coding rate numerator is fixed at 4. // LoRa.enableCrc(); // LoRa.disableCrc(); // by default a CRC is not used. } void loop() { Serial.print("Sending packet: "); Serial.println(counter); Serial.println("start to send packet ... "); // send packet LoRa.beginPacket(); LoRa.print(millis()); LoRa.print(" "); LoRa.print(counter); LoRa.print(" abcdefghijklmnopqrstuvwxyz"); LoRa.endPacket(); delay(1000); Serial.print("packet sent... "); counter++; }
  • 0 Votes
    1 Posts
    26 Views
    No one has replied
  • [lopy4] no WiFi on startup

    8
    0 Votes
    8 Posts
    243 Views
    P
    @robert-hh I will attempt to do so, thank you for the help!
  • LOPY as a Serial Terminal Server over LoRa

    2
    0 Votes
    2 Posts
    37 Views
    robert-hhR
    @geraldm I do not know how the reliability demands of your application are. Two comments: LoRa is not a reliable transmission method, and it is mostly unidirectional. You can send short status information upstream, but you cannot rely on each message to arrive. But downstream messages are pretty limited. And you have to take care to provide a sufficient network coverage. The xxPy boards are not designed for highest availability. With a good power supply, it may work nicely for months, but may also fail for no obvious reason. So you have to add circuitry like an external watchdog to ensure a proper reset & reboot in case of a malfunction.
  • Unable to mound SD Card

    lopy sd card expansion board
    8
    0 Votes
    8 Posts
    2k Views
    E
    @Robin did you fix it?, I am trying to do the sema thing continuous mounting and resettind the SD Card. and sometimes I get the error: OSError: the requested operation is not possible, when i use "sd = SD()". and when I use "os.fsformat('/sd')" the program stop and I can only run again when I use the push button reset.
  • ADC2

    1
    0 Votes
    1 Posts
    30 Views
    No one has replied
  • Why is lora.nvram_save() not writing to RTC RAM?

    1
    0 Votes
    1 Posts
    45 Views
    No one has replied
  • LoPy only receiving every second packet

    16
    0 Votes
    16 Posts
    548 Views
    robert-hhR
    @plsecker The LoPy4 uses an TCXO as reference for the frequencies, while other boards (like for instance the Lopy) use a standard crystal. And even then the quality of the crystal may vary.
  • 0 Votes
    1 Posts
    26 Views
    No one has replied

Pycom on Twitter