Log transmission system and method and wearable intelligent device

By segmenting the log to be transmitted into QR code images for circular display and decoding, the problem of high log transmission cost and poor flexibility of wearable smart devices in the absence of network is solved, and more efficient data processing and error processing are achieved.

CN119066043APending Publication Date: 2024-12-03ZHENSHI INFORMATION TECH SHANGHAI CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411260524.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When existing wearable smart devices transmit logs without a network, they are costly and require additional requirements on the receiving hardware devices, limiting the flexibility and reliability of the system.

Method used

By dividing the log to be transmitted into multiple sub-files and converting it into QR code images, the sending end displays it to the receiving end to scan and decode, ensuring the integrity and correct processing of the data, reducing the system's transmission cost and the receiving end equipment Performance requirements.

Benefits of technology

Reduces the cost of log transmission, improves system flexibility and reliability, and simplifies error handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066043A_ABST
    Figure CN119066043A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information transmission, in particular to a log transmission system and method and wearable intelligent equipment. The system comprises a sending end which is configured to divide a log to be transmitted into a plurality of binary data groups and convert the plurality of binary data groups into a plurality of two-dimensional code images; a receiving end configured to scan the plurality of two-dimensional code images to obtain a plurality of binary data sets; the receiving end is configured to decode the plurality of binary data sets to obtain a plurality of sub-files; and the receiving end is configured to splice the plurality of sub-files according to the agreed protocol with the sending end and output the to-be-transmitted log. According to the system, a to-be-transmitted log is segmented through a sending end, and a plurality of two-dimensional code images are generated. And a receiving end scans the images, decodes the images to obtain an original binary data set, and reassembles the original binary data set into a complete file. Not only is the cost reduced, but also the performance requirement on the receiving end equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information transmission technology, and further to a log transmission system, method and wearable smart device. Background Art

[0002] Current wearable smart devices transmit logs without a network connection through other hardware such as Near Field Communication (NFC), Bluetooth, ZigBee, etc. However, this approach not only increases costs, but also places additional requirements on the receiver's hardware devices, limiting the flexibility and reliability of the system. Summary of the invention

[0003] In order to solve the above technical problems, the present application provides a log transmission system, method and wearable smart device, which reduce the transmission cost of the system.

[0004] In a first aspect, the present application provides a log transmission system, comprising: a sending end, configured to divide the log to be transmitted into multiple binary data groups, and convert the multiple binary data groups into corresponding multiple two-dimensional code images; a receiving end, configured to scan the multiple two-dimensional code images, and obtain the corresponding multiple binary data groups; the receiving end is configured to decode the multiple binary data groups, and obtain the corresponding multiple sub-files; the receiving end is configured to splice the multiple sub-files according to a protocol agreed with the sending end, and output the log to be transmitted.

[0005] In the above log transmission system, the sending end divides the log to be transmitted, generates multiple sub-files, and converts them into QR code images. These images are displayed in a loop so that the receiving end can capture them. The receiving end then scans these images, decodes them to obtain the original binary data group, and reassembles them into a complete file. This not only reduces costs, but also reduces the performance requirements of the receiving end equipment.

[0006] In one implementation, the sending end is configured to divide the log to be transmitted into the multiple sub-files based on the capacity of the two-dimensional code image; the sending end is configured to convert the multiple sub-files into the multiple binary data groups.

[0007] In one implementation, the sending end is configured to convert the protocol version into a front QR code image; the receiving end is configured to scan the front QR code image and, based on the protocol version, agree with the protocol corresponding to the sending end; the receiving end is configured to sort the multiple sub-files based on the sequence numbers of the multiple sub-files and perform data verification on the sorted multiple sub-files.

[0008] In one implementation, the receiving end is configured to determine the corresponding missing sub-file when a missing occurs in the multiple sub-files undergoing data verification; the sending end is configured to reconvert the missing sub-file into the QR code image based on the sequence number of the missing sub-file, so that the receiving end scans the QR code image corresponding to the missing sub-file.

[0009] In the above log transmission system, the sender divides the log to be transmitted into multiple sub-files and converts them into QR code images. At the same time, the protocol version information is encoded in the front QR code to ensure that the receiving end can correctly identify and process the data. The receiving end identifies the protocol version by scanning the QR code, and sorts and verifies according to the sequence number of the sub-file to ensure the integrity of the data. When data is found to be missing, the receiving end can determine the missing sub-file, and the sender regenerates the QR code image of the missing sub-file according to the sequence number so that the receiving end can perform a supplementary scan. The flexibility and reliability of log transmission are improved, and the error handling process is simplified.

[0010] In one implementation, the sending end is configured to display the multiple QR code images in sequence based on a preset frequency and the serial numbers of the multiple sub-files; or, the sending end is configured to display the multiple QR code images in sequence based on the preset frequency.

[0011] In the second aspect, the present application also provides a log transmission method, which is applied to a sending end, including: dividing the log to be transmitted into multiple binary data groups, and converting the multiple binary data groups into corresponding multiple two-dimensional code images; displaying the multiple two-dimensional code images so that the receiving end can scan the multiple two-dimensional code images, obtain the corresponding multiple binary data groups, decode the multiple binary data groups, obtain the corresponding multiple sub-files, and splice the multiple sub-files according to the protocol agreed with the sending end, and output the log to be transmitted.

[0012] In one implementation, the method further includes: dividing the log to be transmitted into the multiple sub-files based on the capacity of the two-dimensional code image; and converting the multiple sub-files into the multiple binary data groups.

[0013] In one implementation, it also includes: converting the protocol version into a front QR code image; displaying the front QR code image so that the receiving end scans the front QR code image and agrees on the corresponding protocol with the sending end based on the protocol version.

[0014] On the third aspect, the present application also provides a log transmission method, which is applied to the receiving end, including: scanning the sending end to divide the log to be transmitted into multiple binary data groups, and converting the multiple binary data groups to obtain corresponding multiple QR code images, and obtaining the corresponding multiple binary data groups; decoding the multiple binary data groups to obtain corresponding multiple sub-files; splicing the multiple sub-files according to the protocol agreed with the sending end, and outputting the log to be transmitted.

[0015] In a fourth aspect, the present application also provides a wearable smart device for performing log transmission through any of the log transmission methods described above.

[0016] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0017] 1. The sender divides the log to be transmitted into multiple sub-files and converts them into QR code images. These images are displayed in a loop for the receiver to capture. The receiver then scans these images, decodes them to obtain the original binary data group, and reassembles them into a complete file. This not only reduces costs, but also reduces the performance requirements of the receiver's equipment.

[0018] 2. The sender divides the log to be transmitted into multiple sub-files and converts them into QR code images. At the same time, the protocol version information is encoded in the front QR code to ensure that the receiving end can correctly identify and process the data. The receiving end identifies the protocol version by scanning the QR code, and sorts and verifies according to the sequence number of the sub-file to ensure the integrity of the data. When data is found to be missing, the receiving end can determine the missing sub-file, and the sender regenerates the QR code image of the missing sub-file according to the sequence number so that the receiving end can perform a supplementary scan. The flexibility and reliability of log transmission are improved, and the error handling process is simplified. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The preferred implementation modes will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.

[0020] Figure 1 A schematic diagram of a log transmission system provided by an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of a sub-file format provided in an embodiment of the present application is shown;

[0022] Figure 3 A flow chart of a log transmission method provided by an embodiment of the present application is shown;

[0023] Figure 4A flow chart of a log transmission method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0025] In order to simplify the drawings, only the parts related to the invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0026] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] In this document, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0028] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0029] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

[0030] The application scenarios of log transmission of wearable smart devices include network conditions and no network conditions. In the case of network conditions, log transmission of wearable smart devices depends on the network connection function of the device, and the collected data is sent to the server through the wireless network for engineers to analyze and process.

[0031] In the absence of a network, the log transmission of wearable devices adopts different strategies. For example, some devices may have built-in storage functions, which store log data first when there is no network, and then send them uniformly after connecting to the network. In addition, some devices may use short-range wireless communication technologies such as near field communication (NFC), Bluetooth, ZigBee, etc. to directly transmit data when the device is close to the receiving device. The present application converts the log to be transmitted into multiple QR code images at the transmitting end, and the receiving end scans the QR code images for decoding and splicing to obtain the log to be transmitted, which can achieve at least one of the following beneficial effects: reducing the cost and performance requirements for the receiving device; or improving the flexibility and reliability of log transmission.

[0032] The following is explained with reference to the accompanying drawings:

[0033] Reference Figure 1 , which shows a schematic diagram of a log transmission system provided by an embodiment of the present application. Figure 1 As shown, it includes: a sending end 100 and a receiving end 200. The sending end 100 is configured to divide the log to be transmitted into multiple binary data groups, and convert the multiple binary data groups into corresponding multiple two-dimensional code images; the receiving end 200 is configured to scan multiple two-dimensional code images to obtain corresponding multiple binary data groups; the receiving end 200 is configured to decode the multiple binary data groups to obtain corresponding multiple sub-files; the receiving end 200 is configured to splice the multiple sub-files according to the protocol agreed with the sending end 100, and output the log to be transmitted.

[0034] The transmitting end 100 may include but is not limited to a wearable smart device, a mobile terminal, a computer device, and an IoT device. The receiving end may include but is not limited to a mobile terminal, a computer device, and a device that can scan a QR code. The following is an example in which the transmitting end 100 is a wearable smart device and the receiving end 200 is a mobile terminal:

[0035] The sending end 100 has a built-in encoding client, and the receiving end 200 has a built-in decoding client. First, the sending end 100 confirms the capacity of the two-dimensional code image (or the characters that each two-dimensional code image can carry) through the encoding client. Then, the encoding client pre-processes the file to be transmitted according to the capacity of the two-dimensional code image, and calculates the number of sub-files that the file to be transmitted can be divided into. Further, the encoding client divides the log to be transmitted into multiple sub-files according to the calculated number of sub-files, and reads the binary data of each sub-file, thereby obtaining multiple binary data groups, wherein each sub-file corresponds to a binary data group. Further, the encoding client converts the multiple binary data groups into corresponding multiple two-dimensional code images. The sending end 100 displays the multiple two-dimensional code images on the display screen in a loop so that the receiving end 200 can store them, wherein the receiving end 200 can store the multiple two-dimensional code images in the form of video recording or taking pictures. The receiving end 200 scans the multiple two-dimensional code images to obtain the binary data groups corresponding to each two-dimensional code image. Then, the multiple binary data groups obtained by decoding are decoded by the built-in decoding client to obtain the corresponding multiple sub-files. Furthermore, the receiving end 200 concatenates the multiple sub-files according to the protocol agreed upon with the sending end 100 to obtain the final log to be transmitted.

[0036] In the embodiment of the present application, the transmitting end divides the log to be transmitted, generates multiple sub-files, and converts them into two-dimensional code images. These images are displayed cyclically so that the receiving end can capture them by video recording or taking photos. The receiving end then scans these images, decodes them to obtain the original binary data group, and reassembles them into a complete file. This system not only reduces costs, but also reduces the performance requirements of the receiving end device.

[0037] In some embodiments of the present application, the sending end 100 is configured to divide the log to be transmitted into multiple sub-files based on the capacity of the two-dimensional code image. The sending end 100 is configured to convert the multiple sub-files into multiple binary data groups.

[0038] In some embodiments of the present application, the sending end 100 is configured to convert the protocol version into a front two-dimensional code image. The receiving end 200 is configured to scan the front two-dimensional code image and agree on the corresponding protocol with the sending end 100 based on the protocol version. The receiving end 200 is configured to sort the multiple sub-files based on the sequence numbers of the multiple sub-files, and perform data verification on the sorted multiple sub-files. The receiving end 200 is configured to determine the corresponding missing sub-file when a missing occurs in the multiple sub-files undergoing data verification. The sending end 100 is configured to re-convert the missing sub-file into a two-dimensional code image based on the sequence number of the missing sub-file, so that the receiving end 200 scans the two-dimensional code image corresponding to the missing sub-file.

[0039] Before the sending end 100 and the receiving end 200 perform log transmission, the format of the sub-file is first designed, for example, referring to the attached Figure 2 , which shows a schematic diagram of a sub-file format provided by an embodiment of the present application. Figure 2 As shown, it includes the sub-file format, the unique identifier of the sub-file, the sub-file sequence number (or the sequence number of the current fragment), the number of sub-files (or the total number of fragments divided), the data size of the sub-file (or the data size of the current fragment), the protocol version (or the version number), the name of the log to be transmitted (or the original file name), the data size of the log to be transmitted (or the size of the original file), etc.

[0040] After the transmitting end 100 divides the log to be transmitted into multiple subfiles by the coding client, the same information (such as protocol version, number of subfiles, name of log to be transmitted and data size of log to be transmitted, etc.) is extracted from each subfile, and these same information are used as a separate pre-subfile, that is, the extracted multiple subfiles no longer include these same information. Then, the coding client converts the pre-subfile into a pre-binary data group, which is further converted into a pre-two-dimensional code image. The receiving end 200 scans the pre-two-dimensional code image and parses it to obtain the pre-subfile. After the user confirms that there is no problem with the content of the pre-subfile, the transmitting end 100 circulates multiple two-dimensional code images on the display screen so that the receiving end 200 scans multiple two-dimensional code images to obtain the binary data group corresponding to each two-dimensional code image. Then the multiple binary data groups obtained by decoding are decoded by the built-in decoding client to obtain corresponding multiple subfiles. Among them, after obtaining multiple subfiles, the receiving end 200 will automatically add the same information of multiple subfiles stored in the pre-subfile to each subfile. Furthermore, the receiving end 200 sorts the sub-files according to their serial numbers through a merging program and performs corresponding data verification. After the verification is passed, the sub-files are sequentially written into a new file according to the protocol, thereby obtaining a final log to be transmitted.

[0041] When the data verification fails, the receiving end 200 determines the corresponding missing subfile. The user can reconvert the missing subfile into a QR code image through the sending end 100 according to the sequence number of the missing subfile. Then, the receiving end 200 rescans the QR code image corresponding to the missing subfile to complete the splicing of the log to be transmitted.

[0042] In the embodiment of the present application, the sending end divides the log to be transmitted into multiple sub-files, and converts them into a QR code image, and encodes the protocol version information in the front QR code to ensure that the receiving end can correctly identify and process the data. The receiving end identifies the protocol version by scanning the QR code, and sorts and verifies according to the sequence number of the sub-file to ensure the integrity of the data. When it is found that the data is missing, the receiving end can determine the missing sub-file, and the sending end regenerates the QR code image of the missing sub-file according to the sequence number so that the receiving end can perform a supplementary scan. The flexibility and reliability of log transmission are improved, and the error handling process is also simplified.

[0043] In some embodiments of the present application, the sending end 100 is configured to display multiple QR code images in sequence based on a preset frequency and the sequence numbers of multiple subfiles. Or, the sending end 100 is configured to display multiple QR code images in sequence based on a preset frequency.

[0044] In the embodiment of the present application, the sending end 100 can display each QR code image on the display screen in sequence according to the order (e.g., ascending order or descending order) of the sequence numbers of each sub-file and the preset frequency. Alternatively, the sending end 100 can also display each QR code image on the display screen in sequence in a random order and at a preset frequency.

[0045] Reference Figure 3 , which shows a flow chart of a log transmission method provided in an embodiment of the present application.

[0046] like Figure 3 As shown, the method is applied to the sending end, comprising:

[0047] S300, dividing the log to be transmitted into a plurality of binary data groups, and converting the plurality of binary data groups into a plurality of corresponding two-dimensional code images.

[0048] S310, displaying multiple QR code images so that the receiving end can scan the multiple QR code images, obtain the corresponding multiple binary data groups, decode the multiple binary data groups, obtain the corresponding multiple sub-files, and splice the multiple sub-files according to the protocol agreed with the sending end, and output the log to be transmitted.

[0049] The sending end has a built-in encoding client, and the receiving end has a built-in decoding client. First, the sending end confirms the capacity of the two-dimensional code image (or the characters that each two-dimensional code image can carry) through the encoding client. Then, the encoding client pre-processes the file to be transmitted according to the capacity of the two-dimensional code image, and calculates the number of sub-files that the file to be transmitted can be divided into. Further, the encoding client divides the log to be transmitted into multiple sub-files according to the calculated number of sub-files, and reads the binary data of each sub-file, thereby obtaining multiple binary data groups, wherein each sub-file corresponds to a binary data group. Further, the encoding client converts the multiple binary data groups into corresponding multiple two-dimensional code images. The sending end displays the multiple two-dimensional code images on the display screen in a loop so that the receiving end can store them, wherein the receiving end can store the multiple two-dimensional code images in the form of video recording or taking pictures. The receiving end scans the multiple two-dimensional code images to obtain the binary data groups corresponding to each two-dimensional code image. Then, the multiple binary data groups obtained by decoding are decoded through the built-in decoding client to obtain the corresponding multiple sub-files. Further, the receiving end splices the multiple sub-files according to the protocol agreed with the sending end to obtain the final log to be transmitted.

[0050] In some embodiments of the present application, the method further includes: dividing the log to be transmitted into a plurality of sub-files based on the capacity of the two-dimensional code image, and converting the plurality of sub-files into a plurality of binary data groups.

[0051] In some embodiments of the present application, it also includes: converting the protocol version into a pre-positioned QR code image. The pre-positioned QR code image is displayed so that the receiving end scans the pre-positioned QR code image, and the corresponding protocol is agreed upon with the sending end based on the protocol version. The details of the embodiments of the present application have been described in detail in the aforementioned embodiments, and will not be repeated here.

[0052] Reference Figure 4 , which shows a flow chart of a log transmission method provided in an embodiment of the present application.

[0053] like Figure 4 As shown, the method is applied to the receiving end, comprising:

[0054] S400, the scanning sending end divides the log to be transmitted into a plurality of binary data groups, converts the plurality of binary data groups into a corresponding plurality of two-dimensional code images, and obtains the corresponding plurality of binary data groups.

[0055] S410, decoding multiple binary data groups to obtain corresponding multiple sub-files.

[0056] S420, splicing multiple sub-files according to the protocol agreed upon with the sending end, and outputting the log to be transmitted.

[0057] The details of the embodiments of the present application have been described in detail in the aforementioned embodiments and will not be repeated here.

[0058] An embodiment of the present application also provides a wearable smart device for performing log transmission using the log transmission method described in any of the above embodiments.

[0059] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.

Claims

1. A log transmission system, characterized in that: include: A sending end, configured to divide the log to be transmitted into a plurality of binary data groups, and convert the plurality of binary data groups into a corresponding plurality of two-dimensional code images; A receiving end is configured to scan the multiple two-dimensional code images and obtain the corresponding multiple binary data groups; The receiving end is configured to decode the multiple binary data groups to obtain the corresponding multiple sub-files; The receiving end is configured to splice the multiple sub-files according to the protocol agreed upon with the sending end, and output the log to be transmitted.

2. The log transmission system according to claim 1, characterized in that: The sending end is configured to divide the to-be-transmitted log into the plurality of sub-files based on the capacity of the two-dimensional code image; The sending end is configured to convert the multiple sub-files into the multiple binary data groups.

3. The log transmission system according to claim 2, characterized in that: The sending end is configured to convert the protocol version into a front QR code image; The receiving end is configured to scan the front two-dimensional code image and agree with the sending end on the corresponding protocol based on the protocol version; The receiving end is configured to sort the multiple sub-files based on the sequence numbers of the multiple sub-files, and perform data verification on the sorted multiple sub-files.

4. The log transmission system according to claim 3, characterized in that: The transmitting end is configured to display the multiple two-dimensional code images in sequence based on a preset frequency and the sequence numbers of the multiple sub-files; or, The transmitting end is configured to display the multiple two-dimensional code images in sequence based on the preset frequency.

5. The log transmission system according to claim 3, characterized in that: The receiving end is configured to determine a corresponding missing subfile when a missing subfile occurs in the plurality of subfiles for data verification; The sending end is configured to reconvert the missing subfile into the two-dimensional code image based on the sequence number of the missing subfile, so that the receiving end scans the two-dimensional code image corresponding to the missing subfile.

6. A log transmission method, characterized in that: Applied to the sending end, including: Dividing the log to be transmitted into a plurality of binary data groups, and converting the plurality of binary data groups into a corresponding plurality of two-dimensional code images; The multiple two-dimensional code images are displayed so that the receiving end can scan the multiple two-dimensional code images, obtain the corresponding multiple binary data groups, decode the multiple binary data groups, obtain the corresponding multiple sub-files, and splice the multiple sub-files according to the protocol agreed with the sending end, and output the log to be transmitted.

7. The log transmission method according to claim 6, characterized in that: Also includes: Based on the capacity of the two-dimensional code image, dividing the log to be transmitted into the multiple sub-files; The plurality of sub-files are converted into the plurality of binary data groups.

8. The log transmission method according to claim 7, characterized in that: Also includes: Convert the protocol version to the front QR code image; The front two-dimensional code image is displayed so that the receiving end scans the front two-dimensional code image and agrees on the corresponding protocol with the sending end based on the protocol version.

9. A log transmission method, characterized in that: Applied to the receiving end, including: The scanning sending end divides the log to be transmitted into a plurality of binary data groups, converts the plurality of binary data groups into a corresponding plurality of two-dimensional code images, and obtains the corresponding plurality of binary data groups; Decoding the multiple binary data groups to obtain corresponding multiple sub-files; The multiple sub-files are spliced ​​according to the protocol agreed upon with the sending end, and the log to be transmitted is output.

10. A wearable smart device, characterized in that: Used to perform log transmission through the log transmission method described in any one of claims 6-8.

Citation Information

Patent Citations

  • File transmission method and transmission system based on two-dimensional code

    CN115766702A