A communication method for serial bus logistics vehicles

Through the series serial bus logistics car communication method, the problem of high communication cost of logistics car is solved. Standard communication protocols and dual checksum error correction mechanisms are adopted to achieve efficient and reliable communication, reducing costs and improving system flexibility Sex and extensibility.

CN118540181BActive Publication Date: 2024-11-19HANGZHOU COMFIRMWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000636.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-19
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The communication cost of logistics trolleys is high, and the existing technology is difficult to effectively reduce, especially in ring sorting, where a large number of servo motor point control requires high-cost EtherCAT or RS485 communication.

Method used

The serial serial bus logistics car communication method is adopted, and the state communication is sent through the host, the station receives and sends data synchronously, judges the length of the data string, enters the state communication mode, performs parameter setting and real-time control, and adopts the dual checksum error correction mechanism. , supports multiple small cars to operate simultaneously, reducing communication conflicts and incompatibility problems.

Benefits of technology

It improves the reliability and flexibility of communication, reduces costs, enhances the scalability and maintainability of the system, supports real-time communication and rapid response, avoids data loss and errors, and improves the system's work efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540181B_ABST
    Figure CN118540181B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of logistics trolley communication technology, and in particular to a serial bus logistics trolley communication method. The technical solution includes the following steps: the host sends a conversion status communication, the site receives and sends data synchronously; the site determines the length of the data string and enters the status communication mode; the host sends a status communication, including parameter status information, the site receives and sends data of the corresponding status, the site diagnoses the number of sites on the bus before, and saves the relevant information; the slave station receives data, sends a pre-state value, and continuously sends the received data, the host sends confirmation status information, the site receives and sends data of the corresponding status, and the slave station calculates and saves the accumulated number of data lengths of the previous slave station. The present invention improves the communication compatibility of the logistics trolley control system, effectively avoids data loss and errors, improves the flexibility, scalability and maintainability of communication, and improves the work efficiency and stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of logistics trolley communication, and in particular to a communication method for a series serial bus logistics trolley. Background Art

[0002] In the logistics cross-ring sorting, there are many carts in the ring belt that need forward and reverse control, generally one or two hundred, and large ones have three or four hundred servo motor point control. Some logistics servo motors use EtherCAT communication, and some use ordinary communication RS485. Ordinary communication is generally single-byte communication. The servo runs at a fixed time, and the parameters are set in advance. The parameters cannot be set on the bus. The ring belt carts with better peripheral infrared communication performance need forward and reverse point control, and also need servo parameter setting, which generally requires similar EtherCAT bus communication, and the communication cost increases a lot, generally about two hundred per cart. Therefore, this application proposes a serial bus logistics cart communication method. Summary of the invention

[0003] The purpose of the present invention is to propose a serial bus logistics vehicle communication method in view of the high communication cost of the logistics vehicle in the background technology.

[0004] The technical solution of the present invention is a serial bus logistics vehicle communication method, comprising the following steps:

[0005] S1. The host sends the conversion status communication, and the site receives and sends the data synchronously;

[0006] S2. The station determines the length of the data string and enters the status communication mode;

[0007] S3. The host sends status communication, including parameter status information;

[0008] S4. The site receives and sends data of the corresponding status;

[0009] S5. The number of stations on the bus before station diagnosis, and save the relevant information;

[0010] S6. The slave receives data, sends the pre-state value, and continuously sends the received data;

[0011] S7. The host sends a confirmation status message;

[0012] S8. The site receives and sends data of the corresponding status;

[0013] S9. The slave station calculates and saves the accumulated data length of the previous slave station;

[0014] S10. The slave continues to receive and send data and switches to real-time state;

[0015] S11. After receiving the data string, the host calculates the write data length of the real-time communication of each site for verification;

[0016] S12. The host sends parameter communication to complete the motor parameter setting;

[0017] S13. The host sends the real-time communication mode of the rare station to control the real-time communication of the motor.

[0018] Optionally, in step S2, after the site RT0 interface receives the data string, it determines whether the length of the data string is 1. If so, the site joins the status communication mode, and the status is the initialization status.

[0019] Optionally, in step S4, the RTO interface of the site receives the status communication data string sent by the host, and simultaneously sends down 1 data corresponding to the initialization status, and the end site does not send down data.

