LoRa Peer-to-peer (P2P) Demo with REYAX RYLR998

Поделиться
HTML-код
  • Опубликовано: 12 июл 2024
  • LoRa Peer-to-peer (P2P) allow direct communication between LoRa end nodes without LoRaWAN gateway. This video explains how to use LoRa P2P with REYAX Technology RYLR998 module with Semtech engine and NUVOTON MCU. This LoRa model is controlled through USB to UART converter and AT commands.
    REYAX RYLR998: reyax.com/products/rylr998/
    LoRa is a wireless modulation technique derived from Chirp Spread Spectrum (CSS) technology. It transmit small chunks of data with low bit rates over long range. LoRa operates on the license free sub-gigahertz bands and requires low power. LoRa was developed by Semtech.
    LoRa Radio Frequencies:
    - Europe EU868 (863-870/873MHz)
    - North America US915 (902-928MHz)
    - South America AU915/AS923-1 (915-928MHz)
    - India IN865 (865-867MHz)
    - Asia AS923 (915-928MHz)
    LoRaWAN is a Media Access Control (MAC) layer protocol on top of LoRa for managing network communication between end nodes and gateways, developed and maintained by the LoRa Alliance.
    LoRa Peer-to-peer (P2P) allows direct LoRa communication between end node devices (peer-to-peer). The benefit is the low cost of the infrastructure because LoRaWAN gateways are not needed.
    AT commands for receiving with REYAX RYLR998:
    AT
    AT+RESET
    AT+ADDRESS=1
    AT+NETWORKID=6
    AT+BAND=868500000
    AT+PARAMETER=7,9,4,12
    AT commands for sending with REYAX RYLR998:
    AT
    AT+RESET
    AT+ADDRESS=0
    AT+NETWORKID=6
    AT+BAND=868500000
    AT+PARAMETER=7,9,4,12
    AT+SEND=1,5,HELLO
    0:00 Intro
    1:12 LoRa P2P
    3:10 RYLR998 Unboxing
    5:36 LoRa P2P with RYLR998
    9:48 LoRa P2P Conclusions
  • НаукаНаука

