CN116954672A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116954672A
CN116954672A CN202311010501.3A CN202311010501A CN116954672A CN 116954672 A CN116954672 A CN 116954672A CN 202311010501 A CN202311010501 A CN 202311010501A CN 116954672 A CN116954672 A CN 116954672A
Authority
CN
China
Prior art keywords
electronic lock
target
passive electronic
data
data packet
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
CN202311010501.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.)
Shenzhen Meikai Innovation Technology Co ltd
Original Assignee
Shenzhen Meikai Innovation Technology 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 Shenzhen Meikai Innovation Technology Co ltd filed Critical Shenzhen Meikai Innovation Technology Co ltd
Priority to CN202311010501.3A priority Critical patent/CN116954672A/en
Publication of CN116954672A publication Critical patent/CN116954672A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock; reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet; and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result. When the passive electronic lock is remotely upgraded, the electric quantity information of the passive electronic lock is detected, data packets are divided according to the electric quantity information, and each data packet is sent to the passive electronic lock for upgrading, so that data loss caused by insufficient electric quantity of the passive electronic lock is avoided, and the upgrading efficiency of the passive electronic lock is improved.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of passive control technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
Currently, as the field of passive devices evolves, many industries begin to use passive devices in place of existing devices. For example, in the industries of logistics transportation and the like, intelligent control is realized by using a passive electronic lock to replace the existing common lockset. The existing passive device is provided with a capacitor assembly, and the capacitor assembly can be charged based on bluetooth or NFC (Near Field Communication ) to drive the passive device to execute specified operation, however, due to the smaller power supply electric quantity of the capacitor assembly, in the interaction process of larger data quantity such as OTA (Over-the-Air Technology), the data transmission is easy to fail due to insufficient electric quantity, so that the passive device cannot be upgraded normally.
Disclosure of Invention
The embodiment of the application provides a data processing method, a device, equipment and a storage medium, which aim to solve the technical problem that in the prior art, passive equipment cannot be normally upgraded due to data transmission failure caused by insufficient electric quantity in a remote upgrading process.
In one aspect, an embodiment of the present application provides a data processing method, including the steps of:
Responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
In one possible implementation manner of the present application, the responding to the upgrade request for the passive electronic lock, obtaining the target update information of the passive electronic lock includes:
responding to an upgrading request aiming at the passive electronic lock, and acquiring updated version information of preset cloud transmission;
and if the update version number of the update version information is larger than the current version number of the passive electronic lock, setting the update version information as target update information.
In one possible implementation manner of the present application, the data packaging of the target update information based on the target transmission protocol of the electric quantity information and the target update information, to obtain each upgrade data packet, includes:
Acquiring a target transmission protocol corresponding to the target update information and each candidate electric quantity interval in the target transmission protocol;
determining a target electric quantity interval in the candidate electric quantity intervals according to the electric quantity information, and acquiring transmission data quantity corresponding to the target electric quantity interval;
and driving the target transmission protocol and the transmission data volume to carry out data packaging on the target update information to obtain each upgrading data packet.
In one possible implementation manner of the present application, the driving the target transmission protocol and the transmission data volume to perform data packaging on the target update information to obtain each upgrade data packet includes:
acquiring a data packet template associated with the target transmission protocol;
data packaging is carried out on the target updating information according to the transmission data quantity, and each target transmission data is obtained;
and carrying out data packaging on each target transmission data based on the data packet template to obtain each upgrading data packet.
In one possible implementation manner of the present application, the sending each upgrade data packet to the passive electronic lock, driving the passive electronic lock to perform version upgrade based on each upgrade data packet, to obtain a version upgrade result, includes:
Arranging each upgrading data packet according to the target updating information to obtain target index information;
and transmitting each upgrading data packet to the passive electronic lock based on the transmission sequence in the target index information, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
In one possible implementation manner of the present application, the sending, based on the sending order in the target index information, each upgrade data packet to the passive electronic lock, driving the passive electronic lock to perform version upgrade based on each upgrade data packet, and after obtaining a version upgrade result, further includes:
responding to a breakpoint resume request, and reading a target breakpoint data packet in the breakpoint resume request, wherein the target breakpoint data packet is an upgrade data packet which is abnormal in the passive electronic lock reception;
determining continuous transmission data packets in the upgrading data packets according to the target index information and the target breakpoint data packets;
and continuously transmitting the continuous transmission data packet breakpoint to the passive electronic lock according to the transmission sequence in the target index information.
In one possible implementation manner of the present application, the sending, based on the sending order in the target index information, each upgrade data packet to the passive electronic lock, driving the passive electronic lock to perform version upgrade based on each upgrade data packet, and after obtaining a version upgrade result, further includes:
Counting version upgrading results of the passive electronic locks to obtain upgrading success rate of the target updating information;
if the upgrade success rate is smaller than a preset success rate threshold, repackaging the target update information according to the target transmission protocol to generate an update data packet;
and sending the update data packet to the passive electronic lock with the version update result of which the update fails, and driving the passive electronic lock to perform re-update to obtain an update result.
In another aspect, the present application provides a data processing apparatus comprising:
the updating and reading module is configured to respond to an updating request aiming at the passive electronic lock and acquire target updating information of the passive electronic lock;
the data packaging module is configured to read the electric quantity information of the passive electronic lock, and data packaging is carried out on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrading data packet;
the version updating module is configured to send each upgrading data packet to the passive electronic lock, and drive the passive electronic lock to carry out version upgrading based on each upgrading data packet so as to obtain a version upgrading result.
In another aspect, the present application also provides a data processing apparatus, including:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the data processing method.
In another aspect, the present application also provides a computer readable storage medium having stored thereon a computer program to be loaded by a processor for performing the steps of the data processing method.
According to the method, the target updating information of the passive electronic lock is obtained by responding to the upgrading request aiming at the passive electronic lock; reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet; and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result. When the passive electronic lock is remotely upgraded, the electric quantity information of the passive electronic lock is detected, data packets are divided according to the electric quantity information, and each data packet is sent to the passive electronic lock for upgrading, so that data loss caused by insufficient electric quantity of the passive electronic lock is avoided, and the upgrading efficiency of the passive electronic lock is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of an embodiment of a data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating an embodiment of breakpoint resuming in the data processing method according to the present application;
FIG. 4 is a flowchart illustrating an embodiment of modifying an upgrade data packet in a data processing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural view of an embodiment of a data processing apparatus provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "exemplary" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Currently, as the field of passive devices evolves, many industries begin to use passive devices in place of existing devices. For example, in the industries of logistics transportation and the like, intelligent control is realized by using a passive electronic lock to replace the existing common lockset. The existing passive device is provided with a capacitor assembly, and the capacitor assembly can be charged based on bluetooth or NFC (Near Field Communication ) to drive the passive device to execute specified operation, however, due to the smaller power supply electric quantity of the capacitor assembly, in the interaction process of larger data quantity such as OTA (Over-the-Air Technology), the data transmission is easy to fail due to insufficient electric quantity, so that the passive device cannot be upgraded normally.
Based on the above, the application provides a data processing method, a device, equipment and a computer readable storage medium, so as to solve the technical problem that in the prior art, the passive equipment cannot be upgraded normally due to data transmission failure caused by insufficient electric quantity in the remote upgrading process.
The data processing method in the embodiment of the application is applied to a data processing device, the data processing device is arranged in a data processing device, one or more processors, a memory and one or more application programs are arranged in the data processing device, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the data processing method; the data processing device can be an intelligent terminal, such as a mobile phone, a tablet computer, a network device, an intelligent computer and the like; alternatively, the data processing device may be a server, or a service cluster formed by a plurality of servers.
As shown in fig. 1, fig. 1 is a schematic view of a scenario of a data processing method according to an embodiment of the present application, where the data processing scenario includes a data processing device 100 (a data processing apparatus is integrated in the data processing device 100) and a passive electronic lock 200, and a computer readable storage medium corresponding to the data processing method is executed in the data processing device 100 to execute steps of the data processing method. The passive electronic lock 200 is a passive NFC electronic lock that performs data interactions with the data processing device 100 to accomplish remote upgrades or other interactions.
Specifically, the passive electronic lock is configured to lock a specified packaging box, a cabinet or a door, detect a mobile terminal close to the passive electronic lock, charge a power supply capacitor in the passive electronic lock through a built-in passive NFC module, and output electric energy according to the capacitance electric quantity of the power supply capacitor to supply the passive electronic lock, so that the passive electronic lock can execute unlocking, locking and other interactive functions.
Specifically, the passive electronic lock in the embodiment of the application comprises a passive NFC receiving end and a target lock component, where the passive NFC receiving end includes the following components:
1. and the passive NFC module is used for detecting the mobile terminal, performing near field communication with the mobile terminal when the mobile terminal is close to the mobile terminal, acquiring a radio frequency signal of the mobile terminal, and performing radio frequency signal conversion to charge a capacitor in the passive electronic lock.
2. And the processor is used for detecting the capacitance electric quantity, adjusting the data acquisition frequency of the sensor according to the capacitance electric quantity, checking the user identity information, and outputting target sensing data corresponding to the user identity information to the electronic screen for display.
3. And the memory is used for storing the communication protocol and other preset information.
4. And the power supply capacitor is used for storing electric quantity and supplying power for the passive electronic lock.
Alternatively, each component in the passive electronic lock is not limited by the embodiment, and a person skilled in the art may set more or less components according to practical application requirements, for example, when the passive electronic lock is applied to logistics transportation, a plurality of sensors are set to detect the express mail transportation condition in the logistics box locked by the passive electronic lock.
It should be understood that the data processing apparatus in the scenario of the data processing method shown in fig. 1, or the device included in the data processing apparatus, is not limited to the embodiment of the present invention, that is, the number of devices and the type of devices of the data processing apparatus included in the scenario of the data processing method, or the number of devices and the type of devices included in each device, do not affect the overall implementation of the technical solution in the embodiment of the present invention, and may be regarded as equivalent substitution or derivative of the technical solution claimed in the embodiment of the present invention.
The data processing apparatus 100 in the embodiment of the present application is mainly used for: responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
The data processing device 100 in the embodiment of the present application may be an independent data processing device, for example, an intelligent terminal such as a mobile phone, a tablet computer, a network device, a server, and an intelligent computer, or may be a data processing network or a data processing cluster formed by a plurality of data processing devices.
The embodiment of the application provides a data processing method, a data processing device and a computer readable storage medium, and the data processing device, the device and the computer readable storage medium are respectively described in detail below.
It will be appreciated by those skilled in the art that the application environment shown in fig. 1 is only one application scenario related to the present solution, and is not limited to the application scenario of the present solution, and other application environments may further include more or fewer data processing devices than those shown in fig. 1, or a data processing network connection relationship, for example, only one data processing device is shown in fig. 1, and it will be appreciated that the scenario of the data processing method may further include one or more data processing devices, which is not limited herein in particular; memory may also be included in the data processing device 100 for storing target update information and other data.
It should be noted that, the schematic view of the scenario of the data processing method shown in fig. 1 is only an example, and the scenario of the data processing method described in the embodiment of the present application is for more clearly describing the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application.
Based on the above-mentioned scenarios of the data processing method, various embodiments of the disclosed data processing method are presented.
As shown in fig. 2, fig. 2 is a flowchart of an embodiment of a data processing method according to the present application, where the data processing method includes the following steps 201 to 203:
201. responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
the data processing method in this embodiment is applied to a data processing device, and the type and number of the data processing devices are not specifically limited, that is, the data processing device may be one or more intelligent terminals or servers, and in a specific embodiment, the data processing device is a smart phone.
Specifically, the data processing device can establish near field communication or bluetooth communication with the passive electronic lock, output a radio frequency signal to a passive NFC receiving end in the passive electronic lock based on the near field communication and the bluetooth communication, and charge the passive electronic lock based on the radio frequency signal. After receiving a radio frequency signal transmitted by a mobile terminal, the passive NFC module performs radio frequency signal conversion on the radio frequency signal to obtain converted electric energy generated by the radio frequency signal, performs rectification and voltage stabilization processing on the converted electric energy, generates direct current electric energy, and inputs the direct current electric energy into a power supply capacitor in a passive NFC receiving end for charging.
Specifically, the data processing device responds to an upgrade request for the passive electronic lock in the running process, wherein the upgrade request is an operation instruction for driving the data processing device to perform remote upgrade processing on the passive electronic lock. Optionally, the triggering manner of the upgrade request is not specifically limited herein, that is, the upgrade request may be actively triggered by a user, for example, after the user establishes near field communication or bluetooth communication between the data processing device and the passive electronic lock device, the user actively triggers the upgrade request for the passive electronic lock by clicking an upgrade detection button in the data processing device. In addition, the upgrade request for the passive electronic lock can be automatically triggered by the data processing device or the passive electronic lock, for example, an automatic upgrade process is preset in the data processing device or the passive electronic lock, and the upgrade request for the passive electronic lock is automatically triggered under a preset scene.
Specifically, after acquiring an upgrade request for the passive electronic lock, the data processing device acquires target update information of the passive electronic lock. The data processing device accesses a preset cloud to obtain updated version information, which is stored in the preset cloud and is associated with the passive electronic lock. The updated version information is a firmware upgrade file associated with the passive electronic lock.
Specifically, after the data processing device obtains the update version information associated with the passive electronic lock, the data processing device also reads the current version number of the current firmware version of the passive electronic lock, and compares the current version number with the update version number in the update version information, so as to determine whether to update the remote firmware of the passive electronic lock.
Optionally, if the current version number is greater than or equal to the update version number of the update version information, the data processing device determines that the firmware version of the passive electronic lock is higher than the firmware upgrade file version stored in the preset cloud, and the data processing device does not upgrade the passive electronic lock.
Optionally, if the current version number is smaller than the update version number of the update version information, that is, the update version number is greater than the current version number of the passive electronic lock, the data processing device determines that remote upgrade is required for the passive electronic lock, and sets the update version information as target update information of the remote upgrade.
202. Reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
Specifically, after the data processing device determines that the passive electronic lock needs to be remotely upgraded, in order to ensure that data can be successfully transmitted, the data processing device packages data of the target updating information according to the electric quantity information of the passive electronic lock, and divides the target updating information into a plurality of upgrading data packets, so that the success rate of data transmission is improved.
Specifically, the data processing device reads a target transmission protocol corresponding to the target update information in advance, and obtains each candidate electric quantity interval preset in the target transmission protocol, wherein different candidate electric quantity intervals correspond to different transmission data amounts, the transmission data amounts are preset, and single transmission data amounts which can be successfully transmitted in the electric quantity intervals can be obtained. The higher the power corresponding to the candidate power interval, the larger the corresponding data transmission amount. For example, in one particular embodiment, the data transfer amount is 128kb (units: kilobytes), i.e., the data processing device transfers 10 bytes of data per transfer to the passive electronic lock.
Specifically, the data processing device further reads the electric quantity information of the passive electronic lock based on near field communication or bluetooth communication, and judges a target electric quantity interval in the candidate electric quantity interval in which the electric quantity information falls, so as to determine the transmission data quantity in the upgrading process.
Specifically, the data processing device compares the electric quantity information with a first electric quantity threshold value and a second electric quantity threshold value of each candidate electric quantity interval, and if the electric quantity information is larger than the first electric quantity threshold value or smaller than the second electric quantity threshold value of a certain candidate electric quantity interval, the data processing device sets the candidate electric quantity interval as a target electric quantity interval and acquires the transmission data quantity corresponding to the target electric quantity interval.
Specifically, after the data processing device obtains the transmission data amount, data division is performed on the target update information according to the transmission data amount, so as to obtain each target transmission data which accords with the transmission data amount, and the target transmission data is subjected to data packaging, so that each upgrade data packet is obtained. For example, in one embodiment, if the transmission data amount is 10kb, the data size of each of the remaining target transmission data is 10kb except for the case where the last target transmission data may be smaller than 10kb.
Specifically, the data processing device obtains a data packet template associated with the target transmission protocol, wherein the data packet template prescribes setting rules of various fields in the upgrade data packet. After the data processing device obtains each target transmission data, the data processing device performs data packaging on each target transmission data based on the data packet template so as to generate each upgrading data packet.
203. And sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
Specifically, after the data processing device obtains each upgrade data packet corresponding to the target update information, each upgrade data packet is sent to the passive electronic lock through near field communication or bluetooth communication, and the passive electronic lock is driven to carry out version upgrade through the upgrade data packet after receiving all upgrade data packets, so that a version upgrade result is obtained.
Optionally, the data processing device further arranges each upgrade data packet according to the target update information in advance to obtain target index information, and sends each upgrade data packet to the passive electronic lock based on the sending sequence in the target index information, so as to drive the passive electronic lock to carry out version upgrade based on each upgrade data packet, and obtain a version upgrade result. The target index information is index information representing the file sequence of each upgrade data packet.
Optionally, if the transmission of the upgrade data packet fails, the data processing device further performs breakpoint continuous transmission according to the target index information, so as to ensure a success rate of file transmission.
In this embodiment, the data processing device obtains the target update information of the passive electronic lock by responding to the update request for the passive electronic lock; reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet; and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result. When the passive electronic lock is remotely upgraded, the electric quantity information of the passive electronic lock is detected, data packets are divided according to the electric quantity information, and each data packet is sent to the passive electronic lock for upgrading, so that data loss caused by insufficient electric quantity of the passive electronic lock is avoided, and the upgrading efficiency of the passive electronic lock is improved.
As shown in fig. 3, fig. 3 is a schematic flow chart of an embodiment of breakpoint continuous transmission in the data processing method according to the embodiment of the present application, and specifically, in this embodiment, the data processing method further includes steps 301 to 303:
301. responding to a breakpoint continuous transmission request, and reading a target breakpoint data packet in the breakpoint continuous transmission request;
302. Determining continuous transmission data packets in the upgrading data packets according to the target index information and the target breakpoint data packets;
303. and continuously transmitting the continuous transmission data packet breakpoint to the passive electronic lock according to the transmission sequence in the target index information.
Based on the above embodiment, in this embodiment, when transmitting each upgrade data packet to the passive electronic lock, the data processing device further responds to a breakpoint resume request sent by the passive electronic lock, where the breakpoint resume request is a request for retransmitting the upgrade data packet, which indicates that the upgrade data packet is not successfully transmitted in the data transmission process.
After the data processing equipment acquires the breakpoint transmission request, the breakpoint transmission request is analyzed, and a target breakpoint data packet corresponding to the passive electronic lock is determined, wherein the target breakpoint data packet is an upgrade data packet which is abnormal in the passive electronic lock reception.
Specifically, after acquiring a breakpoint continuous transmission request, the data processing device analyzes the breakpoint continuous transmission request, determines a transmission breakpoint in the data transmission process, and determines a target breakpoint data packet corresponding to the transmission breakpoint according to target index information. And after determining the target breakpoint data packet, determining the continuous transmission data packet associated with the target breakpoint data packet according to the sending sequence in the target index information. The continuous transmission data packet is a target breakpoint data packet and a remaining untransmitted upgrade data packet after the target breakpoint data packet in the sending sequence.
Specifically, after the data processing device acquires the continuous transmission data packet, the continuous transmission data packet is continuously transmitted to the passive electronic lock at a breakpoint according to the transmission sequence in the target index information, so that the passive electronic lock can continue to remotely upgrade.
In this embodiment, the data processing device reads a target breakpoint data packet in a breakpoint transmission request by responding to the breakpoint transmission request, where the target breakpoint data packet is an upgrade data packet that is received by the passive electronic lock abnormally; determining continuous transmission data packets in the upgrading data packets according to the target index information and the target breakpoint data packets; and continuously transmitting the continuous transmission data packet breakpoint to the passive electronic lock according to the transmission sequence in the target index information. The breakpoint continuous transmission is carried out according to the index information, and the success rate of data transmission is improved.
As shown in fig. 4, fig. 4 is a flow chart of an embodiment of modifying an upgrade data packet in the data processing method according to the embodiment of the present application, and specifically, in this embodiment, the data processing method further includes steps 401 to 403:
401. counting version upgrading results of the passive electronic locks to obtain upgrading success rate of the target updating information;
402. If the upgrade success rate is smaller than a preset success rate threshold, repackaging the target update information according to the target transmission protocol to generate an update data packet;
403. and sending the update data packet to the passive electronic lock with the version update result of which the update fails, and driving the passive electronic lock to perform re-update to obtain an update result.
Based on the above embodiment, in this embodiment, after the data processing device obtains the version upgrade result of each passive electronic lock, the data processing device further counts the upgrade success rate of the target update information, and adjusts the data transmission amount of the target update information according to the upgrade success rate, so as to generate and send a new update data packet.
Specifically, the data processing device accesses a preset cloud to obtain version upgrading results corresponding to the target updating information in each passive electronic lock, counts the version upgrading results to obtain the upgrading success rate of the target updating information, and compares the obtained upgrading success rate with a preset success rate threshold to obtain a success rate comparison result.
Optionally, if the success rate comparison result is that the success rate of the upgrade is smaller than the success rate threshold, the data processing device determines that the data transmission amount of the target update information is larger, and the data processing device adjusts the transmission data amount corresponding to each candidate electric quantity interval so as to improve the success rate of data transmission.
Specifically, the data processing device obtains the transmission data amount corresponding to each candidate electric quantity interval, and performs reduction adjustment on the transmission data amount according to a preset adjustment policy, for example, in a specific embodiment, the preset adjustment policy sets the last adjacent candidate electric quantity interval as the transmission data amount of the current candidate electric quantity interval, where the transmission data amount of the last adjacent candidate electric quantity interval is smaller than the transmission data amount of the current candidate electric quantity interval. Optionally, if the candidate electric quantity interval is a minimum electric quantity interval, the data processing device sets a preset minimum transmission data amount as the transmission data amount of the minimum electric quantity interval.
Specifically, the data processing device repacks the target update information according to the target transmission protocol and the reduced transmission data amount after reducing the transmission data amount, and obtains an update data packet.
Specifically, after the data processing device acquires the update data packet, the data processing device sends the update data packet to the passive electronic lock with the version upgrading result of which the upgrading is failed, drives the passive electronic lock to carry out re-upgrading, obtains an upgrading and updating result, and uploads the upgrading and updating result to a preset cloud for storage.
Optionally, if the version upgrade result of the passive electronic lock is upgrade failure, the data processing device may also directly reduce and adjust the transmission data volume according to a preset adjustment policy, so as to generate an update data packet, and re-upgrade the data packet to obtain an upgrade update result.
In this embodiment, the data processing device obtains the upgrade success rate of the target update information by counting the version upgrade results of each passive electronic lock; if the upgrade success rate is smaller than a preset success rate threshold, repackaging the target update information according to the target transmission protocol to generate an update data packet; and sending the update data packet to the passive electronic lock with the version update result of which the update fails, and driving the passive electronic lock to perform re-update to obtain an update result. The upgrade data packet is adjusted according to the version upgrade result, and the upgrade success rate is improved.
In order to better implement the data processing method in the embodiment of the present application, based on the data processing method, the embodiment of the present application further provides a data processing device, as shown in fig. 5, fig. 5 is a schematic structural diagram of the data processing device provided in the embodiment of the present application, and specifically, the data processing device 500 includes:
An update reading module 501 configured to obtain target update information of a passive electronic lock in response to an update request for the passive electronic lock;
the data packaging module 502 is configured to read the electric quantity information of the passive electronic lock, and perform data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
the version updating module 503 is configured to send each upgrade data packet to the passive electronic lock, and drive the passive electronic lock to perform version upgrade based on each upgrade data packet, so as to obtain a version upgrade result.
In one possible implementation manner of this embodiment, the data processing apparatus responds to an upgrade request for a passive electronic lock, and obtains target update information of the passive electronic lock, including:
responding to an upgrading request aiming at the passive electronic lock, and acquiring updated version information of preset cloud transmission;
and if the update version number of the update version information is larger than the current version number of the passive electronic lock, setting the update version information as target update information.
In one possible implementation manner of this embodiment, the data processing apparatus performs data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information, to obtain each upgrade data packet, including:
Acquiring a target transmission protocol corresponding to the target update information and each candidate electric quantity interval in the target transmission protocol;
determining a target electric quantity interval in the candidate electric quantity intervals according to the electric quantity information, and acquiring transmission data quantity corresponding to the target electric quantity interval;
and driving the target transmission protocol and the transmission data volume to carry out data packaging on the target update information to obtain each upgrading data packet.
In one possible implementation manner of this embodiment, the data processing apparatus drives the target transmission protocol and the transmission data amount to perform data packaging on the target update information to obtain each upgrade data packet, where the data processing apparatus includes:
acquiring a data packet template associated with the target transmission protocol;
data packaging is carried out on the target updating information according to the transmission data quantity, and each target transmission data is obtained;
and carrying out data packaging on each target transmission data based on the data packet template to obtain each upgrading data packet.
In one possible implementation manner of this embodiment, a version upgrade is performed on a data processing device level data packet to obtain a version upgrade result, including:
arranging each upgrading data packet according to the target updating information to obtain target index information;
And transmitting each upgrading data packet to the passive electronic lock based on the transmission sequence in the target index information, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
In one possible implementation manner of this embodiment, the data processing apparatus sends each upgrade data packet to the passive electronic lock based on the sending sequence in the target index information, drives the passive electronic lock to perform version upgrade based on each upgrade data packet, and after obtaining a version upgrade result, further includes:
responding to a breakpoint resume request, and reading a target breakpoint data packet in the breakpoint resume request, wherein the target breakpoint data packet is an upgrade data packet which is abnormal in the passive electronic lock reception;
determining continuous transmission data packets in the upgrading data packets according to the target index information and the target breakpoint data packets;
and continuously transmitting the continuous transmission data packet breakpoint to the passive electronic lock according to the transmission sequence in the target index information.
In one possible implementation manner of this embodiment, the data processing apparatus sends each upgrade data packet to the passive electronic lock based on the sending sequence in the target index information, drives the passive electronic lock to perform version upgrade based on each upgrade data packet, and after obtaining a version upgrade result, further includes:
Counting version upgrading results of the passive electronic locks to obtain upgrading success rate of the target updating information;
if the upgrade success rate is smaller than a preset success rate threshold, repackaging the target update information according to the target transmission protocol to generate an update data packet;
and sending the update data packet to the passive electronic lock with the version update result of which the update fails, and driving the passive electronic lock to perform re-update to obtain an update result.
In this embodiment, the data processing apparatus obtains the target update information of the passive electronic lock by responding to the update request for the passive electronic lock; reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet; and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result. When the passive electronic lock is remotely upgraded, the electric quantity information of the passive electronic lock is detected, data packets are divided according to the electric quantity information, and each data packet is sent to the passive electronic lock for upgrading, so that data loss caused by insufficient electric quantity of the passive electronic lock is avoided, and the upgrading efficiency of the passive electronic lock is improved.
The embodiment of the application also provides a data processing device, as shown in fig. 6, and fig. 6 is a schematic structural diagram of an embodiment of the data processing device provided in the embodiment of the application.
The data processing device integrates any one of the data processing devices provided by the embodiment of the application, and the data processing device comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to perform the steps of the data processing method described in any of the data processing method embodiments above.
Specifically, the present application relates to a method for manufacturing a semiconductor device. The data processing device may include one or more processing cores 'processors 601, one or more computer-readable storage media's memory 602, power supply 603, and input unit 604, among other components. It will be appreciated by those skilled in the art that the data processing apparatus structure shown in fig. 6 does not constitute a limitation of the data processing apparatus and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
processor 601 is the control center of the data processing apparatus and utilizes various interfaces and lines to connect various portions of the overall data processing apparatus, perform various functions of the data processing apparatus and process data by running or executing software programs and/or modules stored in memory 602, and invoking data stored in memory 602, thereby performing overall monitoring of the data processing apparatus. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 may execute various functional applications and data processing by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the data processing apparatus, or the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 601.
The data processing device further comprises a power supply 603 for supplying power to the various components, preferably the power supply 603 may be logically connected to the processor 601 via a power management system, so that functions of managing charging, discharging, and power consumption management are achieved via the power management system. The power supply 603 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The data processing device may further comprise an input unit 604, which input unit 604 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the data processing apparatus may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 601 in the data processing apparatus loads executable files corresponding to processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 executes the application programs stored in the memory 602, so as to implement various functions as follows:
responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
To this end, embodiments of the present invention provide a computer-readable storage medium, which may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like. On which a computer program is stored, which computer program is loaded by a processor for performing the steps of any of the data processing methods provided by the embodiments of the present invention. For example, the loading of the computer program by the processor may perform the steps of:
responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
and sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and the portions of one embodiment that are not described in detail in the foregoing embodiments may be referred to in the foregoing detailed description of other embodiments, which are not described herein again.
In the implementation, each unit or structure may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit or structure may be referred to the foregoing method embodiments and will not be repeated herein.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The foregoing has outlined a detailed description of a data processing method according to embodiments of the present application, and specific embodiments have been presented herein to illustrate the principles and implementations of the present application, the above description of the embodiments being only for the purpose of aiding in the understanding of the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (10)

