[go: up one dir, main page]

CN112383881B - Information reporting method, device, equipment and storage medium - Google Patents

Information reporting method, device, equipment and storage medium Download PDF

Info

Publication number
CN112383881B
CN112383881B CN202011189885.6A CN202011189885A CN112383881B CN 112383881 B CN112383881 B CN 112383881B CN 202011189885 A CN202011189885 A CN 202011189885A CN 112383881 B CN112383881 B CN 112383881B
Authority
CN
China
Prior art keywords
information
data packet
data
equipment
information data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011189885.6A
Other languages
Chinese (zh)
Other versions
CN112383881A (en
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 Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011189885.6A priority Critical patent/CN112383881B/en
Publication of CN112383881A publication Critical patent/CN112383881A/en
Application granted granted Critical
Publication of CN112383881B publication Critical patent/CN112383881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses an information reporting method, an information reporting device, an information reporting apparatus and a storage medium, wherein the information reporting method is applied to a main control apparatus, and comprises the following steps: establishing Bluetooth communication connection with at least 2 controlled devices; respectively sending information request data packets to at least 2 controlled devices according to a time division multiplexing mode; receiving information data packets returned by at least 2 controlled devices, wherein the information data packets are generated by the controlled devices based on the information request data packets; and analyzing the information data packet to obtain information data to be uploaded, and uploading the information data to be uploaded to a network server through a communication network. The network server carries the Bluetooth module and the communication network module on the main control device, carries the Bluetooth module on the controlled device and reports information, the communication network module does not need to be carried on each controlled device in the process, the device cost is effectively reduced, communication is carried out by adopting Bluetooth broadcasting, scanning devices do not need to be connected in a matching mode, and the speed is high and the efficiency is high.

Description

Information reporting method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information reporting method, apparatus, device, and storage medium.
Background
In recent years, with the development of mobile internet, more and more devices are accessed to a communication network, new services and applications are developed, the application field of the communication network is wider and wider, information reporting through the communication network is widely applied, and the communication network brings convenience and brings great cost investment. In the existing information reporting method, each master control device carries a communication network module, such as a 5G module, to report information, but the 5G module has a high cost, and the information reporting method in which each master control device is equipped with a 5G card has a high cost.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an information reporting method, apparatus, device and storage medium, which achieve network sharing through a network time division multiplexing mechanism based on bluetooth broadcast, and effectively reduce communication cost in an information reporting process. The specific scheme is as follows:
a first aspect of the present application provides an information reporting method, which is applied to a master control device, and includes:
establishing Bluetooth communication connection with at least 2 controlled devices;
respectively sending information request data packets to the at least 2 controlled devices according to a time division multiplexing mode;
receiving information data packets returned by the at least 2 controlled devices, wherein the information data packets are generated by the controlled devices based on the information request data packets;
and analyzing the information data packet to obtain information data to be uploaded, and uploading the information data to be uploaded to a network server through a communication network.
Optionally, before the sending the information request data packets to the at least 2 controlled devices respectively in a time division multiplexing manner, the method further includes:
triggering an information reporting request, and encrypting the information reporting request to obtain a reporting request data body;
and based on a data format corresponding to a Bluetooth broadcast protocol, packaging the ID of the sending equipment, the ID of the receiving equipment and the report request data body to obtain the information request data packet.
Optionally, the encrypting the information reporting request to obtain a reporting request data body includes:
encrypting the information reporting request by using the key of the main control equipment or the keys of the at least 2 controlled equipment respectively to obtain a reporting request data body;
and after receiving the information request data packet with the receiving equipment ID consistent with the self ID, the controlled equipment decrypts the report request data body in the information request data packet by using the key of the main equipment or the key of the controlled equipment. Optionally, the receiving the information data packet returned by the at least 2 controlled devices includes:
obtaining information data packets respectively returned by the at least 2 controlled devices after receiving the information request data packets; the information data packet is obtained by encapsulating the receiving device ID, the sending device ID and the information data body by the at least 2 controlled devices based on a data format corresponding to a Bluetooth broadcast protocol; the information data body is obtained by encrypting the information reporting request response data by the at least 2 controlled devices by using the key of the master control device or the key of the controlled devices;
and judging whether the ID of the receiving equipment of the acquired information data packet is consistent with the ID of the main control equipment, if so, receiving the information data packet, and if not, discarding the information data packet.
Optionally, the analyzing the information data packet to obtain the information data to be uploaded includes:
and decrypting the information data body in the information data packet by using the key of the main control equipment or the key of the controlled equipment corresponding to the transmitted information data packet, and extracting the information data to be uploaded from the decrypted data.
A second aspect of the present application provides an information reporting method, which is applied to a controlled device, and includes:
establishing Bluetooth communication connection with the master control equipment;
receiving an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol;
and sending an information data packet corresponding to the information request data packet to the main control equipment so that the main control equipment analyzes the information request data packet to obtain information data to be uploaded and uploads the information data to be uploaded to a network server through a communication network.
Optionally, the receiving an information request data packet sent by the master control device based on the bluetooth broadcast protocol includes:
acquiring an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol; the information request data packet is obtained by the master control device encapsulating a receiving device ID, a sending device ID and a reporting request data body based on a data format corresponding to a Bluetooth broadcast protocol; the report request data body is obtained by encrypting an information report request by the main control device by using a key of the main control device or a key of the controlled device;
and judging whether the ID of the receiving equipment of the acquired information request data packet is consistent with the ID of the controlled equipment, if not, discarding the information request data packet, and if so, receiving the information request data packet.
Optionally, before sending the information data packet corresponding to the information request data packet to the master control device, the method further includes:
encrypting reporting request response data by using the key of the master control equipment or the key of the slave equipment to obtain an information data body;
and packaging the receiving equipment ID, the sending equipment ID and the information data body based on a data format corresponding to a Bluetooth broadcast protocol to obtain the information data packet.
A third aspect of the application provides an electronic device comprising a processor and a memory; the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the information reporting method.
In the application, for a master control device, firstly, bluetooth communication connection with at least 2 controlled devices is established, information request data packets are sent to the at least 2 controlled devices respectively according to a time division multiplexing mode, then, the information data packets returned by the at least 2 controlled devices are received, wherein the information data packets are generated by the controlled devices based on the information request data packets, and finally, the information data packets are analyzed to obtain information data to be uploaded, and the information data to be uploaded is uploaded to a network server through a communication network. Correspondingly, for the controlled device, firstly, a bluetooth communication connection with the master control device is established, an information request data packet sent by the master control device based on a bluetooth broadcast protocol is received, and then, an information data packet corresponding to the information request data packet is sent to the master control device, so that the master control device analyzes the information request data packet to obtain information data to be uploaded, and the information data to be uploaded is uploaded to a network server through a communication network. It can be seen that, this application through introducing master control equipment and controlled equipment, master control equipment carries on communication network module and bluetooth module, controlled equipment carries on bluetooth module, and master control equipment and controlled equipment realize information data transmission through the bluetooth broadcast, master control equipment will the information data that controlled equipment uploaded uploads to network server through communication network to realize the network sharing. According to the process, each master control device does not need to carry a communication network module such as a 5G module, so that the communication cost is effectively reduced, the Bluetooth broadcasting is adopted for communication, the scanning devices are not needed to be connected in a matching mode, the speed is high, and the efficiency is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a system framework to which an information reporting scheme provided in the present application is applied;
fig. 2 is a flowchart of an information reporting method applied to a master control device according to the present application;
fig. 3 is a schematic structural diagram of an information reporting method provided in the present application;
fig. 4 is a flowchart of a specific information reporting method applied to a master control device according to the present application;
fig. 5 is a flowchart of a specific information reporting method applied to a main control device according to the present application;
fig. 6 is a flowchart of an information reporting method applied to a controlled device according to the present application;
fig. 7 is a flowchart of a specific information reporting method applied to a controlled device according to the present application;
fig. 8 is a schematic structural diagram of an information reporting apparatus applied to a controlled device according to the present application;
fig. 9 is a structural diagram of an information reporting electronic device according to the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the existing information reporting method, each main control device carries a communication network module such as a 5G module to report information, but the cost of the 5G module is high, and the cost of the information reporting method for equipping each main control device with a 5G card is high. In the information reporting scheme of the present application, the adopted system framework may be as shown in fig. 1, and specifically may include a main control device 01, at least 2 controlled devices 02 establishing communication connection with the main control device 01, and a network server 03.
In this application, master control equipment 01 and controlled equipment 02 can be equipment such as server, computer, master control equipment 01 with through bluetooth communication connection between the controlled equipment 02, carry out data transmission through communication network between master control equipment 01 and the network server 03, communication network can be 5G network, 6G network or ethernet etc.. The main control device 01 carries a bluetooth module and a communication network module, and on one hand, is configured to send an information report request to the controlled device 02 by using the bluetooth module and receive a report data packet returned by the controlled device 02, and specifically includes: establishing Bluetooth communication connection with at least 2 controlled devices 02 and respectively sending information request data packets to the at least 2 controlled devices 02 according to a time division multiplexing mode; and receiving information data packets returned by the at least 2 controlled devices 02, wherein the information data packets are generated by the controlled devices 02 based on the information request data packets. On the other hand, the communication network module is used to upload the information data to be uploaded, which is obtained by analyzing the information data packet, to the network server 03. The controlled device 02 is equipped with a bluetooth module, and is configured to establish bluetooth communication connection with the master control device 01, receive an information request data packet sent by the master control device 01 based on a bluetooth broadcast protocol, and then send an information data packet corresponding to the information request data packet to the master control device 01. In this application, the bluetooth communication between the master control device 01 and the controlled device 02 is initiated by the master control device 01, and the controlled device 02 returns corresponding data to respond.
Fig. 2 is a flowchart of an information reporting method applied to a master control device, and fig. 3 is a schematic structural diagram of the information reporting method. Referring to fig. 2 and 3, the information reporting method includes:
s11: a bluetooth communication connection is established with at least 2 controlled devices.
S12: and respectively sending information request data packets to the at least 2 controlled devices according to a time division multiplexing mode.
In this embodiment, the master device and the at least 2 controlled devices communicate with each other based on a bluetooth broadcast protocol, and a bluetooth communication connection should be established between the master device and each of the at least 2 controlled devices. The communication between the master control device and each controlled device must be initiated by the master control device, the master control device polls each controlled device in the network in sequence, and sends corresponding information request data packets to each controlled device through bluetooth broadcast, that is, the master control device sends the information request data packets to the at least 2 controlled devices respectively according to a time division multiplexing mode.
It should be noted that the information request packet is data obtained by performing encapsulation processing on a data format corresponding to a preset bluetooth broadcast protocol, where the data format corresponding to the preset bluetooth broadcast protocol in this embodiment includes a sending device ID, a receiving device ID, and a data body, as shown in table 1, that is, the information request packet in this embodiment is data obtained by encapsulating the sending device ID, the receiving device ID, and a report request data body. Specifically, in this step, the sending device and the receiving device of the information request packet are the master devices, the receiving device is the controlled device, the ID of the master device is fixed to 0x01, if there are multiple master devices, the serial numbers of the master devices are analogized in turn, and the ID fixed format of the controlled device is 0x02-0xff, and analogized in turn. The data after being encapsulated may further include other parameter information such as checksum, and the data format of each parameter encapsulated on the other side is also set according to the specific service and the requirements of the user, which is not limited in this embodiment.
TABLE 1
Message header Sending device ID Receiving device ID Data body
0xAA One byte One byte Encrypted data
S13: and receiving information data packets returned by the at least 2 controlled devices, wherein the information data packets are generated by the controlled devices based on the information request data packets.
In this embodiment, after receiving the information request data packet sent by the master control device through bluetooth broadcast, the at least 2 controlled devices need to respond to the information reporting request of the master control device, that is, return a corresponding information data packet to the master control device, and the master control device determines whether to receive the encrypted information data packet returned by the controlled device according to preset receiving conditions, such as ID matching, whether to exceed the time limit of returned data, and the like. It should be noted that the information data packet in this embodiment is data obtained by encapsulating the sending device ID, the receiving device ID, and the information data body according to the data format corresponding to the bluetooth broadcast protocol, and since any device in the network that transmits data through bluetooth broadcast can receive and obtain the data, in order to ensure the security of the reported information, the information data body may be a corresponding data body obtained by encrypting the reported information data by the controlled device.
S14: and analyzing the information data packet to obtain information data to be uploaded, and uploading the information data to be uploaded to a network server through a communication network.
In this embodiment, the information data packet obtained by the main control device is packet data obtained by encapsulating the information data packet in a data format corresponding to a preset bluetooth broadcast protocol, and the information data body in the information data packet is also a data body obtained by certain processing, and in addition, the information data body may include different types of information data, and the types of the information data that are not required to be uploaded to the network server can be selected and removed according to service requirements, so that the memory pressure of the main control device can be reduced to some extent, and the response speed is improved, so that the obtained information data packet needs to be analyzed before the information data packet is reported, and the information data that are required to be uploaded to the network server is obtained. Of course, in order to avoid wasting resources or facilitate building a corresponding information database, all information data in the information data body reported by the controlled device may be stored in the local data of the main control device.
Further, in this embodiment, a communication network for uploading the information data to be uploaded to the network server may be a 5G network, the 5G network has characteristics of high transmission rate, fast response speed, low latency, and the like, the controlled device shares the 5G network of the main control device to report the information data, and certainly, the controlled device may also report and transmit the information data through traditional methods such as a 6G network, a 4G network, wifi, and ethernet.
It can be seen that the embodiment of the present application is applied to a master control device, where the master control device sends corresponding information request data packets to the at least 2 controlled devices respectively in a time-division multiplexing manner, guides the controlled devices to return corresponding encrypted information data packets through a bluetooth broadcast channel, and uploads the information data uploaded by the controlled devices to a network server through a communication network, thereby implementing network sharing. In the process, each controlled device does not need to carry a communication network module such as a 5G network module, so that the communication cost is effectively reduced.
Fig. 4 is a flowchart of a specific information reporting method applied to a master control device according to the present application. Referring to fig. 4, the information reporting method includes:
s21: a bluetooth communication connection is established with at least 2 controlled devices.
S22: triggering an information reporting request, and encrypting the information reporting request to obtain a reporting request data body.
S23: and respectively transmitting the information request data packets to the at least 2 controlled devices according to a time-sharing multiplexing mode.
In this embodiment, the bluetooth broadcast transmission data has openness, and in order to ensure the security of the information data, it is necessary to encrypt the information reporting request sent by the master control device, in this embodiment, a symmetric encryption algorithm is used to encrypt the reporting request, in order to obtain the information data packet of the controlled device, the master control device needs to trigger the information reporting request, which may be manually triggered or may be automatically triggered at a certain time interval, in addition, in order to transmit the reporting request data body through a bluetooth broadcast protocol, it needs to package the sending device ID, the receiving device ID and the reporting request data body based on the data format corresponding to the bluetooth broadcast protocol to obtain the information request data packet, the master control device transmits the information request data packet to the at least 2 controlled devices through bluetooth broadcast, and the controlled equipment is instructed to report the information data.
Further, in this embodiment, the master device needs to send corresponding information request data packets to at least 2 controlled devices, so as to implement network sharing, and in this embodiment, the corresponding information request data packets are sent to each of the at least 2 controlled devices according to a time-division multiplexing manner, so that different controlled devices can report information data in different time periods. In an embodiment, the master device polls each controlled device for obtaining a plurality of information data packets completely according to a time division multiplexing mode one or more times and then uploads the plurality of information data packets to the network server by using the communication network of the master device in a unified manner.
S24: obtaining information data packets respectively returned by the at least 2 controlled devices after receiving the information request data packets; the information data packet is obtained by encapsulating the receiving end ID, the sending end ID and the information data body by the at least 2 controlled devices based on a data format corresponding to a Bluetooth broadcast protocol; the information data body is obtained by encrypting the information reporting request response data by the at least 2 controlled devices by using the key of the main control device or the key of the controlled devices.
In this embodiment, the master control device obtains corresponding information data packets returned by at least 2 controlled devices, the controlled devices, after receiving the information request data packet, sort the information data to be reported and return corresponding information data packets to the master control device, where the information data packets include information request response data, and in order to ensure data security, the information request response data in the information data packets are encrypted data. It should be noted that, in this embodiment, the encryption method is not limited, and may be a symmetric encryption method or an asymmetric encryption method, and in an embodiment, a preset key may be created in advance, the preset key is used to encrypt the information request response data, and the main control device uses the preset key to decrypt the information request response data; in another embodiment, the controlled device encrypts the information request response data by using a public key of the master control device or a private key of the controlled device, and the master control device decrypts the information request response data by using a private key of the controlled device or a public key of the controlled device.
S25: and judging whether the ID of the receiving equipment of the acquired information data packet is consistent with the ID of the main control equipment, if so, receiving the information data packet, and if not, discarding the information data packet.
In this embodiment, in order to ensure accuracy of data transmission and avoid a disorder occurring when information data of the controlled device is reported, it is necessary to determine whether a receiving device of the information data packet is the master control device, which is implemented by ID comparison, that is, it is determined whether an ID of a receiving device in an intercepted information data packet is an ID of the master control device, if so, it is determined that the receiving device of the information data packet is the master control device, and the master control device receives the information data packet and performs subsequent steps, and if not, it discards the information data packet.
S26: and decrypting the information data body in the information data packet by using the key of the main control equipment or the key of the controlled equipment corresponding to the transmitted information data packet, extracting information data to be uploaded from the decrypted data and uploading the information data to be uploaded to a network server through a communication network.
In this embodiment, after the information data packet is obtained, the encrypted information data body needs to be decrypted, the decryption method is determined according to the corresponding encryption method, and the specific encryption and decryption method is described in detail in step S24, and is not described herein again. It should be noted that the preset key, the public key of the master device, and the public key of the controlled device may be published to the encryption and decryption device in advance. Further, the decrypted report request response data needs to be further analyzed, the information data that needs to be reported is extracted from the decrypted report request response data, the information data to be uploaded is uploaded to the network server through the communication network, and the extraction rule is determined according to the specific service requirement, which is not limited in this embodiment.
It can be seen that, in the embodiment of the present application, an information reporting request is triggered, and a corresponding encrypted information request data packet is sent to each of at least 2 controlled devices in a time-division multiplexing manner, so that each of the controlled devices returns a corresponding encrypted information data packet.
Fig. 5 is a flowchart of a specific information reporting method applied to a master control device according to the present application, and referring to fig. 5, the information reporting method includes:
s31: a bluetooth communication connection is established with at least 2 controlled devices.
S32: triggering an information reporting request, and encrypting the information reporting request by using the key of the main control equipment or the keys of the at least 2 controlled equipment to obtain a reporting request data body; and based on a data format corresponding to a Bluetooth broadcast protocol, packaging the sending end ID, the receiving end ID and the report request data body to obtain an information request data packet.
In this embodiment, in order to ensure the security of data transmission of an information reporting request, an encryption process is performed on the information reporting request, where the encryption method is not limited in this embodiment, and may be a symmetric encryption method or an asymmetric encryption method, and in an embodiment, a preset key may be created in advance, the information reporting request is encrypted by using the preset key, and the controlled device decrypts by using the preset key; in another embodiment, the master control device encrypts the information reporting request by using a public key of the controlled device or a private key thereof, and the controlled device decrypts the information reporting request by using the private key thereof or the public key of the master control device.
S33: and respectively sending the information request data packets to the at least 2 controlled devices according to a time division multiplexing mode.
S34: and receiving information data packets returned by the at least 2 controlled devices, wherein the information data packets are generated by the controlled devices based on the information request data packets.
S35: and analyzing the information data packet to obtain information data to be uploaded, and uploading the information data to be uploaded to a network server through a communication network.
In this embodiment, as to the specific processes from step S33 to step S35, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
It can be seen that, in the embodiment of the present application, the key of the master control device or the keys of the at least 2 controlled devices are used to encrypt the information reporting request respectively to obtain the reporting request data body, so that after each controlled device receives the information request data packet with the receiving device ID being consistent with its own ID, the corresponding key is used to decrypt the reporting request data body in the information request data packet, thereby further ensuring the privacy of the preset key.
Fig. 6 is a flowchart of an information reporting method applied to a controlled device, shown in fig. 6, where the information reporting method includes:
s41: and establishing Bluetooth communication connection with the master control equipment.
S42: and receiving an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol.
In this embodiment, a bluetooth communication connection between the controlled device and the master control device should be established first, so that the controlled device and the master control device can perform data communication through bluetooth broadcast. The controlled device reports the information data after receiving the information request data packet sent by the main control device in a time division multiplexing mode, and the controlled device cannot report the information data actively.
S43: and sending an information data packet corresponding to the information request data packet to the main control equipment so that the main control equipment analyzes the information request data packet to obtain information data to be uploaded and uploads the information data to be uploaded to a network server through a communication network.
In this embodiment, after receiving the information request packet, the controlled device needs to respond to the information request packet, that is, to sort the information data, determine the information data that needs to be reported, encrypt the information data to obtain an information data body, and encapsulate the transmitting device ID, the receiving device ID, and the information data body based on the data format corresponding to the preset bluetooth broadcast protocol to obtain the information data packet. And then the information data packet is sent to the master control equipment based on a Bluetooth broadcast protocol, so that the response to the information request data packet sent by the master control equipment is realized.
Therefore, the embodiment of the application returns the corresponding information data through the Bluetooth broadcast on the basis of receiving the information request data packet sent by the main control device based on the Bluetooth broadcast protocol, so as to report the information data.
Fig. 7 is a flowchart of a specific information reporting method applied to a controlled device, shown in fig. 7, where the information reporting method includes:
s51: and establishing Bluetooth communication connection with the master control equipment.
S52: and acquiring an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol.
S53: and judging whether the ID of the receiving equipment of the acquired information request data packet is consistent with the ID of the controlled equipment, if not, discarding the information request data packet, and if so, receiving the information request data packet.
In this embodiment, after the information request packet sent by the master control device is acquired, it needs to be determined whether the ID of the receiving device in the information request packet is consistent with the ID of the own device, and only when the IDs of the receiving device and the ID of the own device are consistent, the controlled device that reports the information data within a specific time can be determined.
S54: encrypting reporting request response data by using the key of the master control equipment or the key of the slave equipment to obtain an information data body; and packaging the receiving end ID, the sending end ID and the information data body based on a data format corresponding to a Bluetooth broadcast protocol to obtain an information data packet.
In this embodiment, in order to ensure the security of data transmission, the report request response data, that is, the information data, is encrypted, specifically, the report request response data may be encrypted by using a public key of the master control device, and correspondingly, after receiving the corresponding information data packet, the master control device decrypts the information data body in the information data packet by using a private key of its own device, or encrypts the report request response data by using a private key of the controlled device, and correspondingly, after receiving the corresponding information data packet, the master control device decrypts the information data body in the information data packet by using the public key of the controlled device, and specifically, whether public key encryption or private key encryption is used for encrypting is not limited in this embodiment. It should be noted that, a symmetric encryption method may also be adopted to encrypt the report request response data, that is, the information data.
Further, after the report request response data is encrypted to obtain the information data body, in order to transmit data through bluetooth communication, it is necessary to encapsulate the sending device ID, the receiving device ID, and the information data body based on a packet format corresponding to a bluetooth broadcast protocol to obtain the information data packet. It should be noted that the data format corresponding to the bluetooth broadcast protocol in this embodiment is consistent with the data format corresponding to the bluetooth broadcast protocol in the embodiment of the information data reporting method applied to the master control device.
S55: and sending the information data packet to the main control equipment so that the main control equipment analyzes the information request data packet to obtain information data to be uploaded and uploads the information data to be uploaded to a network server through a communication network.
In this embodiment, as to the specific process of step S55, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Therefore, the embodiment of the application compares the ID of the receiving device in the acquired information request packet with the ID of the receiving device, receives the information request data packet with the consistent ID of the receiving device and the ID of the receiving device, and returns the corresponding information data packet, so that the fault tolerance of the information data during reporting is improved. In addition, the reporting request response data is encrypted by an encryption method and then transmitted, so that the safety of data transmission is ensured to a certain extent.
Referring to fig. 8, an embodiment of the present application further discloses an information reporting apparatus applied to a controlled device, which includes:
the connection module 11 is used for establishing Bluetooth communication connection with the main control equipment;
a receiving module 12, configured to receive an information request data packet sent by the master device based on a bluetooth broadcast protocol;
a sending module 13, configured to send an information data packet corresponding to the information request data packet to the master control device, so that the master control device analyzes the information request data packet to obtain information data to be uploaded, and uploads the information data to be uploaded to a network server through a communication network.
Therefore, the embodiment of the application is applied to the controlled device, and on the basis of receiving the information request data packet sent by the master control device based on the Bluetooth broadcast protocol, the corresponding information data is returned through Bluetooth broadcast, so that the information data is reported.
In some specific embodiments, the data receiving module 12 specifically includes:
the acquisition unit is used for acquiring an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol; the information request data packet is obtained by the master control device encapsulating a receiving device ID, a sending device ID and a reporting request data body based on a data format corresponding to a Bluetooth broadcast protocol; the report request data body is obtained by encrypting an information report request by the main control device by using a key of the main control device or a key of the controlled device;
and the judging unit is used for judging whether the ID of the receiving equipment of the acquired information request data packet is consistent with the ID of the controlled equipment, if not, discarding the information request data packet, and if so, receiving the information request data packet. In some specific embodiments, the data sending module 13 specifically includes:
the encryption unit is used for encrypting the report request response data by using the key of the master control equipment or the key of the slave equipment to obtain an information data body;
and the packaging unit is used for packaging the receiving equipment ID, the sending equipment ID and the information data body based on a data format corresponding to a Bluetooth broadcast protocol to obtain the information data packet.
Further, the embodiment of the application also provides electronic equipment. FIG. 9 is a block diagram illustrating an electronic device 20 according to an exemplary embodiment, and nothing in the figure should be taken as a limitation on the scope of use of the present application.
Fig. 9 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the information reporting method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically a server.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data broadcast channel between the electronic device 20 and an external device, and the communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, video data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the massive information request packet, the information packet, and the like 223 in the memory 22 by the processor 21, which may be Windows Server, Netware, Unix, Linux, and the like. The computer programs 222 may further include computer programs that can be used to perform other specific tasks in addition to the computer programs that can be used to perform the information reporting method performed by the electronic device 20 disclosed in any of the foregoing embodiments. Data 223 may include various information request packets, information packets, collected by electronic device 20.
Further, an embodiment of the present application further discloses a storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the information reporting method disclosed in any of the foregoing embodiments are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The information reporting method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. An information reporting method is applied to a master control device, and comprises the following steps:
establishing Bluetooth communication connection with at least 2 controlled devices;
respectively sending information request data packets to the at least 2 controlled devices according to a time division multiplexing mode; receiving information data packets returned by the at least 2 controlled devices, wherein the information data packets are generated by the controlled devices based on the information request data packets;
analyzing the information data packet to obtain information data to be uploaded, and uploading the information data to be uploaded to a network server through a communication network;
before the sending the information request data packets to the at least 2 controlled devices respectively in a time division multiplexing manner, the method further includes: triggering an information reporting request, and encrypting the information reporting request to obtain a reporting request data body; and based on a data format corresponding to a Bluetooth broadcast protocol, packaging the ID of the sending equipment, the ID of the receiving equipment and the report request data body to obtain the information request data packet.
2. The information reporting method of claim 1, wherein the encrypting the information reporting request to obtain a reporting request data body comprises:
encrypting the information reporting request by using the key of the main control equipment or the keys of the at least 2 controlled equipment respectively to obtain a reporting request data body;
and after receiving the information request data packet with the receiving equipment ID consistent with the self ID, the controlled equipment decrypts the report request data body in the information request data packet by using the key of the main control equipment or the key of the controlled equipment.
3. The information reporting method according to claim 1, wherein the receiving the information data packets returned by the at least 2 controlled devices includes:
obtaining information data packets respectively returned by the at least 2 controlled devices after receiving the information request data packets; the information data packet is obtained by encapsulating the receiving device ID, the sending device ID and the information data body by the at least 2 controlled devices based on a data format corresponding to a Bluetooth broadcast protocol; the information data body is obtained by encrypting the information reporting request response data by the at least 2 controlled devices by using the key of the master control device or the key of the controlled devices;
and judging whether the ID of the receiving equipment of the acquired information data packet is consistent with the ID of the main control equipment, if so, receiving the information data packet, and if not, discarding the information data packet.
4. The information reporting method of claim 3, wherein the parsing the information data packet to obtain information data to be uploaded comprises:
and decrypting the information data body in the information data packet by using the key of the main control equipment or the key of the controlled equipment corresponding to the transmitted information data packet, and extracting the information data to be uploaded from the decrypted data.
5. An information reporting method is applied to a controlled device, and includes:
establishing Bluetooth communication connection with the master control equipment;
receiving an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol;
sending an information data packet corresponding to the information request data packet to the main control device, so that the main control device analyzes the information request data packet to obtain information data to be uploaded and uploads the information data to be uploaded to a network server through a communication network;
the receiving of the information request data packet sent by the master control device based on the bluetooth broadcast protocol includes:
acquiring an information request data packet sent by the master control equipment based on a Bluetooth broadcast protocol; the information request data packet is obtained by the master control device encapsulating a receiving device ID, a sending device ID and a reporting request data body based on a data format corresponding to a Bluetooth broadcast protocol; the report request data body is obtained by encrypting an information report request by the main control device by using a key of the main control device or a key of the controlled device;
and judging whether the ID of the receiving equipment of the acquired information request data packet is consistent with the ID of the controlled equipment, if not, discarding the information request data packet, and if so, receiving the information request data packet.
6. The information reporting method of claim 5, wherein before sending the information packet corresponding to the information request packet to the master device, the method further comprises:
encrypting reporting request response data by using the key of the master control equipment or the key of the controlled equipment to obtain an information data body;
and packaging the receiving equipment ID, the sending equipment ID and the information data body based on a data format corresponding to a Bluetooth broadcast protocol to obtain the information data packet.
7. An electronic device, comprising a processor and a memory; wherein the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to implement the information reporting method according to any one of claims 1 to 4.
8. An electronic device, comprising a processor and a memory; wherein the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the information reporting method according to claim 5 or 6.
CN202011189885.6A 2020-10-30 2020-10-30 Information reporting method, device, equipment and storage medium Active CN112383881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011189885.6A CN112383881B (en) 2020-10-30 2020-10-30 Information reporting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011189885.6A CN112383881B (en) 2020-10-30 2020-10-30 Information reporting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112383881A CN112383881A (en) 2021-02-19
CN112383881B true CN112383881B (en) 2022-05-06

Family

ID=74576058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011189885.6A Active CN112383881B (en) 2020-10-30 2020-10-30 Information reporting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112383881B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098718A (en) * 2021-03-31 2021-07-09 联想(北京)有限公司 Processing method and electronic equipment
CN114143081B (en) * 2021-11-30 2024-04-19 中国建设银行股份有限公司 Data transmission method and device
CN114513778A (en) * 2022-04-14 2022-05-17 广东南方电信规划咨询设计院有限公司 Wireless data transmission method and system
CN116056016B (en) * 2022-06-29 2024-11-15 荣耀终端有限公司 Prototype information reporting method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469410A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Data transmission method, equipment and system
CN204376951U (en) * 2014-12-18 2015-06-03 中国电子科技集团公司第五十研究所 Many equipment information collections system
CN104717603A (en) * 2014-12-25 2015-06-17 惠州Tcl移动通信有限公司 Method and system for achieving Bluetooth low-power-consumption networking and supporting convenient interconnection
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN208424788U (en) * 2018-05-22 2019-01-22 袁功胜 Data communication system, BLE Bluetooth gateway, BLE equipment based on BLE bluetooth
CN111464955A (en) * 2020-03-06 2020-07-28 珠海格力电器股份有限公司 Fault reporting method, device, terminal and computer readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10863321B2 (en) * 2016-10-21 2020-12-08 Lg Electronics Inc. Method and device for transmitting and receiving data using Bluetooth technology
CN107465764B (en) * 2017-09-20 2021-01-05 诚迈科技(南京)股份有限公司 Star topology based internet of things communication system, gateway equipment and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469410A (en) * 2010-11-02 2012-05-23 中国移动通信集团公司 Data transmission method, equipment and system
CN204376951U (en) * 2014-12-18 2015-06-03 中国电子科技集团公司第五十研究所 Many equipment information collections system
CN104717603A (en) * 2014-12-25 2015-06-17 惠州Tcl移动通信有限公司 Method and system for achieving Bluetooth low-power-consumption networking and supporting convenient interconnection
CN107040874A (en) * 2017-03-07 2017-08-11 建荣半导体(深圳)有限公司 Method, device and the bluetooth equipment of blue-teeth data simultaneously operating
CN208424788U (en) * 2018-05-22 2019-01-22 袁功胜 Data communication system, BLE Bluetooth gateway, BLE equipment based on BLE bluetooth
CN111464955A (en) * 2020-03-06 2020-07-28 珠海格力电器股份有限公司 Fault reporting method, device, terminal and computer readable medium

Also Published As

Publication number Publication date
CN112383881A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN112383881B (en) Information reporting method, device, equipment and storage medium
CN109412937B (en) Gateway, LoRa network system, gateway operation method and storage medium
CN113765713A (en) Data interaction method based on Internet of things equipment acquisition
US9992669B2 (en) Encryption method, decryption method, and related apparatus
CN109309650B (en) Method, terminal device and network device for processing data
CN114938312B (en) Data transmission method and device
CN112261062A (en) Internet of things security access method, gateway and system supporting multi-protocol conversion
CN110650476B (en) Management frame encryption and decryption
CN108900540B (en) Service data processing method of power distribution terminal based on double encryption
CN101562516A (en) Data synchronous method, client, server and system
CN111372056A (en) Video data encryption and decryption processing method and device
CN113676315B (en) Slicing application method of star-ground integrated quantum network
CN110635894B (en) Quantum key output method and system based on frame protocol format
CN102045343B (en) DC (Digital Certificate) based communication encrypting safety method, server and system
CN112230626B (en) Vehicle diagnostic data reporting method, device, equipment and storage medium
CN104038931A (en) LTE (Long Term Evolution) network based power distribution and utilization communication system and communication method thereof
CN114978591B (en) A field area network data interaction system and method based on security protection
CN114124914B (en) Data security transmission method, device, computer equipment and storage medium
CN113973123B (en) Multi-access mode encryption Internet of things communication method and system
CN101388796A (en) Information sending processing method, communication equipment and communication system
WO2008122182A1 (en) A data transmission method and terminals
CN109194416B (en) Information transmission method and device, computer equipment and storage medium
US12170658B2 (en) Networking method for household appliance, household appliance, and terminal device
CN101217532B (en) An anti-network attack data transmission method and system
CN101123538B (en) Remote encryption supervision method of wireless local area network communication interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant