UART baud rate change on Raspberry

Home Forums The libraries hosted on the site EByte LoRa e220 UART devices LLCC68 UART baud rate change on Raspberry

Viewing 1 reply thread
  • Author
    Posts
    • #33665
      psafug01
      Participant

        Hi ,
        I’ve a E220 fully working on Raspberry Pi4 at 9600 baud but I’m not able to change at 115200.

        If I change the parameter (see below) on the example “send_fixed_message”

        loraSerial = serial.Serial(‘/dev/serial0’ baudrate=115200, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS)

        I’ve the error reporting that I cannot change the baud rate before setting.
        So I first changed the configuration with set_configuration setting

        configuration_to_set.SPED.uartBaudRate = UARTBaudRate.BPS_115200

        and then running again “send_fixed_message” after changing the baurdate on raspberry serial port but seems not working.

        Which is the correct procedure/steps to change the E220 serial baudrate on Raspberry?
        Thanks in advance
        Paolo

      • #33671
        Renzo Mischianti
        Keymaster

          Hi Paolo,
          It’s strange, it seems that you did the correct steps.

          • (At 9600) Change baudrate to 115200
          • (At 9600) Check the baudrate are correctly saved
          • (At 115200) Try send message

          Remember that the configuration works only at 9600.
          Bye Renzo

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.
      Exit mobile version