[0020] Optionally, in step S5, after the site receives the data string, the length of the data string is set to F. There are F sites on the bus before the diagnostic site, including the master site, that is, the slave site is F slaves, and the F number is saved, and the pre-state is changed to the real-time state according to the state number.

[0021] Optionally, in step S6, the slave station receives data through the RT1 interface and sends a pre-state value through the RT0 interface at the same time. The terminal station does not wait for RT1 to receive data, but directly sends the data received by RT1 and continuously sends the data.

[0022] Optionally, in step S8, the station interface RT0 receives the data string and sends down the receiving length data corresponding to the real-time status, and the terminal does not send down the data;

[0023] Optionally, step S9 specifically includes:

[0024] After receiving the data string, the slave station calculates the accumulated data length of each previous slave station according to the data string, sets it as Ri and saves it, distinguishes data packets from each other through coding, and designs the coding specifically as follows: when the station data packet has data length N, the first data is coded with 4-bit repeated NF, and the other data is coded with repeated NN;

[0025] After receiving the data string, the slave station calculates the accumulated data length Ri of each previous slave station based on the data string and saves it.

[0026] Optionally, in step S10, the slave station receives data according to interface RT1, and at the same time, interface RT0 sends the receiving length data of the real-time state. The terminal station does not wait for interface RT1 to receive data, but directly sends it, and continuously sends the data received by RT1. The slave station changes the state to the real-time state according to the state number.

[0027] Optionally, step S12 specifically includes the following steps:

[0028] The host sends parameter communication, and the data string structure is divided into two sections: addr+, high address addr8-bit data and address data packet section;

[0029] The data is the 4-byte content of site i, including 1 low-address segment 8-bit data, 2 16-bit data and 1 8-bit check code;

[0030] The feedback data string is the 4-byte content of site i, including 1 8-bit status data, 2 16-bit write data and 1 8-bit check code;

[0031] Complete the transmission of 65536 configurable parameters of the servo motor.

[0032] Compared with the prior art, the present invention has the following beneficial technical effects:

[0033] The present invention adopts standard communication protocols and data formats, is compatible with most common logistics vehicle control systems, and avoids communication conflicts and incompatibility problems between equipment from different manufacturers.

[0034] The present invention adopts a double verification and error correction mechanism, which can effectively avoid data loss and errors and improve the reliability of communication.

[0035] The present invention allows the user to flexibly configure the parameters and operation mode of the vehicle according to actual needs, thereby improving the flexibility and adaptability of the system.

[0036] The present invention adopts a distributed control architecture, supports the simultaneous operation of multiple vehicles, and improves the scalability and maintainability of the system.

[0037] The present invention supports real-time communication and control of the vehicle, can quickly respond to and process various control instructions, and improves the working efficiency and stability of the system.

[0038] The present invention improves the communication compatibility of the logistics vehicle control system, effectively avoids data loss and errors, improves the flexibility, scalability and maintainability of communication, and improves the work efficiency and stability of the system. The various existing industrial buses are basically serial types, EtherCAT belongs to serial communication, and other buses basically belong to parallel communication. This solution belongs to CSBS (referring to Concatenation Serial Bus System, serial means that each connector has an import interface and an export interface, and serial means that the communication mode must be serial data), which reduces the cost and communication distance. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is the schematic diagram of the serial bus;

[0040] Figure 2This is the state communication principle diagram;

[0041] Figure 3 To convert to the state communication mode schematic diagram;

[0042] Figure 4 The schematic diagram of the entire data flow for a linear topology. DETAILED DESCRIPTION

[0043] The technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0044] The components of the embodiments of the present disclosure generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure claimed, but merely represents selected embodiments of the present disclosure.

[0045] Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present disclosure. Example

