Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    UART READ WRITE

    Scheduled Pinned Locked Moved WiPy 2&3
    uartbufferlopyfipy
    3 Posts 2 Posters 617 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DDA
      last edited by

      I am running the following code portion on a Fipy and LoPy with firmware version 1.18.1.r7.

      uart1 = UART(1, baudrate=9600)
      uart1.init(9600,bits=8,parity=None, stop=1)
      rcv=False
      while True:
              while not rcv:
                  time.sleep(5)
                  if uart1.any() > 0:
                    recv=uart1.readall() 
                    print('Received from PIC %s' %recv)
                    rcv=True
      

      The serial communication is between a PIC 18F4620 processor and Pycom via a level logic convertor ( TXS0108EPWR from Texas Instruments). The code is working as expected on the LoPy but the same code on FiPy has buffer issue. I keep getting the same old data from the buffer for FiPy. Tried uart.deinit() as well but no success. Why is the UART buffer acting differently between LoPy and Fipy?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @DDA
        last edited by

        @dda Do both device have the same firmware version?

        1 Reply Last reply Reply Quote 0
        • D Offline
          DDA
          last edited by

          Hi @robert-hh ,
          Both Lopy and Fipy have firmware release='1.18.2.r1'

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom