Announcement

Collapse
No announcement yet.

Brunin Test Linux ARM 4.1 Serial port settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Brunin Test Linux ARM 4.1 Serial port settings

    Hi,

    My serial device is /dev/ttyTHS0​
    This is my setting in the cmdline_config.txt file for serial ports:
    -------------------------------------------------------------------------------------------------------
    ## Serial Port - Have a <Test> section for each device to test
    <Serial>

    <Test>
    ## Device to test - ttys0, ttys1 etc to ttys63
    Device ttyTHS0
    ## Test Mode - Loopback or Detect
    TestMode Loopback
    </Test>


    ## Disable RTS/CTS and DSR/DTR
    DisableRTS DisableCTS DisableDSR DisableDTR
    ## Send and receive timeout, 100-30000 ms
    SendReceive 3500
    ## Baud rate - 110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
    ## Cycle to 115200 (Cycle115), 230400, Cycle to 230400 (Cycle230), 460800,921600
    BaudRate 115200
    </Serial>​
    ----------------------------------------------------------------------------------------------------------
    But I keep getting "error while receiving fr" error.
    I've tried checking the port with minicom and it's able to loopback just fine.
    How should I change my setting?

  • #2
    What loopback hardware are you using?

    Comment


    • #3
      Click image for larger version  Name:	image.png Views:	0 Size:	4.3 KB ID:	54428
      It's loopback for DB9 RS-232​

      Comment


      • #4
        If you are using your own home made loopback hardware, we don't support it.

        But the issue might be related to flow control. Larger amounts of data overflow the FIFO buffer. RTS/CTS and DSR/DTR are normally used to prevent buffer overflows.

        Comment


        • #5
          Thank you for your reply.

          My hardware does not have flow control. It only has TX/RX/GND.
          Is there any settings I can try to set so the test would work?
          I've tried lowering serial load or baud rate but neither worked.

          Comment


          • #6
            It only has TX/RX/GND
            I don't see how this can work reliably. Except for very slow link speeds.

            Do you have the logs from BurnInTest?

            Comment


            • #7
              Hi,
              Sorry for the delay.
              Here is the error log.
              Attached Files

              Comment


              • #8
                You have these error in the log file.

                LOG NOTE: 2023-02-14 09:16:24, Serial Port: ttyTHS0, /dev/ttyTHS0: DSR stuck low
                SERIOUS: 2023-02-14 09:16:24, Serial, COM port Data Set Ready (DSR) line stuck low​

                These should only appear if you are trying to test the functioning of the DSR lines on the serial port. But as you have only half a serial port, there is no point running these tests.

                In theory these should be turned off from your config file. But in V4 there was less control over turning off the individual tests.

                Can you try running version 5 ?

                Comment


                • #9
                  Thank you for replying
                  I've tried V5 with:

                  -------------------------------------------------------------------------------------------------------
                  ## Serial Port - Have a <Test> section for each device to test
                  <Serial>

                  <Test>
                  ## Device to test - ttys0, ttys1 etc to ttys63
                  Device ttyTHS0
                  ## Test Mode - Loopback or Detect
                  TestMode Loopback
                  </Test>


                  ## Disable RTS/CTS flow control testing
                  DisableRTS
                  ## Disable DSR/DTR flow control testing
                  DisableDSR

                  ## Send and receive timeout, 100-30000 ms
                  SendReceive 3500
                  ## Baud rate - 110, 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200,
                  ## Cycle to 115200 (Cycle115), 230400, Cycle to 230400 (Cycle230), 460800,921600
                  BaudRate 115200
                  </Serial>​
                  -------------------------------------------------------------------------------------------------------

                  It works.​

                  Comment

                  Working...
                  X