CN114202861A - Data anti-collision method, system and equipment in intelligent express cabinet system - Google Patents

Data anti-collision method, system and equipment in intelligent express cabinet system Download PDF

Info

Publication number
CN114202861A
CN114202861A CN202111551960.3A CN202111551960A CN114202861A CN 114202861 A CN114202861 A CN 114202861A CN 202111551960 A CN202111551960 A CN 202111551960A CN 114202861 A CN114202861 A CN 114202861A
Authority
CN
China
Prior art keywords
base
sub
data
reporting
time period
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
CN202111551960.3A
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.)
Guangdong Telepower Communication Co ltd
Original Assignee
Guangdong Telepower Communication 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 Guangdong Telepower Communication Co ltd filed Critical Guangdong Telepower Communication Co ltd
Priority to CN202111551960.3A priority Critical patent/CN114202861A/en
Publication of CN114202861A publication Critical patent/CN114202861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/10Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property
    • G07F17/12Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned
    • G07F17/13Coin-freed apparatus for hiring articles; Coin-freed facilities or services for means for safe-keeping of property, left temporarily, e.g. by fastening the property comprising lockable containers, e.g. for accepting clothes to be cleaned the containers being a postal pick-up locker
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data anti-collision method, a system and equipment in an intelligent express cabinet system, wherein a communication unit cycle is preset, the time axis of the communication unit cycle is divided into a sending time period and a reporting time period, the reporting time period is divided into a plurality of time slots, each time slot corresponds to one sub-base or cabinet body to report data, when data communication is carried out between a main base and the sub-base and between the sub-base and the cabinet body, mutual interference is avoided, only one piece of data in the communication links of the main base and the sub-base and between the sub-base and the cabinet body is kept, and sending and reporting cannot be carried out simultaneously, so that the intelligent express cabinet system is kept to operate stably.

Description

