CN114489740B - Online updating method and device for wireless code scanning equipment - Google Patents
Online updating method and device for wireless code scanning equipment Download PDFInfo
- Publication number
- CN114489740B CN114489740B CN202210391394.2A CN202210391394A CN114489740B CN 114489740 B CN114489740 B CN 114489740B CN 202210391394 A CN202210391394 A CN 202210391394A CN 114489740 B CN114489740 B CN 114489740B
- Authority
- CN
- China
- Prior art keywords
- code scanning
- group
- equipment
- wireless code
- area
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to an online updating method and device for wireless code scanning equipment, which comprises the steps that when the wireless code scanning equipment is started, a remote server carries out identity verification on the wireless code scanning equipment according to a request message, and determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to identity information of the wireless code scanning equipment, wherein the remote server determines a mode of sending single-area updating data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added into the first area group; the remote server sends update data to all wireless code scanning equipment in the group in a group mode through the first equipment group, and determines to send equipment single-sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group. The invention realizes the management of remote updating of the wireless code scanning equipment and improves the updating efficiency of the wireless code scanning equipment.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an online updating method and device for wireless code scanning equipment.
Background
With the development of science and technology, the informatization level of the society is continuously improved, and the application of bar codes and two-dimensional codes is also increasingly wide. Bar code and two-dimensional code technologies are also beginning to be accepted and used by various industries due to their advantages of accuracy, reliability, fast data input speed, economy, cheapness, large degree of freedom, etc. However, the application environment of the bar code and the two-dimensional code is more and more complex at present, and the conventional connection transmission mode of the code scanning gun cannot meet the working requirements of the large-area environment such as medicine, logistics, retail storage and the like at present. The appearance of wireless code scanning guns and the massive application of these wireless code scanning guns in more and more various areas make how to upgrade and update these code scanning guns become the technical problem that needs to be solved at present.
Disclosure of Invention
The invention aims to solve the technical problem of the prior art and provides an online updating method and device for wireless code scanning equipment.
The technical scheme for solving the technical problems is as follows:
an online updating method for a wireless code scanning device, the method comprising:
step S1: when wireless code scanning equipment is started, the wireless code scanning equipment sends a request message to a remote server, the remote server carries out identity verification on the wireless code scanning equipment according to the request message, and if the wireless code scanning equipment passes the identity verification, the remote server determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to identity information of the wireless code scanning equipment;
step S2: the remote server judges whether the sequence number of the first regional group exists in a regional matrix X or notIf so, the first region group exists, if the first region group exists and the second region in the region matrix XPresence of the wireless code scanning device in a zone groupWhen the value of (2) is a first preset value, all wireless code scanning devices in the first area group do not complete the reception of area update data, then the wireless code scanning devices are added into the first area group, and the wireless code scanning devices are added into an area matrix X according to the serial number of the first area group and the serial number of the first device group, wherein,is as followsFirst in zone groupIdentification of completed area update data of wireless code scanning equipment of each equipment group;
step S3: the remote server determines the device matrix XWhether there is a sequence number of the first zone groupIf yes, the first equipment group exists, and if the first area group existsIn the device matrix XTo (1)Presence in device group of the wireless code scanning deviceWhen the value of (1) is a second preset value, all wireless code scanning devices in the first device group do not complete the reception of device update data, join the wireless code scanning devices into the first device group, and join the wireless code scanning devices into a device matrix XIn whichIs as followsIn the regional groupIdentification of completed device update data of wireless code scanning devices of the individual device groups;
step S4: the remote server divides the area update data to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data, the area group sending update data is sent to all the wireless code scanning equipment in the group through the first area group, and the mode of sending the area single sending update data to the wireless code scanning equipment is determined according to the number of the wireless code scanning equipment simultaneously added into the first area group;
step S5: the remote server divides the equipment update data required to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data, sends the equipment group sending update data to all the wireless code scanning equipment in the group through the first equipment group, and determines to send the equipment single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
The method has the beneficial effects that: the method comprises the steps that when the wireless code scanning equipment is started, the wireless code scanning equipment sends a request message to a remote server, the remote server carries out identity verification on the wireless code scanning equipment according to the request message, if the wireless code scanning equipment passes the identity verification, the remote server determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to identity information of the wireless code scanning equipment, and the remote server determines a mode of sending single-shot update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added into the first area group; and the remote server sends the equipment group-sending update data to all the wireless code scanning equipment in the group through the first equipment group, and determines to send the equipment single-sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group. The invention realizes the management of remote updating of the wireless code scanning equipment and improves the updating efficiency of the wireless code scanning equipment.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the area update data is divided into a plurality of area data blocks, each area data block is numbered according to the sending sequence, and the value of the serial number bit corresponding to the number in the first binary array indicates whether the wireless code scanning device has received the area data block;
when the value of the serial number bit in the first binary array is 0, the wireless code scanning device does not receive the area data block corresponding to the serial number of the serial number bit of the first binary array, and when the value of the serial number bit in the first binary array is 1, the wireless code scanning device does not receive the area data block corresponding to the serial number of the serial number bit of the first binary arrayThe line code scanning equipment receives the area data block of the serial number corresponding to the sequence number bit of the first binary array, and finally the first binary array is expressed by decimal numerical value to obtain the first binary arrayA value of (d);
dividing the device update data into a plurality of device data blocks, numbering each device data block according to a sending sequence, and expressing whether the wireless code scanning device has received the area data block by using a value of a serial number bit corresponding to the number in a second binary array;
when the value of the sequence number bit in the second binary array is 0, the wireless code scanning device does not receive the device data block corresponding to the sequence number bit number of the second binary array, and when the value of the sequence number bit in the second binary array is 1, the wireless code scanning device has received the area data block corresponding to the sequence number bit number of the first binary array and represents the second binary array by decimal numerical value to obtain the second binary arrayThe value of (c).
Further, the method further comprises:
when the area group sending update data is that the wireless code scanning equipment joins the first area group, the remote server determines the area update data which is not sent in the first area group according to the area matrix X;
when the wireless code scanning device joins the first regional group, the remote server determines the sent regional update data in the first regional group according to the regional matrix X;
the equipment group sending update data is that when the wireless code scanning equipment joins the first equipment group, the remote server sends update data according to the equipment matrix XDetermining device update data that is not transmitted within the first device group;
the equipment single-shot updating data is that when the wireless code scanning equipment joins the first equipment group, the remote server is used for updating the equipment matrix X according to the equipment matrix XAnd determining the device update data transmitted in the first device group.
Further, the step S6: when the remote server judges that the first regional group does not exist, and/or the remote server judges that the first regional group exists and a first joined wireless code scanning device in the first regional group completes the reception of regional update data;
creating the first regional group, and adding the wireless code scanning equipment into the first regional group, wherein the wireless code scanning equipment is the first wireless code scanning equipment added into the first regional group;
the remote server broadcasting the area update data into the first area group;
the method further comprises step S7;
the step S7: when the remote server judges that the first equipment group does not exist, and/or the remote server judges that the first equipment group exists and a first joined wireless code scanning device in the first equipment group completes the reception of equipment updating data;
creating the first equipment group, and joining the wireless code scanning equipment into the first equipment group, wherein the wireless code scanning equipment is the first wireless code scanning equipment joined into the first equipment group;
the remote server broadcasts the device update data to within the first device group.
Further, in the step S4, determining, according to the number of the wireless code scanning devices that join in the first area group at the same time, a manner of sending the area single-shot update data to the wireless code scanning devices includes:
when the number of the wireless code scanning devices simultaneously joined in the first regional group is greater than 2, the remote server broadcasts and sends the regional single-shot updating data in the first regional group;
and otherwise, sending the area single-shot updating data to the wireless code scanning equipment.
Further, in step S5, determining, according to the number of the wireless code scanning devices simultaneously added to the first device group, a manner of sending the device-specific update data to the wireless code scanning device, specifically includes:
when the number of the wireless code scanning devices simultaneously joined in the first device group is greater than 2, the remote server broadcasts and sends the single-shot updating data of the devices in the first device group;
and otherwise, sending the single-shot updating data of the equipment to the wireless code scanning equipment.
Further, the method further includes step S8:
step S8: the remote server judges whether the first area group exists or not, and if the first area group exists and the first wireless code scanning device added in the first area group finishes receiving area updating data, the wireless code scanning device is added in a second area group, wherein the wireless code scanning device is the first wireless code scanning device added in the second area group;
the remote server broadcasts the zone update data within the second zone group.
Further, the method further includes step S9:
step S9: the remote server judges whether the first equipment group exists or not, and if the first equipment group exists and the first wireless code scanning device added in the first equipment group finishes receiving equipment updating data, the wireless code scanning device is added in a second equipment group, wherein the wireless code scanning device is the first wireless code scanning device added in the second equipment group;
the remote server broadcasts the device update data within the second device group.
Further, the step S1 specifically includes:
s11: the wireless code scanning equipment sends a broadcast message carrying an equipment ID value;
s12: after receiving the broadcast message, the remote server sends a login authentication message to the wireless code scanning equipment;
s13: the wireless code scanning equipment acquires data to be signed in the login authentication message, signs the data to be signed by using a private key, and sends a signature result to the remote server, so that the remote server determines whether the wireless code scanning equipment is successfully authenticated according to the signature result;
s14: and the remote server acquires the equipment ID from the signature result, and determines the first area group and the first equipment group to which the wireless code scanning equipment belongs according to the equipment ID.
Another technical solution of the present invention for solving the above technical problems is as follows:
an online updating apparatus for a wireless code scanning device, the apparatus comprising:
the authentication module is used for sending a request message to a remote server by the wireless code scanning equipment when the wireless code scanning equipment is started, carrying out identity verification on the wireless code scanning equipment by the remote server according to the request message, and if the wireless code scanning equipment passes the identity verification, determining a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located by the remote server according to identity information of the wireless code scanning equipment;
a first grouping module, configured to determine, by the remote server, whether the sequence number of the first zone group exists in the zone matrix X or notIf so, the first region group exists, if the first region group exists and the second region in the region matrix XPresence of the wireless code scanning device in a zone groupWhen the value of (2) is a first preset value, all wireless code scanning devices in the first area group do not complete the reception of area update data, then the wireless code scanning devices are added into the first area group, and the wireless code scanning devices are added into an area matrix X according to the serial number of the first area group and the serial number of the first device group, wherein,is as followsIn the regional groupIdentification of completed area update data of wireless code scanning equipment of each equipment group;
a second grouping module for the remote server to determine the device matrix XWhether there is a sequence number of the first zone groupIf yes, the first equipment group exists, if the first area group exists and the equipment matrix X existsTo (1)Presence in a device group of the wireless code scanning deviceWhen the value of (A) is a second preset value, then the first valueReceiving updating data of all wireless code scanning devices in a device group, adding the wireless code scanning devices into the first device group, and adding the wireless code scanning devices into a device matrix XIn whichIs as followsIn the regional groupIdentification of completed equipment update data of wireless code scanning equipment of each equipment group;
the first processing module is used for dividing the area update data required to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data by the remote server, sending the area group sending update data to all the wireless code scanning equipment in a group through the first area group, and determining a mode for sending the area single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added into the first area group;
the second processing module is used for dividing the equipment update data required to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data by the remote server, sending the equipment group sending update data to all the wireless code scanning equipment in a group through the first equipment group, and determining to send the equipment single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention or in the description of the prior art will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an online update method for a wireless code scanning device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an online update method for a wireless code scanning device according to another embodiment of the present invention;
fig. 3 is a block diagram of an online updating apparatus for a wireless code scanning device according to 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 some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
As shown in fig. 1-2, an online update method for a wireless code scanning device according to an embodiment of the present invention includes the following steps:
101. when the wireless code scanning equipment is started, the wireless code scanning equipment sends a request message to a remote server, and the remote server carries out identity verification on the wireless code scanning equipment according to the request message.
102. If the wireless code scanning equipment passes the identity verification, the remote server determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to the identity information of the wireless code scanning equipment.
103. The remote server judges whether the sequence number of the first regional group exists in a regional matrix X or notIf so, the first region group exists, if the first region group exists and the second region group exists in the region matrix XPresence of the wireless code scanning device in a zone groupIf the value of (b) is the first preset value, all wireless scanning codes in the first zone group do not complete receiving zone update data, and step 104 is executed.
104. And adding the wireless code scanning equipment into the first regional group, and adding the wireless code scanning equipment into a regional matrix X according to the serial number of the first regional group and the serial number of the first equipment group.
Wherein the content of the first and second substances,is as followsFirst in zone groupAnd the identification of the completed area updating data of the wireless code scanning equipment of the equipment group.
105. The remote server determines the device matrix XWhether there is a sequence number of the first zone groupIf so, the first device group exists, and if the first area group exists and the device matrix X existsTo (1)The wireless code scanning device exists in the device groupIf the value of (b) is the second preset value, all wireless code scanning in the first device group does not complete the reception of the device update data.
106. Adding the wireless code scanning equipment into the first equipment group, and adding the wireless code scanning equipment into an equipment matrix XIn (1).
WhereinIs as followsIn the regional groupIdentification of completed device update data for wireless code scanning devices of individual device groups
It should be understood that the device matrix XIs a preset matrix X =. Wherein, m and n are selected from the group consisting of,,are all positive integers.
107. The remote server divides the area update data to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data, the area group sending update data to all the wireless code scanning equipment in the group is sent through the first area group, and the mode of sending the area single sending update data to the wireless code scanning equipment is determined according to the number of the wireless code scanning equipment simultaneously added into the first area group.
108. The remote server divides the equipment update data required to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data, sends the equipment group sending update data to all the wireless code scanning equipment in the group through the first equipment group, and determines to send the equipment single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
The method for updating the wireless code scanning device on line based on the embodiment includes that when the wireless code scanning device is started, the wireless code scanning device sends a request message to a remote server, the remote server performs identity verification on the wireless code scanning device according to the request message, if the wireless code scanning device passes the identity verification, the remote server determines a first area group where the wireless code scanning device is located and a first device group in the first area group where the wireless code scanning device is located according to identity information of the wireless code scanning device, and the remote server determines a mode of sending single-shot update data to the wireless code scanning device according to the number of the wireless code scanning devices simultaneously added in the first area group; and the remote server sends the equipment group-sending update data to all the wireless code scanning equipment in the group through the first equipment group, and determines to send the equipment single-sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group. The invention realizes the management of remote updating of the wireless code scanning equipment and improves the updating efficiency of the wireless code scanning equipment.
Based on the above embodiment, further, step 101 further includes step a 1;
a1, dividing the area updating data into a plurality of area data blocks, numbering each area data block according to the sending sequence, and expressing whether the wireless code scanning equipment has received the area data blocks by the value of the sequence number bit corresponding to the number in the first binary array;
when the value of the serial number in the first binary array is 0, the wireless code scanning device does not receive the area data block corresponding to the serial number of the serial number in the first binary array, when the value of the serial number in the first binary array is 1, the wireless code scanning device already receives the area data block corresponding to the serial number of the serial number in the first binary array, and finally the first binary array is represented by decimal numerical values to obtain the first binary arrayThe value of (c).
A2, dividing the device update data into a plurality of device data blocks, numbering each device data block according to the transmission sequence, and expressing whether the wireless code scanning device has received the area data block by the value of the serial number bit corresponding to the number in the second binary digit group;
when the value of the sequence number bit in the second binary array is 0, the wireless code scanning device does not receive the device data block corresponding to the sequence number bit number of the second binary array, and when the value of the sequence number bit in the second binary array is 1, the wireless code scanning device has received the area data block corresponding to the sequence number bit number of the first binary array and represents the second binary array by decimal numerical value to obtain the second binary arrayThe value of (c).
It should be understood that, for example, the first binary array 10001001, where the first sequence number bit is 1, indicates that the wireless code scanning device does not receive the area data block of number 1.
For example, a second binary array 010001001, where the second sequence number bit is 1, indicates that the wireless code scanning device does not receive the device data block of number 2.
Further, still include:
when the area group sending update data is that the wireless code scanning equipment joins the first area group, the remote server determines the unsent area update data in the first area group according to the area matrix X;
when the area single-shot updating data is the area updating data which is sent in the first area group and is determined by the remote server according to the area matrix X when the wireless code scanning equipment is added into the first area group;
the equipment group sending update data is that when the wireless code scanning equipment joins the first equipment group, the remote server sends update data according to the equipment matrix XDetermining device update data that is not transmitted within the first device group;
the equipment single-shot updating data is that when the wireless code scanning equipment joins the first equipment group, the remote server is used for updating the equipment matrix X according to the equipment matrix XAnd determining the device update data transmitted in the first device group.
Further, step 109 is also included;
109. when the remote server judges that the first regional group does not exist, and/or the remote server judges that the first regional group exists and the first joined wireless code scanning device in the first regional group completes the reception of regional update data;
creating the first regional group, and adding the wireless code scanning equipment into the first regional group, wherein the wireless code scanning equipment is the first wireless code scanning equipment added into the first regional group;
the remote server broadcasting the area update data into the first area group;
further, the method also comprises a step 110;
110. when the remote server judges that the first equipment group does not exist, and/or the remote server judges that the first equipment group exists and a first joined wireless code scanning device in the first equipment group completes the reception of equipment updating data;
creating the first equipment group, and joining the wireless code scanning equipment into the first equipment group, wherein the wireless code scanning equipment is the first wireless code scanning equipment joined into the first equipment group;
the remote server broadcasts the device update data to the first device group.
Further, in step 107, determining a manner of sending the area single-shot update data to the wireless code scanning device according to the number of the wireless code scanning devices simultaneously added to the first area group specifically includes:
b1, when the number of the wireless code scanning devices simultaneously joined in the first regional group is greater than 2, the remote server broadcasts and sends the regional single-shot updating data in the first regional group;
b2, otherwise, sending the area single-shot updating data to the wireless code scanning device.
Further, the determining, in the step 108, a manner of sending the single-transmission update data to the wireless code scanning device according to the number of the wireless code scanning devices simultaneously added to the first device group specifically includes:
c1, when the number of the wireless code scanning devices joined in the first device group is greater than 2, the remote server broadcasts and sends the single-shot updating data of the devices in the first device group;
c2, otherwise, sending the single-shot update data of the device to the wireless code scanning device.
Further, the method also comprises a step 111:
111. the remote server judges whether the first area group exists or not, and if the first area group exists and the first wireless code scanning device added in the first area group finishes receiving area updating data, the wireless code scanning device is added in a second area group, wherein the wireless code scanning device is the first wireless code scanning device added in the second area group;
the remote server broadcasts the zone update data within the second zone group.
Further, the method further comprises step 112:
112. the remote server judges whether the first equipment group exists or not, and if the first equipment group exists and the first wireless code scanning device added in the first equipment group finishes receiving equipment updating data, the wireless code scanning device is added in a second equipment group, wherein the wireless code scanning device is the first wireless code scanning device added in the second equipment group;
the remote server broadcasts the device update data within the second device group.
Further, step 101 specifically includes step 200:
201. and the wireless code scanning equipment sends a broadcast message carrying an equipment ID value.
202. And after receiving the broadcast message, the remote server sends a login authentication message to the wireless code scanning equipment.
203. The wireless code scanning equipment acquires the data to be signed in the login authentication message, signs the data to be signed by using a private key, and sends a signature result to the remote server, so that the remote server determines whether the wireless code scanning equipment is successfully authenticated according to the signature result.
204. And the remote server acquires the equipment ID from the signature result, and determines the first area group and the first equipment group to which the wireless code scanning equipment belongs according to the equipment ID.
As shown in fig. 3, an online updating apparatus for a wireless code scanning device includes:
the authentication module is used for sending a request message to a remote server by the wireless code scanning equipment when the wireless code scanning equipment is started, carrying out identity verification on the wireless code scanning equipment by the remote server according to the request message, and if the wireless code scanning equipment passes the identity verification, determining a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located by the remote server according to identity information of the wireless code scanning equipment;
a first grouping module, configured to determine, by the remote server, whether the sequence number of the first zone group exists in the zone matrix X or notIf so, the first region group exists, if the first region group exists and the second region group exists in the region matrix XPresence of the wireless code scanning device in a zone groupWhen the value of (2) is a first preset value, all wireless code scanning devices in the first area group do not complete the reception of area update data, then the wireless code scanning devices are added into the first area group, and the wireless code scanning devices are added into an area matrix X according to the serial number of the first area group and the serial number of the first device group, wherein,is as followsIn the regional groupIdentification of completed area update data of wireless code scanning equipment of each equipment group;
a second grouping module for the remote server to determine the device matrix XWhether there is a sequence number of the first zone groupIf so, the first device group exists, and if the first area group exists and the device matrix X existsTo (1)Presence in device group of the wireless code scanning deviceWhen the value of (1) is a second preset value, all wireless code scanning devices in the first device group do not complete the reception of device update data, join the wireless code scanning devices into the first device group, and join the wireless code scanning devices into a device matrix XIn whichIs as followsIn the regional groupIdentification of completed device update data of wireless code scanning devices of the individual device groups;
the first processing module is used for dividing the area update data required to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data by the remote server, sending the area group sending update data to all the wireless code scanning equipment in a group through the first area group, and determining a mode for sending the area single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first area group;
the second processing module is used for dividing the equipment update data required to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data by the remote server, sending the equipment group sending update data to all the wireless code scanning equipment in a group through the first equipment group, and determining to send the equipment single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, Read-only memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. An online updating method for a wireless code scanning device, the method comprising:
step S1: when the wireless code scanning equipment is started, the wireless code scanning equipment sends a request message to a remote server, the remote server carries out identity verification on the wireless code scanning equipment according to the request message, and if the wireless code scanning equipment passes the identity verification, the remote server determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to identity information of the wireless code scanning equipment;
step S2: the remote server judges whether the sequence number of the first regional group exists in a regional matrix X or notIf so, the first region group exists, if the first region group exists and the second region in the region matrix XIn a zone groupThe wireless code scanning device exists in each device groupWhen the value of (2) is a first preset value, all wireless code scanning devices in the first area group do not complete the reception of area update data, the wireless code scanning devices are added into the first area group, and the wireless code scanning devices are added into the area matrix X according to the serial number of the first area group and the serial number of the first device group;
step S3: the remote server determines the device matrix XWhether there is a serial number of the first device groupIf yes, the first equipment group exists, and if the first equipment group exists and the equipment matrix X existsTo middleIn the equipment groupThe wireless code scanning device exists in each regional groupWhen the value of (1) is a second preset value, all wireless code scanning devices in the first device group do not finish receiving the device update data, and the wireless code scanning devices are added into the first device groupA device group, and adding the wireless code scanning device into the device matrix XPerforming the following steps;
step S4: the remote server divides the area update data to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data, the area group sending update data to all the wireless code scanning equipment in a group through the first area group, and the mode of sending the area single sending update data to the wireless code scanning equipment is determined according to the number of the wireless code scanning equipment simultaneously added in the first area group;
step S5: the remote server divides the equipment update data to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data, the equipment group sending update data to all the wireless code scanning equipment in the group through the first equipment group, and the mode of sending the equipment single sending update data to the wireless code scanning equipment is determined according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
2. The online updating method for the wireless code scanning device according to claim 1, wherein the method further comprises:
dividing the area updating data into a plurality of area data blocks, numbering each area data block according to a sending sequence, and representing whether the wireless code scanning equipment has received the area data blocks by using the value of the serial number bit corresponding to the number in the first binary array;
when the value of the serial number bit in the first binary array is 0, the wireless code scanning device does not receive the area data block corresponding to the serial number bit of the first binary array, when the value of the serial number bit in the first binary array is 1, the wireless code scanning device receives the area data block corresponding to the serial number bit of the first binary array, and finally the first binary array is used as a referenceDecimal numerical representation to obtain saidA value of (d);
dividing the equipment updating data into a plurality of equipment data blocks, numbering each equipment data block according to a sending sequence, and expressing whether the wireless code scanning equipment has received the equipment data blocks by using a value of a serial number bit corresponding to the number in a second binary array;
when the value of the sequence number bit in the second binary array is 0, the wireless code scanning device does not receive the device data block corresponding to the sequence number bit number of the second binary array, and when the value of the sequence number bit in the second binary array is 1, the wireless code scanning device already receives the device data block corresponding to the sequence number bit number of the first binary array and expresses the second binary array by decimal numerical value to obtain the device data block corresponding to the sequence number bit number of the first binary arrayThe value of (c).
3. The online updating method for the wireless code scanning device according to claim 2, wherein the method further comprises:
when the area group sending update data is that the wireless code scanning equipment joins the first area group, the remote server determines the area update data which is not sent in the first area group according to the area matrix X;
when the area single-shot updating data is the area updating data which is sent in the first area group and is determined by the remote server according to the area matrix X when the wireless code scanning equipment is added into the first area group;
the equipment group sending update data is that when the wireless code scanning equipment joins the first equipment group, the remote server sends update data according to the equipment matrix XDetermining device update data that is not transmitted within the first device group;
4. The online updating method for the wireless code scanning device according to claim 3, wherein the method further comprises the steps of S6;
the step S6: when the remote server judges that the first regional group does not exist, or the remote server judges that the first regional group exists and a first joined wireless code scanning device in the first regional group finishes receiving regional update data;
creating the first regional group, and adding the wireless code scanning equipment into the first regional group, wherein the wireless code scanning equipment is the first wireless code scanning equipment added into the first regional group;
the remote server broadcasting the area update data into the first regional group;
the method further comprises step S7;
the step S7: when the remote server judges that the first equipment group does not exist, or the remote server judges that the first equipment group exists and a first joined wireless code scanning device in the first equipment group completes the reception of equipment updating data;
creating the first equipment group, and joining the wireless code scanning equipment into the first equipment group, wherein the wireless code scanning equipment is the first wireless code scanning equipment joined into the first equipment group;
the remote server broadcasts the device update data to the first device group.
5. The online updating method for the wireless code scanning device according to claim 4, wherein the step S4 determines the manner of sending the area single-shot updating data to the wireless code scanning device according to the number of the wireless code scanning devices simultaneously participating in the first area group, which specifically includes:
when the number of the wireless code scanning devices simultaneously joined in the first regional group is greater than 2, the remote server broadcasts and sends the regional single-shot updating data in the first regional group;
and otherwise, sending the area single-shot updating data to the wireless code scanning equipment.
6. The online updating method for a wireless code scanning device according to claim 4, wherein the determining, in step S5, a manner for sending the device single update data to the wireless code scanning device according to the number of wireless code scanning devices joined to the first device group at the same time specifically includes:
when the number of the wireless code scanning devices simultaneously joined in the first device group is greater than 2, the remote server broadcasts and sends the single-shot updating data of the devices in the first device group;
and otherwise, sending the single-shot updating data of the equipment to the wireless code scanning equipment.
7. The online updating method for wireless code scanning device according to claim 5, wherein the method further comprises step S8:
step S8: the remote server judges whether the first area group exists or not, and if the first area group exists and the first wireless code scanning device added in the first area group finishes receiving area updating data, the wireless code scanning device is added in a second area group, wherein the wireless code scanning device is the first wireless code scanning device added in the second area group;
the remote server broadcasts the zone update data within the second zone group.
8. The online updating method for wireless code scanning device according to claim 4, wherein the method further comprises step S9:
step S9: the remote server judges whether the first equipment group exists or not, and if the first equipment group exists and the first joined wireless code scanning equipment in the first equipment group finishes receiving equipment updating data, the wireless code scanning equipment is joined into a second equipment group, wherein the wireless code scanning equipment is the first wireless code scanning equipment joined into the second equipment group;
the remote server broadcasts the device update data within the second device group.
9. The online updating method for a wireless code scanning device according to claim 1, wherein the step S1 specifically includes:
s11: the wireless code scanning equipment sends a broadcast message carrying an equipment ID value;
s12: after receiving the broadcast message, the remote server sends a login authentication message to the wireless code scanning equipment;
s13: the wireless code scanning equipment acquires data to be signed in the login authentication message, signs the data to be signed by using a private key, and sends a signature result to the remote server, so that the remote server determines whether the wireless code scanning equipment is successfully authenticated according to the signature result;
s14: and the remote server acquires the equipment ID from the signature result, and determines the first area group and the first equipment group to which the wireless code scanning equipment belongs according to the equipment ID.
10. An online updating apparatus for a wireless code scanning device, the apparatus comprising:
the authentication module is used for sending a request message to a remote server by the wireless code scanning equipment when the wireless code scanning equipment is started, the remote server carries out identity verification on the wireless code scanning equipment according to the request message, and if the wireless code scanning equipment passes the identity verification, the remote server determines a first area group where the wireless code scanning equipment is located and a first equipment group in the first area group where the wireless code scanning equipment is located according to identity information of the wireless code scanning equipment;
a first grouping module, configured to determine, by the remote server, whether the sequence number of the first zone group exists in the zone matrix X or notIf so, the first region group exists, if the first region group exists and the second region group exists in the region matrix XIn a regional groupThe wireless code scanning device exists in each device groupWhen the value of (2) is a first preset value, all wireless code scanning devices in the first area group do not complete the reception of area update data, the wireless code scanning devices are added into the first area group, and the wireless code scanning devices are added into the area matrix X according to the serial number of the first area group and the serial number of the first device group;
a second grouping module for the remote server to determine the device matrix XWhether there is a serial number of the first device groupIf so, the first device group exists, if the first device group existsDevice groups exist and the device matrix XTo middleIn the equipment groupThe wireless code scanning device exists in each regional groupWhen the value of (a) is a second preset value, all wireless code scanning devices in the first device group do not complete the reception of device update data, join the wireless code scanning devices into the first device group, and join the wireless code scanning devices into the device matrix XPerforming the following steps;
the first processing module is used for dividing the area update data required to be sent to the wireless code scanning equipment into area group sending update data and area single sending update data by the remote server, sending the area group sending update data to all the wireless code scanning equipment in a group through the first area group, and determining a mode for sending the area single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added into the first area group;
the second processing module is used for dividing the equipment update data required to be sent to the wireless code scanning equipment into equipment group sending update data and equipment single sending update data by the remote server, sending the equipment group sending update data to all the wireless code scanning equipment in a group through the first equipment group, and determining a mode for sending the equipment single sending update data to the wireless code scanning equipment according to the number of the wireless code scanning equipment simultaneously added in the first equipment group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210391394.2A CN114489740B (en) | 2022-04-14 | 2022-04-14 | Online updating method and device for wireless code scanning equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210391394.2A CN114489740B (en) | 2022-04-14 | 2022-04-14 | Online updating method and device for wireless code scanning equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114489740A CN114489740A (en) | 2022-05-13 |
CN114489740B true CN114489740B (en) | 2022-06-24 |
Family
ID=81488738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210391394.2A Active CN114489740B (en) | 2022-04-14 | 2022-04-14 | Online updating method and device for wireless code scanning equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114489740B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115811413B (en) * | 2022-07-15 | 2023-07-25 | 北京金朗维科技有限公司 | Online upgrading method and device for wireless code scanning equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106413047A (en) * | 2016-10-31 | 2017-02-15 | 北京小米移动软件有限公司 | Method and device for enabling intelligent device to be accessed to wireless network |
CN108737394B (en) * | 2018-05-08 | 2020-05-22 | 腾讯科技(深圳)有限公司 | Offline verification system, code scanning device and server |
CN111723889B (en) * | 2020-07-31 | 2021-06-11 | 腾讯科技(深圳)有限公司 | Code scanning login method, graphic code display method, device, equipment and storage medium |
CN112654102B (en) * | 2020-12-16 | 2022-09-06 | 苏州摩比信通智能系统有限公司 | Remote data transmission method and system for code scanning equipment |
CN113645054B (en) * | 2021-05-13 | 2023-07-25 | 深圳市乙辰科技股份有限公司 | Wireless network equipment configuration method and system |
-
2022
- 2022-04-14 CN CN202210391394.2A patent/CN114489740B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114489740A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110599173B (en) | Block chain consensus node determination method, device, equipment and storage medium | |
CN109040341B (en) | Intelligent contract address generation method and device, computer equipment and readable storage medium | |
CN107809484B (en) | Block chain transaction information processing method and block chain link point | |
US11367055B2 (en) | Decentralized pooled mining for enabling proof-of-work on blockchains | |
CN110852882B (en) | Packet consensus method, apparatus, device, and medium for blockchain networks | |
CN111163130B (en) | Network service system and data transmission method thereof | |
CN107465687B (en) | Method, device and terminal for realizing permission configuration | |
CN114884697B (en) | Data encryption and decryption method and related equipment based on cryptographic algorithm | |
CN114489740B (en) | Online updating method and device for wireless code scanning equipment | |
CN111241569A (en) | Information processing method, device and equipment | |
CN112163412A (en) | Data verification method and device, electronic equipment and storage medium | |
CN111292190A (en) | Transaction generation method, block creation method, related device and equipment | |
CN113988857A (en) | NFT transaction method, transaction system, computer-readable storage medium and terminal device | |
US20240005165A1 (en) | Machine learning model training method, prediction method therefor, apparatus, device, computer-readable storage medium, and computer program product | |
CN111950032A (en) | Block chain-based data storage method, terminal device and storage medium | |
CN114780923A (en) | Electronic seal management and control method and system | |
CN112532629A (en) | Data transmission method, device, equipment and medium | |
CN112134883A (en) | Method and device for quickly authenticating trust relationship between nodes based on trusted computing and related products | |
CN112260934B (en) | Resource interaction method and system based on education cloud platform | |
CN111050326B (en) | Block chain-based short message verification method, device, equipment and medium | |
CN109547404B (en) | Data acquisition method and server | |
CN112242978A (en) | Method and device for processing data | |
CN118176694A (en) | Method and system for distributed blockchain functionality | |
CN112417478B (en) | Data processing method, device, equipment and storage medium | |
US20210383469A1 (en) | Currency trading method based on blockchain and electronic 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |