Self-service vending cabinet data transmission method and device, self-service vending cabinet and electronic equipment
By segmenting the sales monitoring data and implementing a breakpoint resume mechanism, the system ensures that each data packet is successfully transmitted when the network is normal. The integrity of the data is verified by an integrity check code, which solves the problem of data loss caused by poor network conditions in unmanned vending machines and achieves reliable data transmission and business continuity.
Patent Information
- Application Number
- CN202511760778.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-11-27
AI Technical Summary
Unmanned vending machines are prone to data interruption and loss in the event of poor network conditions, making it impossible to trace abnormal consumption events and causing economic losses.
The system employs a fragmentation and breakpoint resume mechanism to ensure that each fragmented data packet is successfully transmitted when the network is functioning normally, and verifies data integrity through an integrity check code.
This prevented the complete loss of sales monitoring data, ensured the reliability of data transmission and business continuity, and reduced the risk of economic loss.
Smart Images

Figure CN123184864A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data transmission, and in particular relates to a data transmission method, apparatus, unmanned vending machine, and electronic device for vending machines. Background Technology
[0002] With the development of the Internet of Things and mobile payment technologies, unmanned vending machines have been widely used in office buildings, communities, transportation hubs, and other scenarios. These machines can send monitoring data recording user transactions to a cloud server for storage.
[0003] However, due to frequent network fluctuations in unmanned vending machine deployment scenarios (such as shopping malls and communities), once the transmission is interrupted due to poor network conditions, the unuploaded monitoring data is lost and cannot be recovered, making it impossible to trace abnormal consumption events and causing economic losses. Summary of the Invention
[0004] This application aims to at least address one of the technical problems existing in the prior art. To this end, this application proposes a data transmission method, apparatus, vending machine, and electronic device for unmanned vending machines, avoiding economic losses caused by the overall loss of vending monitoring data during transmission.
[0005] Firstly, this application provides a data transmission method for unmanned vending machines, including: Obtain the encrypted sales monitoring data; The sales monitoring data is segmented to obtain multiple segmented data packets; Once the network is confirmed to be functioning correctly, upload the first data packet fragment. Once it is confirmed that the previous data packet was uploaded successfully and the network is functioning normally, the next data packet is uploaded.
[0006] According to the data transmission method for unmanned vending machines in this application, encrypted vending monitoring data is obtained; the vending monitoring data is segmented to obtain multiple segmented data packets; the first segmented data packet is uploaded when the network is confirmed to be normal; and the next segmented data packet is uploaded only after confirming that the previous segmented data packet was successfully uploaded and that the network is normal. In this way, the vending monitoring data is segmented, and the next segmented data packet is uploaded only after confirming that the previous segmented data packet was successfully uploaded and that the network is normal. The network condition is checked before the transmission of each segmented data packet, ensuring the successful transmission of each segmented data packet and avoiding economic losses caused by the overall loss of vending monitoring data during transmission.
[0007] According to one embodiment of this application, after determining that the previous data packet was successfully uploaded and that the network is functioning normally, the method includes the following steps after uploading the next data packet: Once the last data packet has been successfully uploaded, an integrity check code is sent.
[0008] According to one embodiment of this application, the integrity check code is used to trigger the following verification process: Upon receiving an integrity check code, all received fragmented data packets are synthesized based on the target container, and a synthesized check code is generated based on the synthesis result. Match the composite check code and the integrity check code; If the matching result indicates a successful match, confirm that all sales monitoring data has been received.
[0009] According to one embodiment of this application, sales monitoring data is segmented to obtain multiple segmented data packets, including: The sales monitoring data is segmented to obtain multiple segments, and an identifier for each segment is generated based on the current device information. For each data segment, the data segment and its identifier are encapsulated into a data segment packet.
[0010] According to one embodiment of this application, obtaining encrypted sales monitoring data includes: Obtain sales monitoring data for target users; Based on the target occlusion algorithm, the facial features of target users in the sales monitoring data are encrypted. If each encrypted facial feature meets the encryption standard, output the encrypted sales monitoring data.
[0011] According to one embodiment of this application, assuming that each encrypted facial feature conforms to the encryption standard, encrypted sales monitoring data is output, including: For each encrypted facial feature, if the occlusion rate of the facial feature is greater than or equal to the occlusion degree threshold, the facial feature is determined to meet the encryption standard.
[0012] Secondly, this application provides a data transmission device for an unmanned vending machine, comprising: The encryption module is used to obtain the sales monitoring data after encryption processing; The segmentation module is used to segment sales monitoring data into fragments and obtain multiple fragment data packets; The transmission module is used to upload the first fragmented data packet after confirming that the network is functioning normally; The transmission module is also used to upload the next data packet after confirming that the previous data packet was uploaded successfully and that the network is functioning normally.
[0013] Thirdly, this application provides an unmanned vending machine, which includes the unmanned vending machine data transmission device as described in the second aspect above.
[0014] Fourthly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the data transmission method for the unmanned vending machine described in the first aspect.
[0015] Fifthly, this application provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described unmanned vending machine data transmission method of the first aspect.
[0016] Additional aspects and advantages of this application 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 this application. Attached Figure Description
[0017] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is one of the flowcharts illustrating the data transmission method for unmanned vending machines provided in this application embodiment; Figure 2 This is a second schematic flowchart of the data transmission method for unmanned vending machines provided in the embodiments of this application; Figure 3 This is the third flowchart illustrating the data transmission method for unmanned vending machines provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of the unmanned vending machine data transmission device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0019] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0020] The data transmission method, apparatus, unmanned vending machine, electronic device, and storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0021] The data transmission method for unmanned vending machines can be applied to a terminal, specifically executed by hardware or software within the terminal. This terminal includes, but is not limited to, portable communication devices such as mobile phones or tablets with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads). It should also be understood that, in some embodiments, the terminal may not be a portable communication device, but rather a desktop computer with touch-sensitive surfaces (e.g., touchscreen displays and / or touchpads).
[0022] The following embodiments describe a terminal including a display and a touch-sensitive surface. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and joystick.
[0023] The data transmission method for unmanned vending machines provided in this application embodiment can be executed by an electronic device or a functional module or entity in an electronic device that can implement the data transmission method for unmanned vending machines. The electronic devices mentioned in this application embodiment include, but are not limited to, mobile phones, tablets, computers, cameras, and wearable devices. The data transmission method for unmanned vending machines provided in this application embodiment will be described below using an electronic device as the execution subject.
[0024] like Figure 1 As shown, the data transmission method of the unmanned vending machine includes steps 110, 120, 130 and 140.
[0025] Step 110: Obtain the sales monitoring data after encryption.
[0026] In practice, sales monitoring data can be sales monitoring data of the current user making a purchase on the unmanned vending machine, or sales monitoring data of several users making purchases on the unmanned vending machine based on a preset period.
[0027] In practice, sales monitoring data can be either video or images; this application does not impose any specific restrictions on this.
[0028] In practice, unmanned vending machines can acquire sales monitoring data from surveillance equipment. This surveillance equipment can be a security camera or any device with video and image capture capabilities. The surveillance equipment can be installed on the top, side, or any theoretically feasible location of the unmanned vending machine.
[0029] In some embodiments, after acquiring vending monitoring data, the unmanned vending device can encrypt the data. Encryption may be applied to sensitive information within the vending monitoring data, such as facial features, bank card information, and receipts.
[0030] In some embodiments, after obtaining the encrypted sales monitoring data, the encryption effect can be verified. If the verification fails, the sales monitoring data can be re-encrypted.
[0031] Step 120: Perform fragmentation processing on the sales monitoring data to obtain multiple fragmented data packets.
[0032] In some embodiments, after obtaining encrypted sales monitoring data, the unmanned vending device can perform fragment processing on the encrypted sales monitoring data to obtain multiple fragment data packets.
[0033] In some embodiments, the data volume of each data packet can be preset, and the sales monitoring data can be segmented based on the data volume to obtain multiple data packets.
[0034] In some embodiments, the number of data packets can be preset, and the unmanned vending device can divide the encrypted vending monitoring data equally based on the number of data packets to obtain multiple data packets.
[0035] In some embodiments, after acquiring multiple fragmented data packets, the unmanned vending device can generate an integrity check code based on its own device information and the time division of the fragmented data packets.
[0036] Step 130: If the network is confirmed to be normal, upload the first fragment data packet.
[0037] In some embodiments, the vending device may determine whether the network is functioning correctly before sending each data packet fragment. If the network is functioning correctly, a data packet fragment is uploaded.
[0038] In practice, the network can be a transmission network between the vending machine and the server. The server can be a server in an edge device deployed near the vending machine, or a cloud server; this application does not impose specific limitations on this.
[0039] In some embodiments, network normality can be determined if the TCP connection timeout is less than or equal to a connection time threshold. The connection time threshold can be a preset value. For example, the connection time threshold can be determined based on historical connection times between the vending machine and the server.
[0040] In some embodiments, before transmitting the fragmented data packet, the vending device may record the fragment data identifier of the fragmented data packet if the network is abnormal, and then upload the fragmented data packet based on the recorded fragment data identifier if the network is normal.
[0041] Step 140: After confirming that the previous data packet was uploaded successfully and that the network is normal, upload the next data packet.
[0042] In some embodiments, after uploading the previous data packet, the unmanned vending device can receive transmission feedback information for the previous data packet, which is used to indicate whether the previous data packet was successfully uploaded.
[0043] In some embodiments, if a transmission feedback message indicates that a previous data packet failed to upload, the vending device re-uploads the data packet that the transmission feedback message indicated failed. If the number of times the vending device re-uploads the data packet that the transmission feedback message indicated failed equals a retransmission count threshold, the transmission method is changed, and the data packet is re-transmitted again until a transmission feedback message indicating that the data packet was successfully uploaded is received.
[0044] In some embodiments, if the transmission feedback indicates that the previous data packet was uploaded successfully, the vending device can re-determine whether the network is functioning correctly. If the previous data packet was successfully uploaded and the network is confirmed to be functioning correctly, the next data packet is uploaded. This process continues until the last data packet is uploaded.
[0045] In some embodiments, after uploading the last fragment data packet, the vending device may request the server to confirm whether all fragment data packets have been received completely.
[0046] According to the data transmission method for unmanned vending machines in this application, encrypted vending monitoring data is obtained; the vending monitoring data is segmented to obtain multiple segmented data packets; the first segmented data packet is uploaded when the network is confirmed to be normal; and the next segmented data packet is uploaded when the previous segmented data packet has been successfully uploaded and the network is confirmed to be normal. In this way, the vending monitoring data is segmented, and the next segmented data packet is uploaded only when the previous segmented data packet has been successfully uploaded and the network is confirmed to be normal. The network condition is checked before the transmission of each segmented data packet to ensure the successful transmission of each segmented data packet, avoiding economic losses caused by the overall loss of vending monitoring data during transmission.
[0047] In some embodiments, after determining that the previous data packet was uploaded successfully and that the network is normal, the next data packet is uploaded, and then, after determining that the last data packet was uploaded successfully, an integrity check code is sent.
[0048] In some embodiments, a "multi-segment upload + breakpoint resume" mechanism is designed to automatically detect the transmission status of each segment data packet, ensuring that the encrypted sales monitoring data is completely synchronized and supporting subsequent business continuity.
[0049] In some embodiments, after uploading the last data packet and receiving transmission feedback information for the last data packet, if the transmission feedback information for the last data packet indicates that the last data packet was successfully uploaded, the vending device sends an integrity check code to the server. The integrity check code indicates that the vending device has uploaded all data packets of vending monitoring data and instructs the server to confirm whether all data packets have been received completely.
[0050] According to the data transmission method for unmanned vending machines in this application, encrypted vending monitoring data is obtained; the vending monitoring data is segmented to obtain multiple segmented data packets; the first segmented data packet is uploaded when the network is confirmed to be normal; the next segmented data packet is uploaded when the previous segmented data packet has been successfully uploaded and the network is confirmed to be normal; and an integrity verification code is sent when the last segmented data packet has been successfully uploaded. In this way, the vending monitoring data is segmented, and the next segmented data packet is uploaded only when the previous segmented data packet has been successfully uploaded and the network is confirmed to be normal. The network condition is checked before each segmented data packet is transmitted, ensuring the successful transmission of each segmented data packet and avoiding economic losses caused by the overall loss of vending monitoring data during transmission.
[0051] In some embodiments, the integrity check code is used to trigger the following verification process: upon receiving the integrity check code, based on the target container, all received fragmented data packets are synthesized, and a synthesized check code is generated based on the synthesis result; the synthesized check code and the integrity check code are matched; if the matching result indicates a successful match, it is determined that the sales monitoring data has been received completely.
[0052] In some embodiments, when the server obtains the integrity checksum, it can reassemble all received fragmented data packets based on the target container. The target container can be deployed on the server.
[0053] In actual execution, the target container can be a Docker or LXC container. The target container can be a container with FFmpeg tools and its dependencies (such as libx264) installed.
[0054] In some embodiments, the server can synthesize the encrypted processing data, shopping transaction data, and time included in all received fragmented data packets based on the target container to obtain a synthesized result. The synthesized result can be a video, for example, an MP4 format video.
[0055] In practice, the synthesized checksum can be in SHA256 format.
[0056] In some embodiments, after generating the composite checksum, the server can match the composite checksum with the received integrity checksum.
[0057] In some embodiments, the server may determine the similarity between the synthetic check code and the integrity check code to match the synthetic check code and the integrity check code. For example, the server may determine the cosine similarity between the synthetic check code and the integrity check code.
[0058] In some embodiments, if the matching result indicates a matching failure, fragmented data packets containing missing sales monitoring data are identified.
[0059] According to the data transmission method for unmanned vending machines in this application, FFmpeg is deployed on the server using containerization technology. By utilizing the "environmental isolation, lightweight, and portability" characteristics of the target container, it can be adapted to unmanned vending machines with different hardware or systems, avoiding excessive resource consumption by the synthesis task and ensuring the response speed of core business.
[0060] In some embodiments, the sales monitoring data is segmented to obtain multiple segments, and an identifier for each segment is generated based on the current device information; for each segment, the segment data and the segment data identifier are encapsulated into a segment data packet.
[0061] In some embodiments, where the sales monitoring data includes images, the images in the sales monitoring data are divided into fragments based on a frame count threshold. For example, the images in the sales monitoring data are divided into fragments of 100 frames each.
[0062] In some embodiments, where the sales monitoring data includes video, the video in the sales monitoring data is divided into segments based on the segment duration. For example, the video in the sales monitoring data is divided into segments of 5 seconds each.
[0063] In actual implementation, the current device information can be the device information of the unmanned vending machine, such as the device ID.
[0064] In some embodiments, the unmanned vending device can generate a segment data identifier for each segment of data based on the current device information and the time division of the segmented data, such as "Dev001_20240520_001".
[0065] According to the data transmission method for unmanned vending machines in this application, encrypted vending monitoring data is obtained; the vending monitoring data is segmented to obtain multiple segments, and an identifier for each segment is generated based on the current device information; for each segment, the segment data and the segment identifier are encapsulated into a segmented data packet; if the network is confirmed to be normal, the first segmented data packet is uploaded; if the previous segmented data packet is successfully uploaded and the network is confirmed to be normal, the next segmented data packet is uploaded; if the last segmented data packet is successfully uploaded, an integrity verification code is sent. In this way, the vending monitoring data is segmented, and the next segmented data packet is uploaded only if the previous segmented data packet is successfully uploaded and the network is confirmed to be normal. The network condition is checked before each segmented data packet is transmitted, ensuring the successful transmission of each segmented data packet and avoiding economic losses caused by the overall loss of vending monitoring data during transmission.
[0066] In some embodiments, sales monitoring data for a target user is acquired; based on a target occlusion algorithm, the facial features of the target user in the sales monitoring data are encrypted; and if each encrypted facial feature meets the encryption standard, the encrypted sales monitoring data is output.
[0067] In some embodiments, when the target user is successfully authenticated and opens the vending machine, the vending machine detects sales monitoring data for the target user based on the monitoring equipment.
[0068] In some embodiments, after acquiring vending monitoring data, the unmanned vending device can perform encryption processing on the facial features of the target user in each frame of the vending monitoring data based on a target occlusion algorithm. The target occlusion algorithm can be a Gaussian blur algorithm or an irreversible desensitization algorithm, or any theoretically feasible algorithm.
[0069] In some embodiments, the unmanned vending device can determine whether each encrypted facial feature conforms to the encryption standard after performing encryption processing on the facial features of the target user in the vending monitoring data.
[0070] According to the data transmission method of the unmanned vending machine according to the embodiments of this application, the local facial feature encryption processing of the unmanned vending device is used to avoid the transmission of original sensitive facial data, thereby meeting the privacy protection regulations from the source of data processing and reducing the risk of leakage.
[0071] In some embodiments, for each encrypted facial feature, if the occlusion rate of the facial feature is greater than or equal to the occlusion degree threshold, it is determined that the facial feature conforms to the encryption standard.
[0072] In actual implementation, the occlusion threshold can be a preset value. For example, the occlusion threshold can be 95%.
[0073] To better understand the data transmission method for unmanned vending machines provided in the embodiments of this application, further explanation is provided below. It should be understood that the following discussion is merely exemplary.
[0074] This application provides a data transmission method for unmanned vending machines. The specific steps are as follows: Figure 2 As shown: Step 210: Obtain sales monitoring data for the target users.
[0075] In some embodiments, when the target user is successfully authenticated and opens the vending machine, the vending machine detects sales monitoring data for the target user based on the monitoring equipment.
[0076] In practice, sales monitoring data can be sales monitoring data of the current user making a purchase on the unmanned vending machine, or sales monitoring data of several users making purchases on the unmanned vending machine based on a preset period.
[0077] In practice, sales monitoring data can be either video or images; this application does not impose any specific restrictions on this.
[0078] In practice, unmanned vending machines can acquire sales monitoring data from surveillance equipment. This surveillance equipment can be a security camera or any device with video and image capture capabilities. The surveillance equipment can be installed on the top, side, or any theoretically feasible location of the unmanned vending machine.
[0079] Step 220: Based on the target occlusion algorithm, perform encryption processing on the facial features of the target user in the sales monitoring data.
[0080] In some embodiments, after acquiring vending monitoring data, the unmanned vending device can perform encryption processing on the facial features of the target user in each frame of the vending monitoring data based on a target occlusion algorithm. The target occlusion algorithm can be a Gaussian blur algorithm or an irreversible desensitization algorithm, or any theoretically feasible algorithm.
[0081] In some embodiments, the unmanned vending device can determine whether each encrypted facial feature conforms to the encryption standard after performing encryption processing on the facial features of the target user in the vending monitoring data.
[0082] In some embodiments, for each encrypted facial feature, if the occlusion rate of the facial feature is greater than or equal to the occlusion degree threshold, it is determined that the facial feature conforms to the encryption standard.
[0083] In actual implementation, the occlusion threshold can be a preset value. For example, the occlusion threshold can be 95%.
[0084] By encrypting facial features locally on unmanned vending machines, the transmission of raw, sensitive facial data is avoided, thus meeting privacy protection regulations from the source of data processing and reducing the risk of leakage.
[0085] Step 230: Perform segmentation processing on the sales monitoring data, obtain multiple segments of data, and generate an identifier for each segment of data based on the current device information.
[0086] In some embodiments, where the sales monitoring data includes images, the images in the sales monitoring data are divided into fragments based on a frame count threshold. For example, the images in the sales monitoring data are divided into fragments of 100 frames each.
[0087] In some embodiments, where the sales monitoring data includes video, the video in the sales monitoring data is divided into segments based on the segment duration. For example, the video in the sales monitoring data is divided into segments of 5 seconds each.
[0088] In actual implementation, the current device information can be the device information of the unmanned vending machine, such as the device ID.
[0089] In some embodiments, the unmanned vending device can generate a segment data identifier for each segment of data based on the current device information and the time division of the segmented data, such as "Dev001_20240520_001".
[0090] Step 240: For each data segment, encapsulate the data segment and its identifier into a data segment packet.
[0091] Step 250: If the network is confirmed to be normal, upload the fragmented data packets.
[0092] In some embodiments, the vending device may determine whether the network is functioning correctly before sending each data packet fragment. If the network is functioning correctly, a data packet fragment is uploaded.
[0093] In practice, the network can be a transmission network between the vending machine and the server. The server can be a server in an edge device deployed near the vending machine, or a cloud server; this application does not impose specific limitations on this.
[0094] In some embodiments, network normality can be determined if the TCP connection timeout is less than or equal to a connection time threshold. The connection time threshold can be a preset value. For example, the connection time threshold can be determined based on historical connection times between the vending machine and the server.
[0095] In some embodiments, before transmitting the fragmented data packet, the vending device may record the fragment data identifier of the fragmented data packet if the network is abnormal, and then upload the fragmented data packet based on the recorded fragment data identifier if the network is normal.
[0096] In some embodiments, the next data packet is uploaded after it is determined that the previous data packet was uploaded successfully and that the network is functioning normally.
[0097] In some embodiments, such as Figure 3 As shown, after uploading the previous data packet, the unmanned vending device can receive transmission feedback information for the previous data packet. The transmission feedback information is used to indicate whether the previous data packet was successfully uploaded.
[0098] In some embodiments, if a transmission feedback message indicates that a previous data packet failed to upload, the vending device re-uploads the data packet that the transmission feedback message indicated failed. If the number of times the vending device re-uploads the data packet that the transmission feedback message indicated failed equals a retransmission count threshold, the transmission method is changed, and the data packet is re-transmitted again until a transmission feedback message indicating that the data packet was successfully uploaded is received.
[0099] In some embodiments, if the transmission feedback information indicates that the previous fragment data packet was successfully uploaded, the vending machine can repeat steps 240 and 250 until the fragment data packet of the last fragment data is uploaded.
[0100] Step 260: After confirming that the last data packet has been successfully uploaded, send an integrity verification code.
[0101] In some embodiments, a "multi-segment upload + breakpoint resume" mechanism is designed to automatically detect the transmission status of each segment data packet, ensuring that the encrypted sales monitoring data is completely synchronized and supporting subsequent business continuity.
[0102] In some embodiments, after uploading the last data packet and receiving transmission feedback information for the last data packet, if the transmission feedback information for the last data packet indicates that the last data packet was successfully uploaded, the vending device sends an integrity check code to the server. The integrity check code indicates that the vending device has uploaded all data packets of vending monitoring data and instructs the server to confirm whether all data packets have been received completely.
[0103] Step 270: Upon receiving the integrity check code, the server synthesizes all received fragmented data packets based on the target container and generates a synthesized check code based on the synthesis result; it matches the synthesized check code with the integrity check code; if the matching result indicates a successful match, it confirms that the sales monitoring data has been received completely.
[0104] In some embodiments, when the server obtains the integrity checksum, it can reassemble all received fragmented data packets based on the target container. The target container can be deployed on the server.
[0105] In actual execution, the target container can be a Docker or LXC container. The target container can be a container with FFmpeg tools and its dependencies (such as libx264) installed.
[0106] In some embodiments, the server can synthesize the encrypted processing data, shopping transaction data, and time included in all received fragmented data packets based on the target container to obtain a synthesized result. The synthesized result can be a video, for example, an MP4 format video.
[0107] In practice, the synthesized checksum can be in SHA256 format.
[0108] In some embodiments, after generating the composite checksum, the server can match the composite checksum with the received integrity checksum.
[0109] In some embodiments, the server may determine the similarity between the synthetic check code and the integrity check code to match the synthetic check code and the integrity check code. For example, the server may determine the cosine similarity between the synthetic check code and the integrity check code.
[0110] In some embodiments, if the matching result indicates a matching failure, fragmented data packets containing missing sales monitoring data are identified.
[0111] This application also provides a data transmission device for unmanned vending machines.
[0112] like Figure 4 As shown, the unmanned vending machine data transmission device 400 includes: an encryption module cabinet 410, a partitioning module 420, and a transmission module 430.
[0113] Encryption module 410 is used to acquire the sales monitoring data obtained after encryption processing; The segmentation module 420 is used to segment the sales monitoring data and obtain multiple segmented data packets; Transmission module 430 is used to upload the first fragmented data packet when the network is confirmed to be normal; The transmission module 430 is also used to upload the next data packet after confirming that the previous data packet was uploaded successfully and that the network is normal.
[0114] According to the unmanned vending machine data transmission device of this application, the following steps are taken: First, encrypted vending monitoring data is acquired. This data is then segmented to obtain multiple segmented data packets. If the network is confirmed to be functioning correctly, the first segmented data packet is uploaded. If the previous segmented data packet is successfully uploaded and the network is confirmed to be functioning correctly, the next segmented data packet is uploaded. This segmentation of the vending monitoring data, ensuring successful transmission of each segmented data packet before transmission, and verifying network conditions before transmission, prevents economic losses caused by the overall loss of the vending monitoring data during transmission.
[0115] In some embodiments, the unmanned vending machine data transmission device 400 further includes: The sending module is used to send an integrity check code after confirming that the last data packet has been successfully uploaded.
[0116] In some embodiments, the integrity check code is used to trigger the following verification process: Upon receiving an integrity check code, all received fragmented data packets are synthesized based on the target container, and a synthesized check code is generated based on the synthesis result. Match the composite check code and the integrity check code; If the matching result indicates a successful match, confirm that all sales monitoring data has been received.
[0117] In some embodiments, the partitioning module 420 includes: The segmentation unit is used to segment the sales monitoring data, obtain multiple segments of data, and generate an identifier for each segment of data based on the current device information. The encapsulation unit is used to encapsulate each data fragment and its identifier into a data fragment packet.
[0118] In some embodiments, the encryption module 410 includes: The acquisition unit is used to acquire sales monitoring data for the target user. The encryption unit is used to perform encryption processing on the facial features of target users in the sales monitoring data based on the target occlusion algorithm; The verification unit is used to output encrypted sales monitoring data if each encrypted facial feature meets the encryption standard.
[0119] In some embodiments, the verification unit is configured to: for each encrypted facial feature, if the occlusion rate of the facial feature is greater than or equal to the occlusion degree threshold, determine that the facial features all conform to the encryption standard.
[0120] In some embodiments, the unmanned vending machine data transmission device 400 is used to implement the above. Figures 1 to 3 Data transmission method for any unmanned vending machine.
[0121] This application also provides an unmanned vending machine.
[0122] In some embodiments, the vending machine includes the vending machine data transmission device in any of the above embodiments.
[0123] The data transmission device for the unmanned vending machine in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific type of device.
[0124] The electronic device in this application embodiment can be a device with an operating system. The operating system can be a Microsoft (Windows) operating system, an Android operating system, an iOS operating system, or other possible operating systems. This application embodiment does not specifically limit the specific operating system.
[0125] In some embodiments, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, it implements the various processes of the above-described unmanned vending machine data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0126] It should be noted that the computer equipment in this application embodiment includes the mobile electronic equipment and non-mobile electronic equipment described above.
[0127] This application also provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described unmanned vending machine data transmission method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0128] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0129] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described data transmission method for unmanned vending machines.
[0130] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0131] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described unmanned vending machine data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0132] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0133] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0134] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0135] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0136] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0137] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A data transmission method for unmanned vending machines, characterized in that, include: Obtain the encrypted sales monitoring data; The sales monitoring data is segmented to obtain multiple segmented data packets; If the network is confirmed to be functioning correctly, upload the first fragmented data packet; If the previous fragmented data packet is successfully uploaded and the network is confirmed to be normal, then the next fragmented data packet is uploaded.
2. The data transmission method for unmanned vending machines according to claim 1, characterized in that, After confirming that the previous data packet fragment was successfully uploaded and that the network is functioning normally, the method includes uploading the next data packet fragment. Once it is confirmed that the last fragment data packet has been successfully uploaded, an integrity verification code is sent.
3. The data transmission method for unmanned vending machines according to claim 2, characterized in that, The integrity check code is used to trigger the following verification process: Upon receiving the integrity check code, based on the target container, all the received fragmented data packets are synthesized, and a synthesized check code is generated based on the synthesis result. The synthesized check code and the integrity check code are matched; If the matching result indicates a successful match, the sales monitoring data will be received in its entirety.
4. The data transmission method for unmanned vending machines according to claim 1, characterized in that, The step of segmenting the sales monitoring data to obtain multiple segmented data packets includes: The sales monitoring data is segmented to obtain multiple segments, and an identifier for each segment is generated based on the current device information. For each of the data fragments, the data fragment and its identifier are encapsulated into a data fragment packet.
5. The data transmission method for unmanned vending machines according to claim 1, characterized in that, The acquisition of the encrypted sales monitoring data includes: Obtain sales monitoring data for target users; Based on the target occlusion algorithm, the facial features of the target user in the sales monitoring data are encrypted. If each of the encrypted facial features conforms to the encryption standard, the encrypted sales monitoring data is output.
6. The data transmission method for unmanned vending machines according to claim 5, characterized in that, If each of the encrypted facial features conforms to the encryption standard, the encrypted sales monitoring data is output, including: For each of the encrypted facial features, if the occlusion rate of the facial feature is greater than or equal to the occlusion degree threshold, it is determined that the facial feature meets the encryption standard.
7. A data transmission device for an unmanned vending machine, characterized in that, include: The encryption module is used to obtain the sales monitoring data after encryption processing; The segmentation module is used to segment the sales monitoring data and obtain multiple segmented data packets. The transmission module is used to upload the first fragmented data packet when the network is determined to be normal; The transmission module is also used to upload the next data packet after confirming that the previous data packet was successfully uploaded and that the network is normal.
8. An unmanned vending machine, characterized in that, The unmanned vending machine includes the unmanned vending machine data transmission device as described in claim 7.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the data transmission method for unmanned vending machines as described in any one of claims 1-6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the data transmission method for unmanned vending machines as described in any one of claims 1-6.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the data transmission method for unmanned vending machines as described in any one of claims 1-6.