Data anti-collision method, system and equipment in intelligent express cabinet system
Technical Field
The invention relates to the technical field of networking communication, in particular to a data anti-collision method, system and equipment in an intelligent express cabinet system.
Background
In current intelligent express delivery cabinet, when carrying out the communication between main base and a plurality of sub-base or a plurality of cabinets body, the data issue can appear in the inevitable and report the conflict and lead to the unusual condition of intelligent express delivery cabinet, when this problem appears, if can not in time correct, lead to the stability of intelligent express delivery cabinet system to descend easily.
Disclosure of Invention
The invention aims to provide a data anti-collision method, a data anti-collision system and data anti-collision equipment in an intelligent express cabinet system, and aims to solve the technical problems in the background art.
In order to achieve the purpose, the technical scheme of the invention is as follows:
the utility model provides a data anticollision method in intelligence express delivery cabinet system, its characterized in that, intelligence express delivery cabinet system includes main base and a plurality of sub-base, and main base and a plurality of sub-base all have independent control unit, and main base and a plurality of sub-base pass through RS485 communication protocol, data anticollision method includes:
presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a downlink time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base reporting data;
judging whether the time counted by a timer in the main base is within the issuing time period or not, if so, issuing a control command to the auxiliary base by the main base;
and judging whether the time counted by the timer in the auxiliary base is within the reporting time period, if so, reporting the data to the main base by the plurality of auxiliary bases in sequence.
Further, when the main base issues a control command to the sub-base, the counter matched with the timer of the main base and the timer of the main base is cleared, and the timers of the main base and the sub-base are synchronized.
Further, when the plurality of sub-bases report data to the main base in sequence, after the first sub-base reporting data to the main base finishes reporting, the sub-base triggers a clock synchronization command, and the clock synchronization command indicates that all the sub-bases perform clock synchronization.
As a preferred scheme of the present invention, a data collision prevention method in an intelligent express delivery cabinet system is provided, where the intelligent express delivery cabinet system includes a main base, a plurality of sub-bases, and a plurality of cabinet bodies, the main base and the plurality of sub-bases each have an independent control unit, and the main base and the plurality of sub-bases, and the sub-bases and the plurality of cabinet bodies connected to the sub-bases, each communicate with each other through RS485 protocols, and the data collision prevention method includes:
presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a downlink time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
judging whether the time counted by a timer in the main base is within the issuing time period or not, if so, issuing a control command to the auxiliary base by the main base;
judging whether the time counted by a timer in the auxiliary bases is within a reporting time period, if so, reporting data to the main base by the plurality of auxiliary bases at one time;
and judging whether the time counted by the timer in the cabinet body is within the reporting time period, if so, reporting the data to the auxiliary base by the plurality of cabinet bodies in sequence.
Further, when the sub-base does not need to report data to the main base, the sub-base sends a clock synchronization command to the plurality of cabinets in the sub-base row, and the clock synchronization command indicates that the counter in the cabinets in the sub-base row returns to zero to synchronize the clock.
Further, when the plurality of cabinets sequentially report data to the main base, after the first cabinet reporting data to the sub-base finishes reporting, the cabinet triggers a clock synchronization command, and the clock synchronization command indicates that the cabinets on the sub-base row perform clock synchronization.
As a preferred scheme of the invention, the invention provides an intelligent express delivery cabinet system which is characterized by comprising
The timing communication module is used for presetting a communication unit cycle, dividing a time axis of the communication unit cycle into a sending time period and a reporting time period, wherein the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
the first judgment module is used for judging whether the time counted by the timer in the main base is within the issuing time period or not, and if so, the main base issues a control command to the auxiliary base;
the second judgment module is used for judging whether the time counted by the timer in the auxiliary base is within the reporting time period or not, and if so, the plurality of auxiliary bases report data to the main base at one time;
and the third judgment module is used for judging whether the time counted by the timer in the cabinet body is within the reporting time period, and if so, the plurality of cabinet bodies report data to the auxiliary base in sequence.
Further, intelligence express delivery cabinet system still includes:
the first clock synchronization module is used for triggering a clock synchronization command once after the first cabinet body reporting data to the auxiliary base finishes reporting when the plurality of cabinet bodies report data to the main base in sequence, wherein the clock synchronization command indicates that the cabinet bodies on the auxiliary base row are subjected to clock synchronization;
and the second clock synchronization module is used for triggering a clock synchronization command once after the first cabinet body reporting data to the auxiliary base finishes reporting when the plurality of cabinet bodies report data to the main base in sequence, wherein the clock synchronization command indicates that the cabinet bodies on the auxiliary base row are subjected to clock synchronization.
Further, intelligence express delivery cabinet system still includes:
and the third clock synchronization module is used for sending a clock synchronization command to the plurality of cabinets in the auxiliary base row by the auxiliary base when the auxiliary base does not need to report data to the main base, wherein the clock synchronization command indicates that the counter in the cabinets in the auxiliary base row returns to zero to enable the clock synchronization.
As a preferable scheme of the present invention, there is provided an intelligent express delivery cabinet device including:
at least one processor, at least one memory, and a communication interface; wherein the content of the first and second substances,
the processor, the memory and the communication interface are communicated with each other;
the memory stores program instructions executable by the processor, which invokes the program instructions to perform the data collision avoidance method as described above.
Compared with the prior art, the data anti-collision method, the system and the equipment in the intelligent express delivery cabinet system have the advantages that the communication unit cycle is preset, the time axis of the communication unit cycle is divided into the issuing time period and the reporting time period, the reporting time period is divided into a plurality of time slots, each time slot corresponds to one auxiliary base or cabinet body to report data, when data communication is carried out between the main base and the auxiliary base and between the auxiliary base and the cabinet body, mutual interference is avoided, only one piece of data in the communication links of the main base and the auxiliary base and between the auxiliary base and the cabinet body is kept, and the data cannot be issued and reported at the same time, so that the intelligent express delivery cabinet system is kept to operate stably.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
Fig. 1 is a schematic diagram of a frame structure of an intelligent express delivery cabinet system according to the present invention;
fig. 2 is a schematic structural view of a communication frame between a main base and a sub-base in the intelligent express cabinet system of the invention;
fig. 3 is a flowchart of a data collision prevention method of an intelligent courier cabinet system in an exemplary embodiment of the invention;
fig. 4 is a flowchart of an intelligent courier cabinet system when a primary base issues control commands to a secondary base in an exemplary embodiment of the invention;
fig. 5 is a flowchart illustrating a process of a plurality of sub-bases reporting data to a main base in sequence in an exemplary embodiment of the invention;
fig. 6 is a flowchart of a data collision prevention method of the intelligent express delivery cabinet system in an exemplary embodiment of the invention;
fig. 7 is a flow chart of an intelligent courier cabinet system when a secondary base does not need to report data to a primary base in an exemplary embodiment of the invention;
fig. 8 is a flowchart of an intelligent express delivery cabinet system when a plurality of cabinets report data to a master base in sequence in an exemplary embodiment of the invention;
fig. 9 is a schematic structural diagram of the intelligent express delivery cabinet system of the invention.
Detailed Description
In order to better illustrate the invention, the invention is described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the present application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims. In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In current intelligent express delivery cabinet, when carrying out the communication between main base and a plurality of sub-base or a plurality of cabinets body, the data issue can appear in the inevitable and report the conflict and lead to the unusual condition of intelligent express delivery cabinet, when this problem appears, if can not in time correct, lead to the stability of intelligent express delivery cabinet system to descend easily.
Therefore, the problem actually solved by the present invention is how to avoid data communication conflicts between the main chassis and the sub chassis.
As an example of the present invention, as shown in fig. 1, a frame structure of an intelligent express cabinet system of the present invention and as shown in fig. 2, a communication frame structure between a main base and a sub base in the intelligent express cabinet system of the present invention are provided, where the intelligent express cabinet system includes the main base and a plurality of sub bases, and each of the main base and the plurality of sub bases has an independent control unit, that is, the main base and the sub bases can be used by independent control terminals on left and right sides, and can receive/send commands or receive/report data, and a communication protocol is performed between the main base and the plurality of sub bases through an RS485 bus.
In this embodiment, as shown in fig. 3, the data collision prevention method includes:
s1, presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a sending time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one sub-base to report data;
in order to ensure that only one data is transmitted at the same time in a communication link between the main base and the auxiliary base, a time-sharing processing mechanism is adopted, namely, the reporting time and the issuing time of the data are separated.
Specifically, the preset communication unit period is generally preloaded in the timer in advance, even if the time axis of the communication unit period in the timers in the main base and the sub base divides the issuing time period and the reporting time period, if the reporting time period is divided into a plurality of time slots, each time slot corresponds to one sub base to report data.
According to the above, for example, taking a communication unit cycle of 1s as an example, the first 0ms to 800ms is a time period for issuing a command/data from the main base to the sub-base, and 800ms to 1000ms is a time period for reporting data from the sub-base to the cabinet body; in addition, generally, the number of the sub-chassis is multiple, and in order to avoid the sub-chassis reporting data, only one data transmission is in a link between the main chassis and the sub-chassis, the multiple sub-chassis are hierarchically corresponding to multiple time slots, for example, as shown in fig. 1, a time period of 800ms to 850ms is a time period for the sub-chassis (1) to report data, a time period of 850ms to 900m is a time period for the sub-chassis (2) to report data, a time period of 900ms to 950ms is a time period for the sub-chassis (3) to report data, and a time period of 950ms to 1000ms is a time period for the sub-chassis (4) to report data.
S21, judging whether the time counted by the timer in the main base is within the issuing time period, if so, issuing a control command to the auxiliary base by the main base;
in this embodiment, the step of determining whether the time counted by the timer in the main base is within the delivery time period is mainly performed by the control unit of the main base, the control unit of the main base constantly monitors the time counted by the timer in the main base, and the control unit of the main base determines whether the time counted by the timer in the main base is within the delivery time period, for example, within 0ms to 800ms, if so, the main base delivers the control command to the sub-base, and if not, the main base delivers the control command to the sub-base after waiting for the time counted by the timer in the main base to be within 0ms to 800 ms.
And S22, judging whether the time counted by the timer in the sub-base is within the reporting time period, if so, reporting the data to the main base by the plurality of sub-bases in sequence.
According to the above, when the time for the main base to wait for the timer in the main base to count is within 800ms to 1000ms, the main base considers that the data is reported in the sub-base.
Ideally, the timer in the primary base counts up to a time that is consistent with the time counted by the timer in the secondary base.
In this embodiment, the step of determining whether the time counted by the timer in the sub-base is within the delivery time period is mainly performed by the control unit of the sub-base itself, the control unit of the sub-base constantly monitors the time counted by the timer in the main sub-base, the control unit of the sub-base determines whether the time counted by the timer in the sub-base is within the delivery time period, for example, within 0ms to 800ms, if so, the sub-base reports data to the main base, if not, the sub-base reports data to the main base after waiting for the time counted by the timer in the sub-base to be within 800ms to 1000ms, each sub-base reports data corresponding to a different time slot, and when the time counted by the timer in the sub-base to be within the sub-base is within a preset time slot, the sub-base reports data to the main base.
As shown in fig. 3, in an exemplary embodiment, when the main base issues a control command to the sub base, the timer of the main base and the counter cooperating with the timer of the main base are cleared, and the timers of the main base and the sub base are clocked.
When the main base issues a control command to the auxiliary base, the main base issues a command for switching on a timer of the main base and a zero clearing end of a counter, even if the counting frequency of the counter of the main base is 0, the counting time of the timer is 0ms, and the main base issues a clock synchronization command.
According to the above, all the bases are connected in parallel through the RS485 bus between the main base and the auxiliary base, and the main base can receive all the auxiliary bases and clear the timer and the counter, so that the clock synchronization of the communication link between the main base and the auxiliary base is realized, and the data collision is avoided during data communication between the main base and the auxiliary base.
As shown in fig. 4, in an exemplary embodiment, when a plurality of sub-bases report data to a main base in sequence, after a first sub-base reporting data to the main base completes reporting, the sub-base triggers a clock synchronization command, and the clock synchronization command indicates that all sub-bases perform clock synchronization.
When the sub-bases do not transmit data and work for a long time, the counts of the timers of the sub-bases are generally inconsistent, when a plurality of sub-bases report data to the main base in sequence, after the first sub-base reporting the data to the main base finishes reporting, the sub-base triggers a clock synchronization command, for example, the first sub-base reporting the data to the main base reports in a preset time slot of 800 ms-850 ms, and when the sub-base finishes reporting at the time of 800ms, the sub-base triggers a clock synchronization command, so that the counts of the timers of the remaining sub-bases are synchronized to 800ms, and collision of the reported data of the remaining sub-bases are avoided.
As another example of the present invention, as shown in fig. 1, a frame structure of an intelligent express cabinet system of the present invention and as shown in fig. 2, a communication frame structure between a main base and a sub base in the intelligent express cabinet system of the present invention are provided, the intelligent express cabinet system includes a main base, a plurality of sub bases and a plurality of cabinets, each of the main base, the plurality of sub bases and the plurality of cabinets has an independent control unit, that is, the main base, the sub bases and the cabinets can be used by independent control terminals on the left and right, and can receive/transmit commands or receive/report data, a communication protocol is performed between the main base and the plurality of sub bases through an RS485 bus, the sub bases and the cabinets connected to the sub base column perform a communication protocol through an RS485 bus, in this embodiment, the sub bases are connected to the main base through the RS485 bus in a parallel manner, the commands/data transmitted by the main base, all the auxiliary bases can be received, and the communication mode between the main base and the auxiliary bases and the communication mode between the auxiliary bases and the cabinet body are not interfered with each other.
In this embodiment, as shown in fig. 5, the data collision prevention method includes:
s1': presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a downlink time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
s21': judging whether the time counted by a timer in the main base is within the issuing time period or not, if so, issuing a control command to the auxiliary base by the main base;
s22': judging whether the time counted by a timer in the auxiliary bases is within a reporting time period, if so, reporting data to the main base by the plurality of auxiliary bases at one time;
s23': and judging whether the time counted by the timer in the cabinet body is within the reporting time period, if so, reporting the data to the auxiliary base by the plurality of cabinet bodies in sequence.
According to the above embodiments, a method for preventing data collision when data communication is performed between the main chassis and the sub chassis has been described, which is not necessarily stated herein.
In step S23', it is determined whether the time counted by the timer in the sub-chassis is within the reporting time period, and if so, the sub-chassis reports data to the main chassis at a time.
According to the above, when the time counted by the timer in the sub-base waiting for the sub-base is within 800ms to 1000ms, the sub-base considers that data is reported in the cabinet body on the sub-base row.
Ideally, the timer in the sub-base counts the same time as the timer in the cabinet body.
In this embodiment, whether the time counted by the timer in the sub-base is within the reporting time period is judged, mainly by a control unit of the cabinet body on the sub-base column, the control unit of the cabinet body constantly monitors the time counted by the timer in the main cabinet body, the control unit of the cabinet body judges whether the time is within the sending time period, for example, within 0ms to 800ms, if so, the sub-base sends a control command to the cabinet body of the sub-base column, if not, the sub-base reports data to the sub-base after the time counted by the timer in the sub-base is within 800ms to 1000ms, each cabinet body reports data corresponding to a different time slot, and when the time counted by the timer in the cabinet body is within a preset time slot, the sub-base reports data.
As shown in fig. 6, in an exemplary embodiment, when the sub-chassis does not need to report data to the main chassis, a clock synchronization command is sent by the sub-chassis to the plurality of cabinets of the sub-chassis column, the clock synchronization command instructing clocks to be synchronized for the counter counts in the cabinets of the sub-chassis column to return to zero.
Because the sub-base is connected with the cabinet bodies of the sub-base row in a parallel connection mode through the RS485 bus during communication, the sub-base only needs to send a command to enable all the cabinet bodies of the sub-base row to receive the command once, if the command is the command for resetting the counter and the timer, namely the counter in all the cabinet bodies counts for 0, the timer in all the cabinet bodies counts for 0ms, and the clock synchronization of the whole intelligent express cabinet system is realized by combining the reset steps of the timer and the counter in the main base and the sub-base.
As shown in fig. 7, in an exemplary embodiment, when a plurality of cabinets report data to the main base in sequence, after the first cabinet reporting data to the sub-base completes reporting, the first cabinet triggers a clock synchronization command, where the clock synchronization command indicates that the cabinets on the sub-base row perform clock synchronization.
When the cabinets do not perform data transmission and work for a long time, the situation that the counts of the timers of the cabinets in each sub-base row are inconsistent generally exists, when a plurality of cabinets report data to the main base in sequence, the first cabinet reporting data to the sub-base triggers a clock synchronization command after the report is completed, for example, the first cabinet reporting data to the sub-base reports in a preset time slot interval of 800ms to 850ms, and when the cabinet finishes the report at the time of 800ms, the clock synchronization command is triggered once, so that the count clocks of the timers of the rest cabinets are synchronized to 800ms, and collision and conflict of the rest cabinets in reporting data are avoided.
In addition, when data is received and sent between the main base and the auxiliary base and between the auxiliary base and the cabinet body arranged in the auxiliary base row, due to the fact that the time of the timer of the auxiliary base is inconsistent with the time of the timer of the cabinet body, the sending is abnormal, for example, when the main base sends a control command and needs to acquire data from the cabinet body through the auxiliary base, the data uploaded by the cabinet body is prone to being detained in the auxiliary base, and therefore more than one piece of data is transmitted between the main base and the auxiliary base, and data collision is disordered, and the setting is carried out, when the counter of the main base finishes 1 counting, the main base can send a clock synchronization command downwards, and the whole intelligent express cabinet system achieves one-time clock synchronization.
Furthermore, when the intelligent express delivery cabinet system is not used for a long time, that is, the express delivery cabinet may not have any operation within a period of time, for example, in a state where the express delivery cabinet is not operated by a person at night, the situation that the counting time of the timers of the main base, the sub base and the cabinet body is not synchronous easily occurs within the period of time, therefore, the main base sends a clock synchronization command once every preset time, for example, the preset time is set to be 30min or 1h, so that the whole intelligent express delivery cabinet system realizes clock synchronization once.
In an exemplary embodiment, as shown in fig. 8, an intelligent courier cabinet system is provided, comprising
The timing communication module 10 is used for presetting a communication unit cycle, dividing a time axis of the communication unit cycle into a sending time period and a reporting time period, wherein the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
the first judging module 20 is configured to judge whether time counted by a timer in the main base is within a delivery time period, and if yes, the main base delivers a control command to the sub-base;
a second judging module 30, configured to judge whether time counted by a timer in the secondary base is within a reporting time period, and if so, report data to the primary base by the multiple secondary bases at a time;
and the third judging module 40 is configured to judge whether the time counted by the timer in the cabinet is within the reporting time period, and if so, the plurality of cabinets report data to the sub-base in sequence.
In an exemplary embodiment, the intelligent express delivery cabinet system further includes:
the first clock synchronization module 21 is configured to trigger a clock synchronization command once after a first cabinet reporting data to the secondary base finishes reporting when the plurality of cabinets report data to the primary base in sequence, where the clock synchronization command indicates that clock synchronization is performed on the cabinets in the secondary base row;
the second clock synchronization module 31 is configured to, when the plurality of cabinets sequentially report data to the main base, trigger a clock synchronization command once by the first cabinet reporting data to the sub-base after the report is completed, where the clock synchronization command indicates that clock synchronization is performed on the cabinets in the sub-base row.
Further, intelligence express delivery cabinet system still includes:
and a third clock synchronization module 41, configured to send, by the sub-base, a clock synchronization command to the plurality of cabinets in the sub-base row when the sub-base does not need to report data to the main base, where the clock synchronization command indicates that the counter in the cabinets in the sub-base row returns to zero to synchronize clocks.
In one exemplary embodiment, there is provided an intelligent express delivery cabinet device, comprising:
the system comprises at least one processor (processor), a communication Interface (communication Interface), at least one memory (memory) and a communication bus, wherein the at least one processor, the communication Interface and the at least one memory are communicated with each other through the communication bus. The at least one processor may invoke logic instructions in the at least one memory to perform all or a portion of the steps of the methods provided by the various method embodiments described above.
In addition, the logic instructions in the at least one memory may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment is implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Compared with the prior art, the method, the system and the equipment for acquiring the routing table applied to the intelligent express cabinet are characterized in that the main base, the auxiliary base and the cabinet body are relatively independent, the main base, the auxiliary base and the cabinet body are respectively provided with an independent control unit, the main base and the auxiliary base are used for respectively acquiring the access information of the corresponding auxiliary base and the access information of the cabinet body, the main base receives and integrally generates the routing table for networking, and the routing table can be acquired again when only the express cabinet is powered on when being started, so that the routing table for networking can be flexibly generated by increasing and decreasing the cabinet body or the auxiliary base in the intelligent express cabinet, a user can flexibly control the using quantity of the cabinet body under the condition of keeping basic network control, and the using experience of the user is improved.
Variations and modifications to the above-described embodiments may occur to those skilled in the art, which fall within the scope and spirit of the above description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (10)