Комментарии • 29

  • @goptus7498
    @goptus7498 4 месяца назад

    Very good explanation. Thank you!

    • @LeonAnavi
      @LeonAnavi  4 месяца назад

      I am glad that you liked the video. Thanks for the feedback!

  • @zocker1600
    @zocker1600 Год назад +2

    thank you for this, that is very useful, I do have a question though:
    the AT commands are essentially strings, I wonder is it possible to also send pure binary data, or will I always have to go trough the binary -> string -> binary conversion?

    • @LeonAnavi
      @LeonAnavi  Год назад +3

      Yes, exactly the AT commands are strings. This is actually a very typical way for controlling modems. Most probably you will need to serialize the data, send it and deserialize it after receiving it on the other LoRa node.

  • @Drakkarlegion
    @Drakkarlegion 7 месяцев назад +2

    Can you show how to do this from a raspi 3 or maybe even a zero through the gpio?

    • @LeonAnavi
      @LeonAnavi  7 месяцев назад

      I am not sure I will have time to post a step by step tutorial in near future but in general you can use similar approach and directly connect RYLR998 to the UART pins on the 40 pin header of Raspberry Pi (or even 26 pin if you are using the very first rpi). The UART is on pin 8 (GPIO14) for TX and pin 10 (GPIO15) for RX. Again connect TX to RX and RX to TX as in this video. After that from rpi-config of Raspberry Pi OS enable serial communication and the rest of the steps should be identical to what you see in this video.

  • @waynesouliere8172
    @waynesouliere8172 Год назад

    Very nice video. I have seen many like it. I can communicate PC to PC with LoRa. I have tried many times and many ways to communicate with LoRa RYLR896 and using Arduino Nano and or Mega 2560 boards. I used 3.3v Vcc on both. I either get no communications or ERR=1 or ERR=2 on the receiver side. I have been trying different methods from many youtube videos. None work like they demonstrate on the videos. What am I doing wrong?

    • @LeonAnavi
      @LeonAnavi  Год назад

      What is your approach for programming Arduino Nano and or Mega 2560 boards in terms of your RYLR896? Are you using an open source Arduino library or are you sending AT commands directly as in my video for PC communication?

  • @Alain-ze6mw
    @Alain-ze6mw 3 месяца назад

    Thank you for this video, can you tell me what means the number received after the message, the -4 or -5 is the power received i think but what does the last number 13 or 14 means ?

    • @LeonAnavi
      @LeonAnavi  3 месяца назад

      It is for SNR (Singal to Noise Ratio)

    • @Alain-ze6mw
      @Alain-ze6mw 3 месяца назад

      @@LeonAnavi Oh thank you !

  • @aurelienkouakou431
    @aurelienkouakou431 Год назад +1

    Thanks for this tuto.
    Can this module be used to connect a lorawan server such as The things network ?

    • @LeonAnavi
      @LeonAnavi  Год назад +1

      Unfortunately not, have a look at RYLR993 which supports both LoRa proprietary mode (like RYLR998) and connection to LoRaWAN. Btw I am planning to cover RYLR993 in a new video but I am not sure when I will be able to publish it.

    • @aurelienkouakou431
      @aurelienkouakou431 Год назад +1

      @@LeonAnavi I understand. Thnaks for your answer. I'll be waiting 🙏

  • @MrLeonardowolf
    @MrLeonardowolf 2 месяца назад

    thank you my brother in crist

    • @LeonAnavi
      @LeonAnavi  2 месяца назад

      I am happy that the video is useful :)

  • @pavel12230808
    @pavel12230808 2 года назад

    @Leon Anavi I have tried but the port is not found. I can see before you ran the serial monitor there is a code named "oled-dispaly-sketch". Do I need that code for the AT Command? can you please help me on this.I am really trying to learn it. Thanks.

    • @LeonAnavi
      @LeonAnavi  2 года назад

      as mentioned in it the other comments you need to have an appropriate driver installed for your USB to UART converter on the OS you are using.

  • @Edsdrafts
    @Edsdrafts 3 месяца назад

    As far as I understand all data transmission is visible and easy to read for man in the middle attack. Does LORA P2P offer any security to avoid this?

    • @LeonAnavi
      @LeonAnavi  3 месяца назад

      REYAX modules are designed with their own proprietary protocol. Because it is not open source I cannot comment the security aspect of this proprietary protocol. For security purposes, you may consider end to end encryption implementation on the application level.

  • @asadkhan-mq8ro
    @asadkhan-mq8ro Год назад +1

    Have you connected this module with LoRaWan gateway?

  • @pavel12230808
    @pavel12230808 2 года назад +1

    Can I do it using windows PC?

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      Yes, you can apply the same approach using Arduino IDE on MS Windows. Just make sure the right drivers are installed and the right port is selected for the USB to UART debug converter.

    • @pavel12230808
      @pavel12230808 2 года назад

      @@LeonAnavi I have tried but the port is not found. I can see before you ran the serial monitor there is a code named "oled-dispaly-sketch". Do I need that code for the AT Command? can you please help me on this.I am really trying to learn it. Thanks.

    • @LeonAnavi
      @LeonAnavi  2 года назад +1

      @@pavel12230808 no, no code is needed. In this case Arduino IDE is used just for the feature serial monitor.
      What model USB to UART converter are you using to connect RYLR998 to a computer? Considering you are using in on MS Windows, are drivers for it installed?

    • @pavel12230808
      @pavel12230808 2 года назад

      Will PL2303 USB to UART will work?

    • @LeonAnavi
      @LeonAnavi  2 года назад

      @@pavel12230808 I don't have experience with it. Most probably you will need a driver for it if you are using MS Windows: www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41