1. A data processing method, characterized in that the data processing method comprises:
responding to an upgrading request aiming at a passive electronic lock, and acquiring target updating information of the passive electronic lock;
reading electric quantity information of the passive electronic lock, and carrying out data packaging on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrade data packet;
And sending each upgrading data packet to the passive electronic lock, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
2. The data processing method of claim 1, wherein the obtaining the target update information of the passive electronic lock in response to the upgrade request for the passive electronic lock comprises:
responding to an upgrading request aiming at the passive electronic lock, and acquiring updated version information of preset cloud transmission;
and if the update version number of the update version information is larger than the current version number of the passive electronic lock, setting the update version information as target update information.
3. The data processing method according to claim 1, wherein the target transmission protocol based on the power information and the target update information performs data packing on the target update information to obtain each upgrade data packet, and the method includes:
acquiring a target transmission protocol corresponding to the target update information and each candidate electric quantity interval in the target transmission protocol;
determining a target electric quantity interval in the candidate electric quantity intervals according to the electric quantity information, and acquiring transmission data quantity corresponding to the target electric quantity interval;
And driving the target transmission protocol and the transmission data volume to carry out data packaging on the target update information to obtain each upgrading data packet.
4. A data processing method according to claim 3, wherein said driving said target transmission protocol and said transmission data amount data-packets said target update information to obtain respective upgrade data packets, comprises:
acquiring a data packet template associated with the target transmission protocol;
data packaging is carried out on the target updating information according to the transmission data quantity, and each target transmission data is obtained;
and carrying out data packaging on each target transmission data based on the data packet template to obtain each upgrading data packet.
5. The method of any one of claims 1-4, wherein the sending each upgrade data packet to the passive electronic lock, driving the passive electronic lock to perform a version upgrade based on each upgrade data packet, to obtain a version upgrade result, includes:
arranging each upgrading data packet according to the target updating information to obtain target index information;
and transmitting each upgrading data packet to the passive electronic lock based on the transmission sequence in the target index information, and driving the passive electronic lock to carry out version upgrading based on each upgrading data packet to obtain a version upgrading result.
6. The method of claim 5, wherein the sending each upgrade data packet to the passive electronic lock based on the sending order in the target index information, driving the passive electronic lock to perform version upgrade based on each upgrade data packet, and obtaining a version upgrade result, further comprises:
responding to a breakpoint resume request, and reading a target breakpoint data packet in the breakpoint resume request, wherein the target breakpoint data packet is an upgrade data packet which is abnormal in the passive electronic lock reception;
determining continuous transmission data packets in the upgrading data packets according to the target index information and the target breakpoint data packets;
and continuously transmitting the continuous transmission data packet breakpoint to the passive electronic lock according to the transmission sequence in the target index information.
7. The method of claim 1, wherein the sending each upgrade data packet to the passive electronic lock based on the sending order in the target index information, driving the passive electronic lock to perform version upgrade based on each upgrade data packet, and obtaining a version upgrade result, further comprises:
counting version upgrading results of the passive electronic locks to obtain upgrading success rate of the target updating information;
If the upgrade success rate is smaller than a preset success rate threshold, repackaging the target update information according to the target transmission protocol to generate an update data packet;
and sending the update data packet to the passive electronic lock with the version update result of which the update fails, and driving the passive electronic lock to perform re-update to obtain an update result.
8. A data processing apparatus, characterized in that the data processing apparatus comprises:
the updating and reading module is configured to respond to an updating request aiming at the passive electronic lock and acquire target updating information of the passive electronic lock;
the data packaging module is configured to read the electric quantity information of the passive electronic lock, and data packaging is carried out on the target update information based on the electric quantity information and a target transmission protocol of the target update information to obtain each upgrading data packet;
the version updating module is configured to send each upgrading data packet to the passive electronic lock, and drive the passive electronic lock to carry out version upgrading based on each upgrading data packet so as to obtain a version upgrading result.
9. A data processing apparatus, characterized in that the data processing apparatus comprises:
One or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and are configured to be executed by the processor to implement the steps of the data processing method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, the computer program being loaded by a processor to perform the steps of the data processing method of any one of claims 1 to 7.
CN202311010501.3A 2023-08-10 2023-08-10 Data processing method, device, equipment and storage medium Pending CN116954672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311010501.3A CN116954672A (en) 2023-08-10 2023-08-10 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311010501.3A CN116954672A (en) 2023-08-10 2023-08-10 Data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116954672A true CN116954672A (en) 2023-10-27