1. The utility model provides a data anticollision method in intelligence express delivery cabinet system, which characterized in that, intelligence express delivery cabinet system includes main base and a plurality of sub-base, and main base and a plurality of sub-base all have independent control unit, and main base passes through RS485 communication protocol with a plurality of sub-base, and its characterized in that, data anticollision method includes:
presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a downlink time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base reporting data;
judging whether the time counted by a timer in the main base is within the issuing time period or not, if so, issuing a control command to the auxiliary base by the main base;
and judging whether the time counted by the timer in the auxiliary base is within the reporting time period, if so, reporting the data to the main base by the plurality of auxiliary bases in sequence.
2. The data anti-collision method according to claim 1, wherein when the main base issues the control command to the sub-base, a counter cooperating with a timer of the main base and a timer of the main base is cleared, and the timers of the main base and the sub-base are synchronized in clock.
3. The method according to claim 1, wherein when the plurality of sub-chassis report data to the main chassis sequentially, after a first sub-chassis reporting data to the main chassis completes reporting, the sub-chassis triggers a clock synchronization command instructing all the sub-chassis to perform clock synchronization.
4. The utility model provides a data anticollision method in intelligence express delivery cabinet system, its characterized in that, intelligence express delivery cabinet system includes main base, a plurality of sub-base and a plurality of cabinet bodies, and main base and a plurality of sub-base all have independent the control unit, and main base and a plurality of sub-base and a plurality of cabinet bodies of connecting on this sub-base all pass through RS485 communication protocol, its characterized in that, data anticollision method includes:
presetting a communication unit cycle, wherein the time axis of the communication unit cycle is divided into a downlink time period and a reporting time period, the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
judging whether the time counted by a timer in the main base is within the issuing time period or not, if so, issuing a control command to the auxiliary base by the main base;
judging whether the time counted by a timer in the auxiliary bases is within a reporting time period, if so, reporting data to the main base by the plurality of auxiliary bases at one time;
and judging whether the time counted by the timer in the cabinet body is within the reporting time period, if so, reporting the data to the auxiliary base by the plurality of cabinet bodies in sequence.
5. The method according to claim 4, wherein when the sub-chassis does not need to report data to the main chassis, a clock synchronization command is sent by the sub-chassis to the plurality of cabinets in the sub-chassis row, and the clock synchronization command instructs to synchronize clocks for the counter counts in the cabinets in the sub-chassis row to zero.
6. The data anti-collision method according to claim 4, wherein when a plurality of cabinets sequentially report data to the main chassis, after a first cabinet reporting data to the sub-chassis completes reporting, the first cabinet triggers a clock synchronization command, and the clock synchronization command indicates that the cabinets on the sub-chassis column are synchronized.
7. An intelligence express delivery cabinet system, which is characterized by comprising
The timing communication module is used for presetting a communication unit cycle, dividing a time axis of the communication unit cycle into a sending time period and a reporting time period, wherein the reporting time period is divided into a plurality of time slots, and each time slot corresponds to one auxiliary base or cabinet body to report data;
the first judgment module is used for judging whether the time counted by the timer in the main base is within the issuing time period or not, and if so, the main base issues a control command to the auxiliary base;
the second judgment module is used for judging whether the time counted by the timer in the auxiliary base is within the reporting time period or not, and if so, the plurality of auxiliary bases report data to the main base at one time;
and the third judgment module is used for judging whether the time counted by the timer in the cabinet body is within the reporting time period, and if so, the plurality of cabinet bodies report data to the auxiliary base in sequence.
8. The intelligent courier cabinet system of claim 7, further comprising:
the first clock synchronization module is used for triggering a clock synchronization command once after the first cabinet body reporting data to the auxiliary base finishes reporting when the plurality of cabinet bodies report data to the main base in sequence, wherein the clock synchronization command indicates that the cabinet bodies on the auxiliary base row are subjected to clock synchronization;
and the second clock synchronization module is used for triggering a clock synchronization command once after the first cabinet body reporting data to the auxiliary base finishes reporting when the plurality of cabinet bodies report data to the main base in sequence, wherein the clock synchronization command indicates that the cabinet bodies on the auxiliary base row are subjected to clock synchronization.
9. The intelligent courier cabinet system of claim 7, further comprising:
and the third clock synchronization module is used for sending a clock synchronization command to the plurality of cabinets in the auxiliary base row by the auxiliary base when the auxiliary base does not need to report data to the main base, wherein the clock synchronization command indicates that the counter in the cabinets in the auxiliary base row returns to zero to enable the clock synchronization.
10. An intelligence express delivery cabinet equipment which characterized in that includes:
at least one processor, at least one memory, and a communication interface; wherein the content of the first and second substances,
the processor, the memory and the communication interface are communicated with each other;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the data collision avoidance method of any of claims 1 to 6.
CN202111551960.3A 2021-12-17 2021-12-17 Data anti-collision method, system and equipment in intelligent express cabinet system Pending CN114202861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111551960.3A CN114202861A (en) 2021-12-17 2021-12-17 Data anti-collision method, system and equipment in intelligent express cabinet system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111551960.3A CN114202861A (en) 2021-12-17 2021-12-17 Data anti-collision method, system and equipment in intelligent express cabinet system

