Non-contact serial bus detection method
Through the contactless serial bus detection method, the columnar antenna of the tester and the 32-bit ARM machine are used for signal reception and decoding, which solves the problem of difficult serial bus communication failures, improves the troubleshooting efficiency and avoids the introduction of new faults.
Patent Information
- Application Number
- CN202411839535.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-05-02
AI Technical Summary
During on-site maintenance, it is difficult to detect and locate serial bus communication faults between equipment. Traditional methods require disconnecting the transceiver core wires in the cable, increasing the workload and possibly introducing new faults.
The contactless serial bus detection method is adopted to receive and send signals through the columnar antenna of the housing front end of the contactless serial bus tester, select the refresh rate, bus type and baud rate, and decode and display it through a 32-bit ARM machine.
Avoid the risk of disconnecting cables during on-site repairs, improves troubleshooting efficiency, and reduces the possibility of introducing new failures.
Smart Images

Figure CN119922098A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of bus communication, and in particular relates to a contactless serial bus detection method. Background Art
[0002] Bus communication is widely used in all walks of life, so it is very important to troubleshoot and locate serial bus communication faults between devices. It is difficult to troubleshoot and locate serial bus communication faults between devices at the maintenance and debugging site.
[0003] The traditional troubleshooting method is to use another computer to simulate sending or receiving to determine whether the fault is on the receiving side, sending side or connecting cable. This method requires finding and disconnecting the sending and receiving core wires in the connecting cable, which will generate a large workload during on-site maintenance and may introduce new faults. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes: a contactless serial bus detection method, comprising the following steps:
[0005] S1. Turn on the power supply and lighting of the contactless serial bus tester;
[0006] S2, the cylindrical antenna at the front end of the shell of the contactless serial bus tester receives and sends signals;
[0007] S3, select refresh rate and display refresh rate information;
[0008] S4, select the bus type and display the bus type information;
[0009] S5. Select the baud rate and display the baud rate information.
[0010] Furthermore, in step S1, after pressing the test button, the power switch and the lighting of the tester are locked and turned on, and pressing it again turns off all power supplies.
[0011] Furthermore, in step S2, the signal received by the cylindrical antenna at the front end of the shell is amplified and conditioned, and then sent to the speaker to make a sound, and the other way is sent to the signal sampling digitization to be converted into a digital signal after phase detection at intervals based on the set baud rate reference. The 32-bit ARM machine receives the pulse string of the digital signal and decodes it, and sends it to the information display window for display according to the set refresh rate.
[0012] Furthermore, in step S3, the refresh rate is selected by refreshing the synchronization button, and the first 128 bits of the received data after each data refresh are translated into ASCII code and displayed on the information display window.
[0013] Furthermore, in step S4, the bus type is selected through the bus selection button, the signal from the signal sampling digitization is processed differently, and the current bus type is displayed on the information display window.
[0014] Furthermore, in step S5, the baud rate is selected by a baud rate selection button to control the generation of a baud rate reference, and the current baud rate is displayed on the information display window.
[0015] The beneficial effects of the present invention are as follows: the traditional method of bus communication fault troubleshooting requires finding and disconnecting the transceiver core wires in the connecting cable, which will generate a large workload in on-site maintenance and may introduce new faults. The present device can be used for bus communication fault troubleshooting. Compared with the prior art, it avoids the introduction of new faults and ensures the efficiency of troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of the contactless serial bus detection method of the present invention;
[0017] Figure 2 It is a front schematic diagram of the overall structure of the non-contact serial bus tester disclosed in the present invention;
[0018] Figure 3 It is a schematic diagram of the reverse side of the overall structure of the non-contact serial bus tester disclosed in the present invention;
[0019] Figure 4 The invention discloses a non-contact serial bus tester with an internal structure.
[0020] In the figure: 1- cylindrical antenna at the front end of the shell; 2- shell body; 3- lighting; 4- test button; 5- information display window; 6- power switch; 7- volume adjustment knob; 8- baud rate selection button; 9- refresh synchronization button; 10- bus selection button; 11- speaker; 12- battery; 13- 32-bit ARM machine. DETAILED DESCRIPTION
[0021] Example 1
[0022] In order to make the technical means and objectives of the present invention easy to understand, the present invention is further described below in conjunction with specific implementation methods. A non-contact serial bus detection method, such as Figure 1 As shown, the following steps are included:
[0023] S1. Turn on the power supply and lighting of the contactless serial bus tester;
[0024] S2, the cylindrical antenna 1 at the front end of the housing of the contactless serial bus tester receives and sends signals;
[0025] S3, select refresh rate and display refresh rate information;
[0026] S4. Select the bus type and display the bus type information.
[0027] Among them, in the step S1, after pressing the test button 4, the power switch 6 and the lighting lamp 3 of the tester are locked and turned on, and pressing it again disconnects all power supplies.
[0028] Among them, in the step S2, the signal received by the cylindrical antenna 1 at the front end of the shell is amplified and conditioned, and then sent to the speaker 11 to make a sound, and the other way is sent to the signal sampling digitization to be converted into a digital signal after phase detection at intervals based on the set baud rate reference. The 32-bit ARM machine 13 decodes the pulse string of the digital signal after receiving it, and sends it to the information display window 5 for display according to the set refresh rate.
[0029] Among them, in the step S3, the refresh rate is selected by the refresh synchronization button 9, and the first 128 bits of the received data after each data refresh are translated into ASCII code and displayed on the information display window 5.
[0030] In the step S4, the bus type is selected through the bus selection button 10, the signal from the signal sampling digitization is processed differently, and the current bus type is displayed on the information display window 5.
[0031] Wherein, in the step S5, the baud rate is selected by the baud rate selection button 8 to control the generation of the baud rate reference, and the current baud rate is displayed on the information display window 5 at the same time.
[0032] The hardware working principle of the present invention is: a 32-bit ARM machine 13 is used as a main control computer, and the refresh time of the information display window 5 is set by a refresh synchronization button 9; a baud rate reference signal is set by a baud rate selection button 8; the bus type is switched by a bus selection button 10; the signal received by the antenna is amplified and conditioned, one way is sent to a speaker 11 to make a sound, and the other way is sent to a signal sampling digitization to be converted into a digital signal after phase detection at intervals with a set baud rate reference; the 32-bit ARM machine 13 decodes the digital pulse string after receiving it, and sends it to the information display window 5 for display according to the set refresh rate; when the set refresh rate is consistent with the refresh rate of the signal transmitted in the bus, the information can be displayed stably; the test button 4 is a self-locking button, which is locked and connected to the power supply and lighting of the tester after being pressed, and is pressed again to disconnect all power supplies.
[0033] The software working principle of the present invention is: using C language as the development environment, the first 128 bits of the received data after each data refresh are translated into ASCII code and displayed, and when the refresh synchronization button 9 is pressed, the refresh rate is cyclically selected between 0.1, 0.5, 1, and 2 seconds, and the current refresh rate is displayed on the screen. When the bus selection button 10 is pressed, the bus type is cyclically selected between RS232, RS422, RS485, and CAN, and the signal from the signal sampling digitization is processed differently, and the current bus type is displayed on the information display window 5. When the baud rate selection button 8 is pressed, the baud rate is cyclically selected between 4800, 9600, 19200, 38400, and 115200, and the baud rate reference is controlled to be generated, and the current baud rate is displayed on the information display window 5. The system software attempts to check the decoding result and automatically selects the check bit and check method with a lower bit error rate.
[0034] Example 2
[0035] A contactless serial bus tester, such as Figure 2-Figure 4 As shown, it includes a cylindrical antenna 1 at the front end of the shell and a shell body 2. The cylindrical antenna 1 at the front end of the shell is arranged above the shell body 2. The front face of the shell body 2 is arranged with a lighting lamp 3, a test button 4, and an information display window 5 in sequence from top to bottom. The side of the shell body 2 is arranged with a power switch 6, a volume adjustment button 7, a baud rate selection button 8, a refresh synchronization button 9, and a bus selection button 10 in sequence from top to bottom. The back of the shell body 2 is arranged with a speaker 11 and a battery 12 in sequence from top to bottom. A 32-bit ARM machine 13 is arranged inside the shell body 2. The cylindrical antenna 1 at the front end of the shell, the lighting lamp 3, the test button 4, the information display window 5, the power switch 6, the volume adjustment button 7, the baud rate selection button 8, the refresh synchronization button 9, the bus selection button 10, the speaker 11, and the battery 12 are all electrically connected to the 32-bit ARM machine 13.
[0036] Wherein, the 32-bit ARM machine 13 is a main control computer.
[0037] The test button 4 is a self-locking button, and the test button 4 is connected to the power switch 6 and the lighting lamp 3 .
[0038] Among them, the signal received by the cylindrical antenna 1 at the front end of the shell is amplified and conditioned, and then sent to the speaker 11 to make a sound, and the other way is sent to the signal sampling digitization to be converted into a digital signal after phase detection at intervals based on the set baud rate reference. The 32-bit ARM machine 13 decodes the pulse string of the digital signal after receiving it, and sends it to the information display window 5 for display according to the set refresh rate.
[0039] The refresh rate is selected by the refresh synchronization button 9 , and the refresh synchronization button 9 is connected to the information display window 5 through the 32-bit ARM machine 13 .
[0040] The bus type is selected through the bus selection button 10 , and the bus selection button 10 is connected to the information display window 5 through the 32-bit ARM machine 13 .
[0041] The baud rate is selected through the baud rate selection button 8 , and the baud rate selection button 8 is connected to the information display window 5 through the 32-bit ARM machine 13 .
[0042] Example 3
[0043] The purpose of the present invention is to provide a non-contact serial bus tester for bus communication fault repair, so as to solve the problems raised in the above background technology, effectively troubleshoot the fault location, and ensure stable operation of equipment communication.
[0044] The invention discloses a contactless serial bus tester, and the technical scheme adopted is: comprising a cylindrical antenna at the front end of the body, a shell body; an illuminating lamp, a test button, and an information display window at the front of the shell body; a power switch, a volume adjustment knob, a baud rate selection button, a refresh synchronization button, and a bus selection button at the side of the shell body; and a speaker and a battery at the back of the shell body.
[0045] As a preferred solution of the non-contact serial bus tester of the present invention, the tester is a pen-type handheld integrated device powered by a battery. The front end of the housing is a columnar antenna.
[0046] As a preferred solution of the contactless serial bus tester of the present invention, the front of the shell body is provided with: an illumination lamp, a test button, and an information display window from front to back.
[0047] As a preferred solution of the contactless serial bus tester of the present invention, the shell body is provided with a speaker and a battery in sequence from front to back.
[0048] As a preferred solution of the contactless serial bus tester described in the present invention, the side of the shell body is distributed from front to back with: a power switch, a volume adjustment knob, a baud rate selection button, a refresh synchronization button, and a bus selection button.
[0049] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A contactless serial bus detection method, characterized in that: The steps include: S1. Turn on the power supply and lighting of the contactless serial bus tester; S2, a cylindrical antenna (1) at the front end of the housing of the contactless serial bus tester receives and sends signals; S3, select refresh rate and display refresh rate information; S4, select the bus type and display the bus type information; S5. Select the baud rate and display the baud rate information.
2. The contactless serial bus detection method according to claim 1, characterized in that: In step S1, after pressing the test button (4), the power switch (6) and the lighting lamp (3) of the tester are locked and turned on, and pressing it again turns off all power supplies.
3. The contactless serial bus detection method according to claim 2, characterized in that: In step S2, the signal received by the cylindrical antenna (1) at the front end of the housing is amplified and conditioned, and one path is sent to the speaker (11) to emit sound, and the other path is sent to the signal sampling digitization, and is converted into a digital signal after phase detection at intervals based on a set baud rate reference. The 32-bit ARM machine (13) receives the pulse string of the digital signal, decodes it, and sends it to the information display window (5) for display according to the set refresh rate.
4. The contactless serial bus detection method according to claim 3, characterized in that: In step S3, the refresh rate is selected by pressing the refresh synchronization button (9), and the first 128 bits of the received data after each data refresh are translated into ASCII code and displayed on the information display window (5).
5. The contactless serial bus detection method according to claim 4, characterized in that: In the step S4, the bus type is selected through the bus selection button (10), the signal from the signal sampling digitization is processed differently, and the current bus type is displayed on the information display window (5).
6. The contactless serial bus detection method according to claim 2, characterized in that: In step S5, the baud rate is selected by the baud rate selection button (8), the baud rate reference is controlled to be generated, and the current baud rate is displayed on the information display window (5).