CN114301814A - Method for realizing 485 communication with multiple products based on polling mode - Google Patents

Method for realizing 485 communication with multiple products based on polling mode Download PDF

Info

Publication number
CN114301814A
CN114301814A CN202111507453.XA CN202111507453A CN114301814A CN 114301814 A CN114301814 A CN 114301814A CN 202111507453 A CN202111507453 A CN 202111507453A CN 114301814 A CN114301814 A CN 114301814A
Authority
CN
China
Prior art keywords
differential
communication
dsp
product
products
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111507453.XA
Other languages
Chinese (zh)
Inventor
李聪
陈再新
谢泰平
李雪怡
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Aerospace Kaishan Petroleum Instrument Co Ltd
Original Assignee
Guizhou Aerospace Kaishan Petroleum Instrument Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Aerospace Kaishan Petroleum Instrument Co Ltd filed Critical Guizhou Aerospace Kaishan Petroleum Instrument Co Ltd
Priority to CN202111507453.XA priority Critical patent/CN114301814A/en
Publication of CN114301814A publication Critical patent/CN114301814A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a method for realizing 485 communication with a plurality of products based on a polling mode, which is realized based on a DSP, a 485 communication chip, a differential driver and a differential receiver, wherein a plurality of differential drivers and differential receivers form a plurality of differential group communication channels in a one-to-one correspondence manner, and the working states of the plurality of differential drivers and the differential receivers are sequentially controlled through the output level of an I/O port of the DSP, so that the working states of a plurality of groups of communication channels are controlled, communication between one test device and a plurality of products is realized in a polling mode, and the number of the plurality of the drivers is at least two. The hardware resource waste is overcome, and the testing efficiency is improved. Belongs to the technical field of industrial control communication.

Description

Method for realizing 485 communication with multiple products based on polling mode
Technical Field
The invention relates to a method for realizing 485 communication with a plurality of products based on a polling mode, belonging to the technical field of industrial control communication.
Background
A certain product requires a total of 40 hours of aging testing during the production process. During the aging process, the test equipment continuously monitored the self-test information of the product at 1 second intervals. The time for the test equipment to read the product self-test information once is 5 ms. The test equipment communicates with a product to be tested through a 485 bus, and a differential driver is connected to a 485 chip sending end to convert a sending signal into a differential signal for outputting; and the receiving end is connected with a differential receiver, and the differential signal is converted into a single-path signal for receiving. Currently used is the way that one test apparatus monitors one product, the schematic diagram of which is shown in fig. 2. The method has the problems of hardware resource waste and low test efficiency.
Disclosure of Invention
The invention provides a method for realizing 485 communication with a plurality of products based on a polling mode, which aims to overcome hardware resource waste and improve test efficiency.
In order to achieve the purpose, the method for achieving 485 communication with a plurality of products based on a polling mode is adopted, and is achieved based on a DSP, a 485 communication chip, a differential driver and a differential receiver, wherein the differential driver and the differential receiver form a plurality of differential group communication channels in a one-to-one correspondence mode, the working states of the differential driver and the differential receiver are sequentially controlled through an I/O (input/output) port output level of the DSP, so that the working states of the plurality of groups of communication channels are controlled, communication between one test device and the plurality of products is achieved in a polling mode, and the number of the plurality of the devices is at least two.
In the method, when the test equipment needs to communicate with the first product, the first differential driver is enabled through the I/O port of the DSP, the test board sends a command to the first product, the first differential driver is enabled after the command is sent, the first differential driver is enabled, the first differential receiver receives data returned by the first product through the first I/O enabled differential receiver of the DSP, the first differential receiver is disabled after the data is received, and the communication method of the test equipment and other products is the same as that of the first product.
In the method, the DSP judges the time for finishing the sending enabling and the receiving enabling by reading the data sending identification bit and the data receiving identification bit of the 485 chip.
In the method, the test equipment realizes 485 communication with 10 products based on a polling mode, the communication time of the test equipment and each product is 5ms, the total communication time of 10 products is 50ms, and the requirement of finishing communication with 10 products within 1s is met.
Compared with the prior art, the invention can monitor ten products by one test device, has test efficiency ten times that of the prior method, avoids the waste of hardware resources, greatly improves the test efficiency and has extremely high practical application value.
Drawings
FIG. 1 is a communication schematic of the present invention;
fig. 2 is a communication schematic diagram of a prior art method.
Detailed Description
To make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, and it should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the present invention.
Examples
Referring to fig. 1, this embodiment provides a method for implementing 485 communication with 10 products based on a polling manner, where the method is implemented based on a DSP, a 485 communication chip, a differential driver and a differential receiver, where 10 differential drivers and 10 differential receivers form 10 groups of communication channels, and the operating states of the 10 differential drivers and 10 differential receivers are sequentially controlled through an output level of an I/O port of the DSP, so as to control the operating states of the 10 groups of communication channels, and implement communication between a test device and 10 products in a polling manner, when the test device needs to communicate with the first product, first enabling the first differential driver through the I/O port of the DSP, sending a command to the first product by a test bench, ending enabling the first differential driver after the command is sent, and enabling the first differential receiver to receive data returned by the first product through the I/O port of the DSP, after data receiving is finished, the enabling of the differential receiver is cancelled, the communication method of the test equipment and the other 9 products is the same as that of the product I, the test equipment realizes 485 communication with 10 products based on a polling mode, the communication time of the test equipment and each product is 5ms, the total time of 10 product communication is 50ms, and the requirement of finishing the communication with 10 products within 1s is met.
The DSP judges the time for finishing the sending enabling and the receiving enabling by reading the data sending identification bit and the data receiving identification bit of the 485 chip, when the test equipment is communicated with a product to be tested, the test equipment is communicated with the product at one time, the product does not participate in the communication, the corresponding differential driver and the receiver need to be closed and enabled through an I/O port of the DSP, otherwise, the communication is interfered.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (4)