[0046] In the circular cross-belt logistics, the belt line passes through 4 carts at the fastest speed per second. The cart width is 600mm and the compartment width is 750mm, that is, 4 compartments correspond to 5 carts. The connection width between the upper packaging platform and the cart is 1200mm, and the connection distance between the two upper packaging platforms and the cart is 3000mm. For every 100 carts, there are at most 5 upper packaging platforms, and the maximum packaging rate for every 5 upper packaging platforms is 5 / s. The upper packaging platform is at a certain angle to the cart, and the speed vector of the upper packaging platform is just the sum of the running speed vector of the cart and the belt speed vector. The running speed vector of the cart is generally perpendicular to the belt speed vector. Packaging process: 1. The cart runs first; 2. When the cart is about to reach the upper packaging platform, the package on the upper packaging platform is also about to reach the upper packaging port; 3. When the cart arrives at the upper packaging platform, the package is just on the cart; 4. When the package runs to the middle of the cart, the cart stops running. The logistics line can have a trolley package correction mechanism. The logistics workshops are close to each other, with a margin distance of 50mm and a ring structure connection. During the unloading process, when the trolley is about to reach the partition, the trolley starts to move the package toward the partition. When the trolley reaches the partition, the package just reaches the junction of the trolley and the partition. The trolley continues to move for a while, and the package is unloaded. The maximum communication time is 5ms, and the parameter setting is generally within 100. The real-time communication servo controls the position, and the maximum number of trolleys is 512.

[0047] Basic analysis of the working environment: 5ms corresponds to 0.02 belt-running trolleys. At any time, only one of the five consecutive trolleys will start to move, and two trolleys will not start to move at the same time. That is, the action command trolley of the loading platform only receives the action of the five consecutive trolleys at any time. The highest loading is 5.12*5 / s. The loading process runs in advance (the same setting value) and stops after loading (different setting values). The bag-dropping process directly moves the trolley to unload the bag in one circle (the same setting value). The trolley positioning control only needs to stop after loading the bag. The running distance of the loading and unloading operation can be set in the parameter setting. There is a correction mechanism, and the position of the loading trolley is not considered accurately, that is, the analysis of the correction and the positioning accuracy of the loading is only considered once, which does not affect the logistics operation. The positioning distance of the loading bag can be calculated in advance (the advance time is more than 10ms).

[0048] The positioning action of the car is 5.12*5 / s =25.6 / s. The probability statistics of more than 9 cars appearing at the same time in 10ms per second

[0049] ,

[0050] The probability value corresponds to a time conversion of 1 / 120 years, which means that it will only occur once every 120 years that more than 9 cars need to be positioned together within 10ms. The probability statistics of more than 8 cars appearing at the same time in 5ms per second

[0051] ,

[0052] The probability value corresponds to a time conversion of 1 / 300 years, which means that it will only occur once every 300 years that more than 8 cars need to be positioned together within 5ms. The probability statistics of more than 7 cars appearing at the same time in 5ms per second

[0053] ,

[0054] The probability value corresponding to the time conversion is It takes 3.5 years for more than 7 cars to be positioned within 5ms, which means that 0.128 cars need to be positioned every 5ms. The probability statistics of more than 6 cars appearing at the same time in 2.5ms per second

[0055] ,

[0056] The probability value corresponding to the time conversion is It takes 1.57 years for more than 6 cars to be positioned together within 2.5ms, which means that 0.064 cars need to be positioned every 2.5ms. Each car positioning action on the upper package platform is 1 time / s=0.005 times / ms. There is a test to calibrate the car position at the upper package position, but the cars are calibrated one by one in sequence, 4 cars per second, that is, at most 1 car needs position calibration in 250ms.

[0057] This embodiment is designed with 65536 configurable parameters, 16-bit data for relative incremental positioning of the servo position, a maximum length of 1 meter for communication between sites, less than 2.5ms for communication, and a ring structure communication. Each communication can include up to 6 trolley positions, and a maximum of 512 bus station numbers. Taking the actual situation into consideration, an average of 0.064 sites of 512 sites need data transmission each time they communicate, and a maximum of 6 sites need to be transmitted. Considering the need for feedback on the status of the trolley sites, a new mode of real-time communication is designed with site data transmission, which is called sparse site real-time communication mode; sparse sites refer to sites that need to communicate at each moment, and since they are much fewer than the total number of sites, they are sparse sites. Assuming the number of sites is 512, the content of the site feedback data packet includes a status value and a check value, and the content of the site position data packet includes 2 control values ​​and 1 validation value. The sparse site real-time communication mode is set as follows, divided into 2 segments of data. The first segment of data contains 6 positioning data, and the second segment of data contains 512 sites storing data addresses or action instructions. Assuming the site position data packet is W k , site action label data D i , the data string is The data packet W that the station needs to transmit k , data packet W k The format is 3 data, 2 of which are 0X0001-0XFFFF motion data, and the other is the data check code, which is the special check code CRC12 part; the site action mark data D is an 8-bit data, 4 of which are encoded as Dv, and the other 4 are encoded with W k The data check code is combined into a special check code CRC12, the format of which is as follows:

[0058] Table 1

[0059]

[0060] The site positioning control data is stored in order, according to the site received data D i Find packets whose Dv4 value is not zero W DV4 It can be used as positioning action data and judge whether CRC12 is satisfied (if satisfied, it can be used for execution). Data D iIf the Dv4 value is zero, the action instruction is executed. The site feedback data is set to state feedback 1 data 8 bits: 1 bit alarm, 1 bit operation, 1 bit direction, 1 bit positioning data, 4 bits check code. The site needs to save 18 data, the maximum amount of data is 6*3=18, site K receives data string The addressing Ad, assuming the total number of stations is N, the length of the data string is L, L=18+N, Ad=N+1-K. In the design system, the longest data string is 512+18=530 data, the longest feedback data string is 512, and the total data of a communication is 530+512=1042 data. Considering data interference and damage, the design is based on a cycle of 2.5ms, the minimum baud rate is calculated as 1042*8bit / 2.5ms=3.334Mbit / s, the maximum communication length between stations is 1 meter, and RS422 of USART is used for communication.

[0061] Recalculate the data baud rate 1042*11bit / 2.5ms≈4.5848Mbit / s, the baud rate is designed to be 6Mbit / s, the maximum communication length between sites is 1 meter, and the communication time is about 1.91ms without considering interference. To reduce costs, the design is as follows: design a communication port to complete the work of two communication interfaces: control the sending and receiving of two communication ports at the same time, one receiving and the other sending. The principle design is as follows Figure 1 shown.

[0062] refer to Figure 2-Figure 4 , 10ms after the bus is powered on, the station and host are reset and initialized.

[0063] 1. The host sends the conversion status communication, the site enters the interface RT0, the communication port 0 receives the data and synchronizes with another output interface RT1, and the communication port 1 sends the data. After the site interface RT0 receives the data string, it determines that the length of the data string is 1, and the site joins the status communication mode, and the status is the initialization state. In the site status communication mode, because the length of the data string received by RTO is 1, the interface RT0 directly uploads the feedback data, the content is the device type of the site, the length of the device type is greater than 2, the first data is 4-bit repeated NF encoding, and the others are 4-bit check repeated NN encoding, and at the same time monitors whether the RT1 interface has received data. When uploading data, there is received data and the received data is continuously uploaded. The site is set to 2B according to the RT1 received data. The site diagnoses that the site is B sites and saves the number of B sites. If B=0, it means it is the last site. After the master station receives the interface data string, it determines that the length of the data string is set to 2N, and the diagnosis bus has N sites to save the number of sites. The content of the data string determines the device type of each site.

[0064] 2. The host sends status communication, and the status data sent is the parameter status. The station interface RT0 receives the data string and sends 1 data corresponding to the initialization status at the same time. The content definition is reserved, and the terminal does not send data. After the station receives the data string, it is set to F according to the length of the data string. There are F stations including the master station on the bus before the diagnostic station, that is, this slave station is F slave stations, and the F number is saved. The pre-state is changed to the real-time state according to the state number. The slave station receives data according to the interface RT1, and the interface RT0 sends the pre-state value at the same time. The terminal does not wait for the interface RT1 to receive data, but sends it directly, and continuously sends the data received by RT1.

[0065] 3. The host sends status communication, and the sending status data is the confirmation status. The site interface RT0 receives the data string and sends the corresponding real-time status receiving length data at the same time. The terminal does not send data. After the slave receives the data string, it calculates the cumulative data length of each previous slave according to the data string and sets it as Ri and saves it. Because the site data length may be inconsistent, the data packets in the data string are not in the packet point, and coding is required to distinguish between data packets. The design coding adopts the method mentioned above. For example, when the site data packet has a data length of N, the first data is encoded with 4 bits of repeated NF, and the other data is encoded with repeated NN, so the data packets can be distinguished. The slave receives data according to the interface RT1, and the interface RT0 sends the real-time status receiving length data at the same time. The terminal does not wait for the interface RT1 to receive data, but directly sends it, and continuously sends the data received by RT1. The slave changes the state to the real-time state according to the state number. The master receives the data string and calculates the write data length of the real-time communication of each site for verification.

[0066] 4. The host sends parameter communication, and the data string structure is divided into two sections: Addr+ , high address addr8-bit data and address data packet segment , W i The data is the 4-byte content of site i, specifically 1 low address segment 8-bit data, 2 16-bit data and 1 8-bit check code. The feedback data string is , R i The data is the 4-byte content of the i site, specifically 1 status 8-bit data, 2 write 16-bit data and 1 8-bit check code, completing 65536 configurable parameters of the servo motor.

[0067] 5. The host sends the real-time communication mode of the rare station to control the real-time communication of the motor.

[0068] The above specific embodiments are only several optional embodiments of the present invention. Based on the technical solutions of the present invention and the relevant inspirations of the above embodiments, those skilled in the art can make various alternative improvements and combinations to the above specific embodiments.

Claims

1. A serial bus logistics vehicle communication method, It is characterized in that The following steps are involved: S1. The host sends a conversion status command, the site receives the data string from the input interface and sends the data synchronously from the output interface; S2. After the station receives the data string through the interface, the station determines the length of the data string and enters the status communication mode, and the status is the initialization status; S3. The host sends a data string of status communication, which contains information about parameter status; S4. The station receives the data string from the interface and sends the corresponding initialization state data at the same time, while the terminal does not send data; S5. The number of stations on the bus before the site diagnosis, and save the relevant information; after the site receives the data string, it is set to F according to the length of the data string. There are F stations on the bus before the diagnosis site, including the master station, that is, this slave station is F slave station, and save the number of F, according to the state number to replace the pre-state to the real-time state; S6. The slave station receives data from the outgoing interface and sends the pre-state value on the incoming interface at the same time. The end station does not wait for the incoming interface to receive data, but directly sends it and continuously sends the received data; S7. The host sends a status command, and the status data sent is a confirmation status; S8. The station receives the data string at the interface and sends the corresponding real-time status receiving length data, and the terminal does not send data; S9. After receiving the data string, the slave station calculates the cumulative data length of each previous slave station according to the data string, sets it as Ri and saves it; S10. The slave receives data according to the output interface, and sends the received length data of the real-time state on the input interface. The end station does not wait for the output interface to receive data, but directly sends it, and continuously sends the data received by the interface. The slave changes the state to the real-time state according to the state number; S11. After receiving the data string, the host calculates the write data length of the real-time communication of each site for verification; S12. The host sets the parameter communication mode and completes the motor parameter setting; S13. The host sets the sparse station real-time communication mode to control the motor real-time communication; sparse station means that in the current station, the number of stations that need to communicate at each moment is less than the total number of stations.

2. A serial bus logistics vehicle communication method according to claim 1, It is characterized in that In step S2, after the site RT0 interface receives the data string, it determines whether the length of the data string is 1. If so, the site joins the status communication mode, and the status is the initialization status.

3. A serial bus logistics vehicle communication method according to claim 1, It is characterized in that Step S9 specifically includes: Two adjacent data packets are distinguished by encoding. Specifically, when the site data packet has a data length of N, the first data is encoded with 4-bit repeated NF, and the other data is encoded with repeated NN.

4. A serial bus logistics vehicle communication method according to claim 1, It is characterized in that Step S12 specifically includes the following steps: Host setting parameter communication, the data string structure includes high address addr 8-bit data and address data packet segment ; The data is the 4-byte content of site i, including 1 8-bit low address segment data, 2 16-bit data and 1 8-bit check code; The feedback data string is , The data is the 4-byte content of site i, including 1 8-bit status data, 2 16-bit write data and 1 8-bit check code; Complete the transmission of 65536 configurable parameters of the servo motor.