Automatic speed increasing method for 485 bus equipment

文档序号:85961 发布日期:2021-10-08 浏览:16次 中文

阅读说明:本技术 一种485总线设备自动提速方法 (Automatic speed increasing method for 485 bus equipment ) 是由 刘春华 白和平 唐新朋 于 2021-06-18 设计创作,主要内容包括:本发明提供一种485总线设备自动提速方法,涉及网络通信技术领域。该485总线设备自动提速方法,包括若干主设备、从设备和不同长度和不同拓扑的的485总线,具体实施步骤如下:485主设备启动寻测,主机设备在广播设备测试启动命令;主设备和收到广告设备侧视命令的从设备军回到默认调速帧静默等待T1秒,从设备清除最高速率进行记录,进入测试状态;主设备首先发广播调速至更高一级速率调速帧,调速帧包含生效时间T2和失联时间T3;当T2时间后正确收到命令的从设备和主设备后一起进入命令中指定的速率,设备刷新自己最高速率记录;未正确收到本调速帧的从设备在T3时间后。本发明使得485总线设备自动提速提速速度快效率高,同时提速成功率高。(The invention provides an automatic speed increasing method for 485 bus equipment, and relates to the technical field of network communication. The automatic speed-up method of the 485 bus device comprises a plurality of main devices, slave devices and 485 buses with different lengths and different topologies, and comprises the following specific implementation steps: 485, the main device starts the test, and the main device tests a starting command on the broadcasting device; returning the master device and the slave device receiving the advertisement device side view command to the default speed regulation frame for silence for T1 seconds, clearing the highest speed from the slave device for recording, and entering a test state; the method comprises the steps that a main device firstly sends a broadcast speed-regulating frame to a higher first-level speed, wherein the speed-regulating frame comprises an effective time T2 and an offline time T3; when the slave equipment which correctly receives the command after the time of T2 enters the speed appointed by the command together with the master equipment, the equipment refreshes the highest speed record of the equipment; the slave device which did not correctly receive the current pacing frame is after time T3. The invention ensures that the 485 bus equipment automatically accelerates and has high speed and efficiency and high acceleration success rate.)

1. An automatic speed-up method for 485 bus equipment is characterized in that: the method comprises a plurality of main devices, slave devices and 485 buses with different lengths and different topologies, and comprises the following specific implementation steps:

step one, 485 master equipment starts searching and testing, and the master equipment tests and starts a command on broadcasting equipment;

step two, the master device and the slave device which receives the side-view command of the advertising device return to the default speed-regulating frame for silent waiting for T1 seconds, and the slave device clears the highest speed for recording and enters a test state;

step three, the main equipment firstly sends a broadcast speed regulation frame to a higher speed, and the speed regulation frame comprises an effective time T2 and an offline time T3;

step four, after T2 time, the slave device and the master device which correctly receive the command enter the speed appointed by the command together, and the device refreshes the highest speed record;

after the time T3, the slave device which does not correctly receive the speed-regulating frame automatically switches to the default speed-regulating frame to wait;

step five, verifying whether the speed regulation reaches the highest, if the speed regulation reaches the highest, executing from the step two again, if the speed regulation reaches the highest, the main equipment firstly sends broadcast speed regulation to a default speed regulation frame, and the speed regulation frame comprises an effective time T2 and an offline time T3;

and step six, after the waiting time of T3, the host collects the highest speed records of different slave devices in turn as the basis of the subsequent communication speed by roll calling at the speed of the default speed-regulating frame, and the speed measurement is finished.

2. The automatic speed increasing method of the 485 bus device according to claim 1, wherein: in step one, the host device broadcasts a device test start command at 1200bps, 2400bps, 4800bps, 966bps, 19200bps, 38400bps, 57600bps, and 115200bps, respectively.

3. The automatic speed increasing method of the 485 bus device according to claim 1, wherein: and the default speed regulation frame of the master device and the slave device is 1200bps, and the step five verifies whether the speed regulation reaches the highest value or not, and the highest speed regulation is set to be 115200 bps.

4. The automatic speed increasing method of the 485 bus device according to claim 1, wherein: the rate pacing frame one level higher in step three is 2400bps, while the rate specified in the command in step four is 2400 bps.

5. The automatic speed increasing method of the 485 bus device according to claim 1, wherein: the master device switches to 1200bps during normal communication, the command negotiates the rate, and the command frame comprises an effective time T2 and an offline time T3, and the rate adopts the highest rate of the test; and after the time T2, the master device and the slave device are switched to the speed for communication, the disconnection time is automatically refreshed to be T3 under the condition that the normal communication verification passes each time, and if no valid verification passes the test, the slave device automatically returns to the default frequency of 1200bps for waiting.

Technical Field

The invention relates to the technical field of network communication, in particular to an automatic speed-up method for 485 bus equipment.

Background

The 485 bus is a standard defined by the telecommunications industry association and the electronics industry alliance that defines electrical characteristics that balance drivers and receivers in a digital multi-drop system. 485 adopts half-duplex working mode to support multi-point data communication. The 485 bus network topology generally adopts a bus type structure with matched terminals. That is, a bus is adopted to connect all the nodes in series, and the ring-shaped or star-shaped network is not supported.

In the prior art, the speed regulation frame speed regulation of 485 bus equipment is slow in the operation process, and the condition of speed regulation failure occurs in the lifting process, so that the user experience is poor.

Disclosure of Invention

Technical problem to be solved

Aiming at the defects of the prior art, the invention provides an automatic speed increasing method for 485 bus equipment, and solves the problem that the speed of speed-adjusting frames is slow in the operation process of the 485 bus equipment.

(II) technical scheme

In order to achieve the purpose, the invention is realized by the following technical scheme: an automatic speed-up method for 485 bus equipment comprises a plurality of main equipment, slave equipment and 485 buses with different lengths and different topologies, and comprises the following specific implementation steps:

step one, 485 master equipment starts searching and testing, and the master equipment tests and starts a command on broadcasting equipment;

step two, the master device and the slave device which receives the side-view command of the advertising device return to the default speed-regulating frame for silent waiting for T1 seconds, and the slave device clears the highest speed for recording and enters a test state;

step three, the main equipment firstly sends a broadcast speed regulation frame to a higher speed, and the speed regulation frame comprises an effective time T2 and an offline time T3;

step four, after T2 time, the slave device and the master device which correctly receive the command enter the speed appointed by the command together, and the device refreshes the highest speed record; after the time T3, the slave device which does not correctly receive the speed-regulating frame automatically switches to the default speed-regulating frame to wait;

step five, verifying whether the speed regulation reaches the highest, if the speed regulation reaches the highest, executing from the step two again, if the speed regulation reaches the highest, the main equipment firstly sends broadcast speed regulation to a default speed regulation frame, and the speed regulation frame comprises an effective time T2 and an offline time T3;

and step six, after the waiting time of T3, the host collects the highest speed records of different slave devices in turn as the basis of the subsequent communication speed by roll calling at the speed of the default speed-regulating frame, and the speed measurement is finished.

Preferably, the rate pacing frame at the higher level in step three is 2400bps, while the rate specified in the command in step four is 2400 bps.

Preferably, the master device switches to 1200bps during normal communication, the call-in-call command negotiates a rate, and the command frame includes an effective time T2 and an offline time T3, the rate being the highest rate of the above test; and after the time T2, the master device and the slave device are switched to the speed for communication, the disconnection time is automatically refreshed to be T3 under the condition that the normal communication verification passes each time, and if no valid verification passes the test, the slave device automatically returns to the default frequency of 1200bps for waiting.

Preferably, the default speed regulation frame of the master device and the slave device is 1200bps, and in the step five, whether the speed regulation reaches the highest value is verified, and the highest speed regulation is set to be 115200 bps.

Preferably, in step one, the host device broadcasts the device test start command at 1200bps, 2400bps, 4800bps, 966bps, 19200bps, 38400bps, 57600bps, and 115200bps, respectively.

(III) advantageous effects

The invention provides an automatic speed increasing method for 485 bus equipment. The method has the following beneficial effects:

the method for rapidly testing and adapting the speed of the 485 bus equipment greatly improves the speed regulation efficiency and the success rate of the speed regulation frame, and enables user experience to be better.

Drawings

Fig. 1 is a flow chart of 485 bus automatic speed measurement according to the invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The first embodiment is as follows:

as shown in fig. 1, an embodiment of the present invention provides an automatic speed-up method for 485 bus devices, including a plurality of master devices, slave devices, and 485 buses with different lengths and different topologies, which includes the following specific implementation steps:

step one, 485 master equipment starts searching and testing, and the master equipment tests and starts a command on broadcasting equipment;

step two, the master device and the slave device which receives the side-view command of the advertising device return to the default speed-regulating frame for silent waiting for T1 seconds, and the slave device clears the highest speed for recording and enters a test state;

step three, the main equipment firstly sends a broadcast speed regulation frame to a higher speed, and the speed regulation frame comprises an effective time T2 and an offline time T3;

step four, after T2 time, the slave device and the master device which correctly receive the command enter the speed appointed by the command together, and the device refreshes the highest speed record;

after the time T3, the slave device which does not correctly receive the speed-regulating frame automatically switches to the default speed-regulating frame to wait;

step five, verifying whether the speed regulation reaches the highest, if the speed regulation reaches the highest, executing from the step two again, if the speed regulation reaches the highest, the main equipment firstly sends broadcast speed regulation to a default speed regulation frame, and the speed regulation frame comprises an effective time T2 and an offline time T3;

and step six, after the waiting time of T3, the host collects the highest speed records of different slave devices in turn as the basis of the subsequent communication speed by roll calling at the speed of the default speed-regulating frame, and the speed measurement is finished.

The master device switches to 1200bps during normal communication, the command negotiates the rate, and the command frame comprises an effective time T2 and an offline time T3, and the rate adopts the highest rate of the test; and after the time T2, the master device and the slave device are switched to the speed for communication, the disconnection time is automatically refreshed to be T3 under the condition that the normal communication verification passes each time, and if no valid verification passes the test, the slave device automatically returns to the default frequency of 1200bps for waiting.

The rate pacing frame one level higher in step three is 2400bps, while the rate specified in the command in step four is 2400 bps. And the default speed regulation frame of the master device and the slave device is 1200bps, and the step five verifies whether the speed regulation reaches the highest value or not, and the highest speed regulation is set to be 115200 bps. In step one, the host device broadcasts a device test start command at 1200bps, 2400bps, 4800bps, 966bps, 19200bps, 38400bps, 57600bps, and 115200bps, respectively.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:适用于工业级应用场景的用于物理层的多协议系统控制装置和多协议系统控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!