CN113872867A - Method for improving data recovery speed of electronic voter - Google Patents
Method for improving data recovery speed of electronic voter Download PDFInfo
- Publication number
- CN113872867A CN113872867A CN202111054343.2A CN202111054343A CN113872867A CN 113872867 A CN113872867 A CN 113872867A CN 202111054343 A CN202111054343 A CN 202111054343A CN 113872867 A CN113872867 A CN 113872867A
- Authority
- CN
- China
- Prior art keywords
- voter
- data
- handheld
- time
- electronic
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000011084 recovery Methods 0.000 title claims abstract description 25
- 230000001360 synchronised effect Effects 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 230000001934 delay Effects 0.000 claims abstract description 6
- 238000004891 communication Methods 0.000 claims description 33
- 238000012544 monitoring process Methods 0.000 claims description 5
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/48—Routing tree calculation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a method for improving the data recovery speed of an electronic voter, which is mainly used for recovering the data of the electronic voter; the electronic voter comprises a host and a slave, wherein n slave machines are arranged; the method for recovering the data of the electronic voter mainly comprises the following six steps: step 1: carrying out address setting on the voter {1, n }; step 2: each voter sends data with a time slot of delta t; and step 3: the base station sends a data recovery instruction, and the voter starts to send data; and 4, step 4: when the voter of the ith station sends data, the devices from the ith station to the i +4 stations synchronously monitor and synchronize time; and 5: transmitting data when the (i + 1) th equipment delays time delta t; step 6: the voter dynamically adapts to the synchronous time slot, and the data transmission speed and reliability are improved. Each voter of the invention can monitor the data sending time of the previous equipment, so that the time is synchronous, the time error of data receiving and sending is reduced, and the accuracy of the system is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for improving the data recovery speed of an electronic voter.
Background
With the continuous development of computer technology, electronic voting plays an increasingly important role in the political civilization construction of China.
The wireless electronic voter is a hand-held radio device, each participant represents one hand, three buttons of 'approval, disapproval and right abandon' are arranged on the participant, when the chairman platform announces that the voting questions are finished and votes, the chairman platform respectively presses down the voting buttons, the voting questions are collected to the main control computer through the base station after the voting is finished, and the voting results are displayed on a large screen in the center of the meeting place.
At present, most electronic voters adopt a master-slave communication mode, that is, one master corresponds to a plurality of slaves, information sent by the master can be transmitted to the plurality of slaves or designated slaves, while information sent by the slaves can only be transmitted to the master, and the slaves cannot directly communicate with each other. The method needs to ask for data when the data is recovered, the host computer sends a command to the slave computer to ask for the data, and the slave computer replies the data, and each inquiry takes time. In the question answering time, the code runs and takes time. The accumulation time is long due to the large number of voters. If the question-answering mechanism is cancelled, the problem that hundreds of slaves start to send data is solved. If hundreds of slave machines start to send data together, the bandwidth and the frequency band of the network are all occupied, and data receiving errors occur.
In order to solve the problem of network communication competition, a random number sending access mechanism is introduced, namely, each device randomly delays for a time to initiate communication. But this random number is also repeated, and if two devices obtain the same random number, it will also cause data interference problems when it initiates communication.
A time slot access mechanism is also introduced, namely a voter host broadcasts and sends a data recovery command to slave machines, and after receiving the command, the voter delays for a fixed time and then sequentially sends data to the host. This method is suitable for fewer devices, but if the number of slaves is large, the delay time will conflict with the error time overlap, resulting in the blocking of communication.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for improving the data recovery speed of an electronic voter; the technical problem can be effectively solved.
The invention is realized by the following technical scheme:
a method for improving the data recovery speed of an electronic voter is mainly used on the electronic voter to recover the data of the voter; the electronic voter comprises a host or a base station and a plurality of slaves in signal connection with the host or the base station; the method for recovering the data of the electronic voter mainly comprises the following six steps:
step 1: setting the address of the slave of the voter: setting addresses of the handheld voters, numbering from 1 from low to high until the nth voter;
step 2: setting the time slot of each handheld voter for sending data as delta t;
and step 3: the base station or the host sends a data recovery command, and the handheld voter starts to send data: when the base station or the host sends a data recovery command to the handheld voters, each handheld voter sends data to the base station or the host in sequence;
and 4, step 4: when a certain handheld voter sends data, a plurality of devices behind the handheld voter synchronously monitor, and synchronize time;
and 5: after a certain handheld voter sends data, 1 device behind the handheld voter sends the data when the time delay delta t;
step 6: and each handheld voter on the rear side dynamically self-adapts to the synchronous time slot, and the data is sequentially sent to the base station or the host until the last handheld voter finishes sending the data, so that the operation is finished.
Further, the address setting for the handheld voter in step 1 is: before voting is started, the voting is finished through software setting, and if any one handheld voter has any emergency in the voting process, the voting can be replaced through software change at any time.
Further, the specific operation mode for setting the time slot Δ t in step 2 is as follows: and setting the time slot interval of data transmission of two adjacent voters as delta t, wherein the time slot delta t is related to the factors of software running speed, code length, communication module frequency and communication speed.
Further, the specific operation mode of the synchronous monitoring in step 4 is as follows: and setting the handheld voter which is sending data as the ith station, and then sending data by the handheld voter before synchronous monitoring by the (i + 1) th, the (i + 2) th, the (i + 3) th and the (i + 4) th handheld voters so as to synchronize the time until the data is sent, and finishing the operation.
Further, in the step 5, the specific operation mode is as follows: after the handheld voter of the ith station sends data, the (i + 1) th equipment sends the data when the time delay is delta t: and (4) according to the time slot delta t set in the step (2), the (i + 1) th voter delays the delta t to send data.
Further, the specific operation mode of the dynamic adaptive synchronous time slot of the handheld voter in step 6 is as follows: the handheld voter monitors the data transmission time of the previous voter, so that the local time during transmission is synchronized; if equipment fails, the following equipment can monitor and skip the failed equipment in time.
Further, in the handheld voter from the first to the last in step 6, the total time required for completing data transmission by using the adaptive synchronous timeslot access communication mechanism is T, and then the calculation formula of T is: t =Δt × n; wherein n is the total number of handheld voters.
Advantageous effects
Compared with the prior art, the method for improving the data recovery speed of the electronic voter has the following beneficial effects:
(1) according to the technical scheme, a traditional communication mode is not needed, the question answering time of data sending is shortened, and the efficiency is doubled compared with that of the traditional communication mode. And each voter can monitor the data sending time of the previous equipment, so that the time is synchronous, the time error of data receiving and sending is reduced, and the accuracy of the system is improved.
Drawings
FIG. 1 is a process flow diagram of the present invention.
Fig. 2 shows data obtained by different types of communication methods in the embodiment of the present 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.
As shown in fig. 1, a method for increasing the data recovery speed of an electronic voter is mainly used for recovering data of the electronic voter; the electronic voter comprises a host or a base station and a plurality of slaves in signal connection with the host or the base station; the method for recovering the data of the electronic voter mainly comprises the following six steps:
step 1: setting the address of the slave of the voter: setting addresses of the handheld voters, numbering from 1 from low to high until the nth voter; before voting is started, the voting is finished through software setting, and if any one handheld voter has any emergency in the voting process, the voting can be replaced through software change at any time.
And configuring the address of each voter by using the server terminal through a base station communication protocol. If the first voter address is to be configured, the server simply sends the fixed point command "010500020001 AD CA". Wherein "01" is designated as fixed point transmission, "05" is function code, "0002" is server address, "0001" is terminal address to be set, and "AD CA" is CRC check code, and needs to be generated by code calculation.
Step 2: setting the time slot for sending data between each handheld voter as delta t; and setting the time slot interval of data transmission of two adjacent voters as delta t, wherein the time slot delta t is related to the factors of software running speed, code length, communication module frequency and communication speed.
The delay time slot time of the voter is set through initial software so as to face the problem of data receiving and sending time difference of different chips.
And step 3: the base station or the host sends a data recovery command, and the handheld voter starts to send data: when the base station or the host sends a data recovery command to the handheld voters, each handheld voter sends data to the base station or the host in sequence; in the data recovery process, the voter is in a locked state, and the voter can be unlocked after the data transmission is finished.
And 4, step 4: when a certain handheld voter sends data, a plurality of devices behind the handheld voter synchronously monitor, and synchronize time; and if the handheld voter sending the data is the ith station, the (i + 1) th station, the (i + 2) th station, the (i + 3) th station and the (i + 4) th handheld voter send the data time before the handheld voter synchronously monitors, so that the time is synchronized until the last handheld voter.
And 5: after a certain handheld voter sends data, 1 device behind the handheld voter sends the data when the time delay delta t; after the handheld voter of the ith station sends data, the (i + 1) th equipment sends the data when the time delay is delta t: and (4) according to the time slot delta t set in the step (2), the (i + 1) th voter delays the delta t to send data.
Step 6: each handheld voter on the rear side dynamically adapts to the synchronous time slot, and the total time required for completing data sending by adopting the adaptive synchronous time slot access communication mechanism is T, so that the calculation formula of T is as follows: t =Δt × n; wherein n is the total number of handheld voters.
The handheld voter sequentially sends data to the base station or the host, and the local time during sending is synchronized by monitoring the data sending time of the previous voter; if the equipment fails, the following equipment can monitor and skip the failed equipment in time until the last handheld voter sends data, and the operation is finished.
The traditional communication mode is not needed, the question answering time of data transmission is reduced, and the efficiency is doubled compared with the traditional communication mode. Each voter can monitor the data sending time of the previous equipment, so that the time is synchronous, the time error of data receiving and sending is reduced, and the accuracy of the system is improved; the specific demonstration mode is as follows:
let the communication time between the master and each slave be t1If there are n slave machines, the total communication time is T, then
1) The traditional question-answering communication mode needs two steps of sending and receiving, so the total communication time is needed: t1=2T1*n。
2) The random number communication mode needs each device to randomly delay one time to initiate communication, but the number of voters is too large to cause data interference, so the total communication time needed is as follows: t2= T1N + S, S is the time at which the blocked communication interruption occurs.
3) The time slot access communication mode is that the voter host broadcasts and sends a data recovery command to the slave voters, and the voters delay a fixed time and then sequentially send data to the host after receiving the command, wherein the fixed time is the slowest speed and the largest error of all equipment, and a margin is reserved.
The total communication time required is therefore: t3= ([ delta ] T + T)1) N, Δ t is a delay time set in advance for each frame of data.
4) The total communication time required by the self-adaptive synchronous time slot access communication mechanism is as follows: t = T1+ (n-1) Δ t; in this formula, t1The time taken for the first handheld voter to send data, Δ t is the delay time required by the second handheld voter, and Δ t = t when the dynamic of the handheld voters automatically adapts to the synchronous time slot1Then T = T1+ (n-1) Δ t thus gives the following formula: t =Δt + n × Δ T- Δ T, which can be calculated as: t = n × Δ T.
Experimental comparisons were made in different communication modes, and a complete voting round was performed with the same number of voters placed at the same distance, resulting in the results shown in table 1 in fig. 2.
Claims (7)
1. A method for improving the data recovery speed of an electronic voter is mainly used on the electronic voter to recover the data of the voter; the electronic voter comprises a host or a base station and a plurality of slaves in signal connection with the host or the base station; the method is characterized in that: the method for recovering the data of the electronic voter mainly comprises the following six steps:
step 1: setting the address of the slave of the voter: setting addresses of the handheld voters, numbering from 1 from low to high until the nth voter;
step 2: setting the time slot for sending data between each handheld voter as delta t;
and step 3: the base station or the host sends a data recovery command, and the handheld voter starts to send data: when the base station or the host sends a data recovery command to the handheld voters, each handheld voter sends data to the base station or the host in sequence;
and 4, step 4: when a certain handheld voter sends data, a plurality of devices behind the handheld voter synchronously monitor, and synchronize time;
and 5: after a certain handheld voter sends data, 1 device behind the handheld voter sends the data when the time delay delta t;
step 6: and each handheld voter on the rear side dynamically self-adapts to the synchronous time slot, and the data is sequentially sent to the base station or the host until the last handheld voter finishes sending the data, so that the operation is finished.
2. A method of increasing data recovery speed of an electronic voter according to claim 1, wherein: the address setting for the handheld voter described in step 1 is: before voting is started, the voting is finished through software setting, and if any one handheld voter has any emergency in the voting process, the voting can be replaced through software change at any time.
3. A method of increasing data recovery speed of an electronic voter according to claim 1, wherein: the specific operation mode for setting the time slot as Δ t in the step 2 is as follows: and setting the time slot interval of data transmission of two adjacent voters as delta t, wherein the time slot delta t is related to the factors of software running speed, code length, communication module frequency and communication speed.
4. A method of increasing data recovery speed of an electronic voter according to claim 1, wherein: the specific operation mode of the synchronous monitoring in the step 4 is as follows: and setting the handheld voter which is sending data as the ith station, and then sending data by the handheld voter before synchronous monitoring by the (i + 1) th, the (i + 2) th, the (i + 3) th and the (i + 4) th handheld voters so as to synchronize the time until the data is sent, and finishing the operation.
5. A method of increasing data recovery speed of an electronic voter according to claim 4, wherein: in the step 5, the specific operation mode is as follows: after the handheld voter of the ith station sends data, the (i + 1) th equipment sends the data when the time delay is delta t: and (4) according to the time slot delta t set in the step (2), the (i + 1) th voter delays the delta t to send data.
6. A method of increasing data recovery speed of an electronic voter according to claim 1, wherein: the specific operation mode of the handheld voter dynamic self-adaptive synchronous time slot in the step 6 is as follows: the handheld voter monitors the data transmission time of the previous voter, so that the local time during transmission is synchronized; if equipment fails, the following equipment can monitor and skip the failed equipment in time.
7. A method of increasing the speed of data recovery of an electronic voter according to any of claims 1 to 6, wherein: if the total time required for completing data transmission by the self-adaptive synchronous time slot access communication mechanism from the first handheld voter to the last handheld voter in the step 6 is T, the calculation formula of T is as follows: t =Δt × n; wherein n is the total number of handheld voters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111054343.2A CN113872867B (en) | 2021-09-09 | 2021-09-09 | Method for improving data recovery speed of electronic voter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111054343.2A CN113872867B (en) | 2021-09-09 | 2021-09-09 | Method for improving data recovery speed of electronic voter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113872867A true CN113872867A (en) | 2021-12-31 |
CN113872867B CN113872867B (en) | 2023-04-07 |
Family
ID=78995065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111054343.2A Active CN113872867B (en) | 2021-09-09 | 2021-09-09 | Method for improving data recovery speed of electronic voter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113872867B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149616A1 (en) * | 2002-02-06 | 2003-08-07 | Travaille Timothy V | Interactive electronic voting by remote broadcasting |
JP2008187235A (en) * | 2007-01-26 | 2008-08-14 | Yaskawa Electric Corp | Network system and slave synchronization method |
CN101340548A (en) * | 2008-08-22 | 2009-01-07 | 中科院成都信息技术有限公司 | Digital voice voting control method, control system and controller |
CN201984560U (en) * | 2011-03-15 | 2011-09-21 | 中科院成都信息技术有限公司 | Wireless voting system |
CN102237997A (en) * | 2011-07-08 | 2011-11-09 | 山东大学 | Method for real-time synchronization and dynamic compensation between chain Ethernet nodes |
CN102890461A (en) * | 2012-10-12 | 2013-01-23 | 广东易事特电源股份有限公司 | Synchronous control system for parallel operation of multiple UPSs (uninterrupted power supply) |
CN106254023A (en) * | 2016-08-09 | 2016-12-21 | 珠海优特电力科技股份有限公司 | A kind of method and system of master-slave equipment communication |
CN111770567A (en) * | 2020-07-02 | 2020-10-13 | 恒电科技有限公司 | Time slot communication method based on micropower wireless technology |
-
2021
- 2021-09-09 CN CN202111054343.2A patent/CN113872867B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149616A1 (en) * | 2002-02-06 | 2003-08-07 | Travaille Timothy V | Interactive electronic voting by remote broadcasting |
JP2008187235A (en) * | 2007-01-26 | 2008-08-14 | Yaskawa Electric Corp | Network system and slave synchronization method |
CN101340548A (en) * | 2008-08-22 | 2009-01-07 | 中科院成都信息技术有限公司 | Digital voice voting control method, control system and controller |
CN201984560U (en) * | 2011-03-15 | 2011-09-21 | 中科院成都信息技术有限公司 | Wireless voting system |
CN102237997A (en) * | 2011-07-08 | 2011-11-09 | 山东大学 | Method for real-time synchronization and dynamic compensation between chain Ethernet nodes |
CN102890461A (en) * | 2012-10-12 | 2013-01-23 | 广东易事特电源股份有限公司 | Synchronous control system for parallel operation of multiple UPSs (uninterrupted power supply) |
CN106254023A (en) * | 2016-08-09 | 2016-12-21 | 珠海优特电力科技股份有限公司 | A kind of method and system of master-slave equipment communication |
CN111770567A (en) * | 2020-07-02 | 2020-10-13 | 恒电科技有限公司 | Time slot communication method based on micropower wireless technology |
Non-Patent Citations (1)
Title |
---|
王冬冬 等: "基于nRF24LE1 的无线表决器设计与实现", 《计算机应用》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113872867B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111030909B (en) | Method for time synchronization among CAN bus multi-master device communication | |
CN101477506A (en) | Addressing system and method of master equipment to slave equipment | |
JPH09139973A (en) | Method and circuit device for frame synchronization in multiplex cell communication system | |
CN113872867B (en) | Method for improving data recovery speed of electronic voter | |
JP2002290310A (en) | Radio communication system | |
JP3254874B2 (en) | Digital cordless telephone equipment | |
JP3301590B2 (en) | Protocol state synchronization system | |
CN114598566A (en) | Communication system and method based on SPI bus | |
JP3619882B2 (en) | Duplex communication control method | |
CA2411788C (en) | Device and method for synchronising a system of coupled data processing facilities | |
JPH05308334A (en) | Frame synchronization system of tdma system radio base station | |
CN113489511B (en) | Wireless frequency hopping networking method based on time slice rotation scheduling | |
JPH0644763B2 (en) | Data transfer method | |
JP3116709B2 (en) | Master station replacement method in network | |
JP3442685B2 (en) | Remote monitoring and control system | |
JPH04212542A (en) | Wireless communication method and wireless transmitter | |
CN114647180A (en) | Communication method based on backboard bus control system | |
JPH0125461B2 (en) | ||
JPH0630506B2 (en) | Serial communication device | |
JPS60180244A (en) | Cyclic data transmission system | |
JPH0220132A (en) | Data transmitting system | |
JP2928024B2 (en) | Multiple access control method | |
JP2996089B2 (en) | Logic simulation equipment | |
CN114500153A (en) | LIN controller design and operation method thereof | |
JPH0774751A (en) | Method for preventing contention in multi-polling system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20211231 Assignee: Huai'an Boyuan Intelligent Technology Co.,Ltd. Assignor: HUAIYIN INSTITUTE OF TECHNOLOGY Contract record no.: X2023980046898 Denomination of invention: A Method to Improve the Data Recovery Speed of Electronic Voters Granted publication date: 20230407 License type: Common License Record date: 20231114 |
|
EE01 | Entry into force of recordation of patent licensing contract |