Family

ID=88460314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311010501.3A Pending CN116954672A (en) 2023-08-10 2023-08-10 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116954672A (en)

Similar Documents

Publication Publication Date Title
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
US9606957B2 (en) Electronic device and method of linking a task thereof
CN111596967A (en) Application function configuration method, terminal device, server and storage medium
CN110650503B (en) Network access method, device, system and computer readable storage medium
US20230141055A1 (en) Edge computing system and method for recommending connection device
EP3682619B1 (en) Service layer message templates in a communications network
CN115052041B (en) Channel identifier allocation method, device, equipment and storage medium
CN112995239B (en) Data processing method and device
CN112328274A (en) Software upgrading control method and system, server and intelligent terminal equipment
CN116954672A (en) Data processing method, device, equipment and storage medium
CN112615835B (en) Charging pile multi-communication protocol support method and storage medium
US10701555B1 (en) System and method for control policy retention
CN114651236A (en) Resource deleting method, device, equipment and storage medium
CN114726918B (en) Internet of things cross-network communication method, device, equipment and storage medium
CN113996058B (en) Information processing method, apparatus, electronic device, and computer-readable storage medium
CN117007300A (en) Method and device for testing passive electronic lock, electronic equipment and storage medium
CN117412277A (en) Operation execution method, device, electronic equipment and computer storage medium
KR102468193B1 (en) Method and apparatus for monitoring ip-cam
CN117908938B (en) Batch equipment upgrading method, device, medium and equipment
CN114252785B (en) Unmanned aerial vehicle control method, electronic equipment and storage medium
CN116901775B (en) Charging gun detection method and related equipment
CN108881107B (en) Distributed resource allocation method, device and system
CN117408666A (en) Distribution network abnormality investigation method, device, equipment and storage medium
CN117411761A (en) Message processing method, device, computer equipment and computer readable storage medium
CN116959150A (en) Device control method, device, passive electronic lock and storage medium

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