Publications (1)

Publication Number Publication Date
CN114202861A true CN114202861A (en) 2022-03-18

Family

ID=80654929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111551960.3A Pending CN114202861A (en) 2021-12-17 2021-12-17 Data anti-collision method, system and equipment in intelligent express cabinet system

Country Status (1)

Country Link
CN (1) CN114202861A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796972A (en) * 2015-04-15 2015-07-22 浙江大学 Communication method for reducing power consumption of wireless sensors and application of communication method
CN105574461A (en) * 2015-12-21 2016-05-11 天津中兴智联科技有限公司 Method for reducing ETC command collision and guaranteeing business efficiency, and radio frequency system
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN107181659A (en) * 2016-03-10 2017-09-19 深圳市祈飞科技有限公司 Intelligent cabinet communication means and system based on RS485 buses
CN108198349A (en) * 2017-11-28 2018-06-22 深圳市丰巢科技有限公司 Intelligent express delivery cabinet, detecting system and its hardware detection control method and storage medium
EP3518200A1 (en) * 2018-01-26 2019-07-31 AEON MOTOR Co., Ltd. Method for motorcycle accident detection and notification
CN110149369A (en) * 2019-04-19 2019-08-20 欧普照明股份有限公司 The rotation report method and tele-control system of terminal device based on Internet of Things
CN111586644A (en) * 2020-05-13 2020-08-25 军事科学院系统工程研究院后勤科学与技术研究所 Multi-node anti-collision method and device based on narrow-band communication of Internet of things

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796972A (en) * 2015-04-15 2015-07-22 浙江大学 Communication method for reducing power consumption of wireless sensors and application of communication method
CN105574461A (en) * 2015-12-21 2016-05-11 天津中兴智联科技有限公司 Method for reducing ETC command collision and guaranteeing business efficiency, and radio frequency system
CN107181659A (en) * 2016-03-10 2017-09-19 深圳市祈飞科技有限公司 Intelligent cabinet communication means and system based on RS485 buses
CN106559186A (en) * 2016-03-21 2017-04-05 天地融科技股份有限公司 Data transmission method and system, main communication apparatus and from communication apparatus
CN108198349A (en) * 2017-11-28 2018-06-22 深圳市丰巢科技有限公司 Intelligent express delivery cabinet, detecting system and its hardware detection control method and storage medium
EP3518200A1 (en) * 2018-01-26 2019-07-31 AEON MOTOR Co., Ltd. Method for motorcycle accident detection and notification
CN110149369A (en) * 2019-04-19 2019-08-20 欧普照明股份有限公司 The rotation report method and tele-control system of terminal device based on Internet of Things
CN111586644A (en) * 2020-05-13 2020-08-25 军事科学院系统工程研究院后勤科学与技术研究所 Multi-node anti-collision method and device based on narrow-band communication of Internet of things

