PLEASE CONSULT THE SERIAL PORT TEST PROGRAM UNDER LINUX

Updated on technology 2024-05-20
3 answers
  1. Anonymous users2024-02-11

    The lotus leaves are infinitely green, and the lotus flowers are different red.

  2. Anonymous users2024-02-10

    When the device is developed in research and development, there is usually a serial port for debugging and testing the device software, such as viewing the serial port log, and at the same time, some software or hardware functions can be triggered by serial port commands, and testers can check the operation log of the device through the serial port or send commands to check the function of the device during the test.

    The test of the serial port generally uses a serial port tool (such as a friendly serial port tool, etc.) to send and receive commands, and the tester manually enters the serial port command to check the information output by the device through the serial port. When the test volume is relatively large or the test is more frequent, it is difficult to ensure the reliability and credibility of the test results by manual testing, and some problems are likely to not be found in time and are omitted in the issued products, which brings risks to product quality.

    Hongcon automated test system can support fully automated testing of serial ports

    Support auto-send serial port commands, automatically send serial port commands.

    Automatically check the received messages and automatically check the serial logs.

    Support configuring the auto-reply of serial port communication and the auto-reply command of serial port.

    It supports interactive mode, sends commands to serial devices, and supports receiving and checking commands returned by serial devices.

    Exception injection and other functions are supported.

    Hongcon automated test system not only supports the testing of serial ports, but also supports comprehensive collaborative automated testing of equipment and software through multiple test robots, as shown in the figure below.

  3. Anonymous users2024-02-09

    Linux provides a variety of tools, and Linux uses TTYSX as the name of a serial device. For example, com1 (dos windows name) is ttys0, com2 is ttys1, and so on.

    Task: Displays the detected system serial port support.

    Simply run the dmesg command.

    dmesg | grep tty

    Output: [ Serial8250: ttys0 at i o 0x3f8 (irq = 4) is a 16550a

    00:0b: ttys0 at i/o 0x3f8 (irq = 4) is a 16550a

    ttys1 at i/o 0x1020 (irq = 18) is a 16550a

    setserial command.

    Setserial is a program used to set or report configuration information associated with a serial port. This information includes the IO port and interrupt number used by the serial port, and whether the break key should be interpreted as a secure attention key, etc. Just output the following command:

    setserial -g /dev/ttys[0123]

    Output: dev ttys0, uart: 16550a, port: 0x03f8, irq: 4

    dev/ttys1, uart: 16550a, port: 0x1020, irq: 18

    dev/ttys2, uart: unknown, port: 0x03e8, irq: 4

    dev/ttys3, uart: unknown, port: 0x02e8, irq: 3

    Setserial with -G option helps to find the physical serial port on your Linux board.

    Linux serial console program.

    Once the serial port has been determined, you can use a number of tools to configure the Linux board:

    minicom - the best serial communication program for controlling the modem and connecting to the dump device.

    WVIDIAL or OTHER GUI dial up networking program - A built-in smart PPP dialer.

    getty aage tty - Agetty opens a tty port, prompts for a login name and calls the bin login command.

    grub lilo configuration - Configure the serial port as the system console.

Related questions
27 answers2024-05-20

Unless you redo your Vista system ...

I used to be also an XP plus a linux... It's only after the rework! >>>More

3 answers2024-05-20

1.Header file.

Windows or. >>>More

9 answers2024-05-20

Detect the Linux system.

The following describes whether to enable the FTP server >>>More

10 answers2024-05-20

sudo is a Linux system administration directive, which is a tool that allows system administrators to let ordinary users execute some or all of the root commands. >>>More

2 answers2024-05-20

1. Basic usage.

The basic usage of the grep command is to find a line in a file that contains a specified pattern. For example, to find a line in a file that contains example, you can run the following command: >>>More