1. A method for realizing 485 communication with a plurality of products based on a polling mode is characterized in that: the method is realized on the basis of a DSP (digital signal processor), a 485 communication chip, a differential driver and a differential receiver, wherein a plurality of differential drivers and differential receivers form a plurality of differential group communication channels in a one-to-one correspondence manner, and the working states of the plurality of differential drivers and the differential receivers are sequentially controlled through the output level of an I/O (input/output) port of the DSP, so that the working states of a plurality of groups of communication channels are controlled, communication between one test device and a plurality of products is realized in a polling manner, and the number of the plurality of the differential drivers is at least two.
2. The method of claim 1, wherein the method comprises the following steps: when the test equipment needs to communicate with the first product, the first differential driver is enabled through the I/O port of the DSP, the test board sends a command to the first product, the first differential driver is enabled after the command is sent, the first differential driver is received through the first I/O enabled differential receiver of the DSP, the first differential receiver is disabled after the data is received, and the communication method of the test equipment and other products is the same as that of the first product.
3. The method of claim 1, wherein the method comprises the following steps: the DSP judges the time for finishing the sending enabling and the receiving enabling by reading the data sending identification bit and the data receiving identification bit of the 485 chip.
4. The method of claim 1, wherein the method comprises the following steps: the test equipment realizes 485 communication with 10 products based on a polling mode, the communication time of the test equipment and each product is 5ms, the total time of 10 product communication is 50ms, and the requirement of completing the communication with 10 products within 1s is met.
CN202111507453.XA 2021-12-10 2021-12-10 Method for realizing 485 communication with multiple products based on polling mode Pending CN114301814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111507453.XA CN114301814A (en) 2021-12-10 2021-12-10 Method for realizing 485 communication with multiple products based on polling mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111507453.XA CN114301814A (en) 2021-12-10 2021-12-10 Method for realizing 485 communication with multiple products based on polling mode

Publications (1)

Publication Number Publication Date
CN114301814A true CN114301814A (en) 2022-04-08

Family

ID=80967930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111507453.XA Pending CN114301814A (en) 2021-12-10 2021-12-10 Method for realizing 485 communication with multiple products based on polling mode

Country Status (1)

Country Link
CN (1) CN114301814A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070126431A1 (en) * 2005-12-06 2007-06-07 Honeywell International Inc. Dynamically switched line and fault detection for differential signaling systems
CN201039215Y (en) * 2007-05-10 2008-03-19 广州数控设备有限公司 A serial communication and decoding device
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN107908584A (en) * 2017-11-30 2018-04-13 四川泛华航空仪表电器有限公司 A kind of 485 communication networks of multichannel RS
CN210327615U (en) * 2019-07-25 2020-04-14 杭州勤诚微电子科技有限公司 Communication circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070126431A1 (en) * 2005-12-06 2007-06-07 Honeywell International Inc. Dynamically switched line and fault detection for differential signaling systems
CN201039215Y (en) * 2007-05-10 2008-03-19 广州数控设备有限公司 A serial communication and decoding device
CN103428051A (en) * 2013-08-29 2013-12-04 普联技术有限公司 System and method for testing communication devices
CN107908584A (en) * 2017-11-30 2018-04-13 四川泛华航空仪表电器有限公司 A kind of 485 communication networks of multichannel RS
CN210327615U (en) * 2019-07-25 2020-04-14 杭州勤诚微电子科技有限公司 Communication circuit

Similar Documents

Publication Publication Date Title
CN109307833A (en) Apparatus for testing chip and chip detecting method
US11095378B2 (en) Wireless channel monitoring and simulation device with multi-input multi-output
CN108897647B (en) Test system, test method and device
CN109787724B (en) Method and device for determining transmission parameter configuration information and communication system
CN110798386B (en) Configurable CAN bus protocol transceiving test method and system
CN106685782B (en) Profibus active terminal resistance device with DP bus data acquisition function
CN111562552A (en) Ground radar synchronous network master control device and control method
CN103759760B (en) The method and apparatus of test
CN110262440A (en) Railway vehicle traction system data monitoring acquisition system and method
CN104243246B (en) A kind of FlexRay bus tests and optimization method and device based on ZigBee technology
CN113032320B (en) Asynchronous serial port communication baud rate self-adaption method
CN114301814A (en) Method for realizing 485 communication with multiple products based on polling mode
CN217467051U (en) Radio frequency performance test circuit and device
CN114666244B (en) Vehicle-mounted gateway test system
CN107294630B (en) Simulation test system of carrier wave-micropower dual-mode module
CN116165516A (en) Parallel verification system for silicon back chip and chip
CN216057002U (en) Multi-broadband carrier module detection device and system and power electronic equipment
CN116338422A (en) UART chip testing method and system
CN210804414U (en) Circuit with reusable communication interface
CN112054938B (en) BM software universal test method of 1553B bus
CN112328518A (en) Multi-channel serial communication device, system and method
CN101860881B (en) Transceiver module based on time division duplex and processing method thereof
CN114844526B (en) Wireless communication frequency hopping system and operation method thereof
CN111413606A (en) Device and method for testing SOURCE (SOURCE driver on chip)
CN213091822U (en) Test communication circuit capable of improving resource utilization rate of automatic tester

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination