Verifying UART with PAN1026 and PAN176x

Is there a way to verify that the UART is working well?

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • -    Inherently, UART is a connectionless physical layer protocol and does not offer any feedback/acknowledge mechanism
    -    There are two ways to go around this, and I will portray them for you to choose 
    -    Option 1
    o    Simply toggle the PAN1760 Reset line. You can hook it up to a GPIO (make sure to have a pull-up/down as necessary)
    The device will send a special version of the TCU_HCI_RESET_RESP response, which will look like this:
    0x04 0x0e 0x04 0x04 0x00 0x00 0x00

    That will allow you to ‘test’ the UART lines  without the need of sending something first. Hence it is a very ‘simple’ task from the Host side 
                    Toggle Reset
                    Receive response 
                    Parse response and compare to a known pattern
    NOTE:
    This will reset your device… Which means that you need to start from the Top
    -    Option 2
    o    Send is TCU_HCI_RESET_REQ, which will reset the device.
    The command is  0x01 0x03 0x0c 0x00.
    o    The expected result is TCU_HCI_RESET_RESP, which looks like this:
    0x04 0x0e 0x04 0x04 0x03 0x0c 0x00
    NOTE:
    This will reset your device… Which means that you need to start from the Top
     

    Reply Like
  • Thanks for guiding the way to verify UART, I also want to know how to verify it. I will try to make follow this tutorial.
    192.168.1.1

    Reply Like
login to reply
Like Follow
  • Status Answered
  • 3 mths agoLast active
  • 2Replies
  • 123Views
  • 2 Following