Similar Documents

Publication Publication Date Title
DE3845018B4 (en) Base station for wireless digital telephone system - has channel controllers coupled to multiplexer for connecting assigned time slots to given subscriber stations
JP5166558B2 (en) Communication system comprising a CAN bus and method for driving such a communication system
DE3546664C2 (en) Operating communication bus network for processors
US20130117483A1 (en) Method for operating a bus system
DE102006013640A1 (en) Method and data transmission system for transferring data between the data transmission system and a host processor of a subscriber of a data transmission system
EP1573560A1 (en) Schematizing of messages in distributed control and supervision system
EP2619935B1 (en) Device and method for providing a global time infomration in an event controlled bus communication
CN102047188A (en) Method, system and bus coupler for exchanging data between an overlay network and an underlay network
CN107395304A (en) Apparatus and method for auto-control equipment
CN112887176B (en) Computer interlocking subsystem master-slave switching system based on heartbeat message
CN101511042A (en) Data synchronization method and device
CN103607302A (en) Fault information report method, monitoring equipment and management equipment
CN102223732A (en) Wireless multi-point DDC ED ID information sharing device and method thereof
CN103577294A (en) Methods and apparatuses for interconnect tracing
CN114202861A (en) Data anti-collision method, system and equipment in intelligent express cabinet system
CN112217701A (en) Bus collision avoidance method and device
CN1555622B (en) Method and device for producing program interruptions in subscribers to a bus system, and corresponding bus system
CN105279070B (en) Bus communication and device for time synchronism apparatus
EP0364558B1 (en) Data communications system and method therefor
CN103944738B (en) A kind of interchanger for supporting Function Extension
CN109586978B (en) Bus topology network ad hoc network method
CN101626331B (en) Ethernet communication control method for steel and iron continuous annealing system
EP2527935B1 (en) Method for operating an automation system
US20220158866A1 (en) Serial time triggered data bus
CN111367702B (en) Multitasking software watchdog processing method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220318