CN116132093A - Information transmission method, device and storage medium - Google Patents

Information transmission method, device and storage medium Download PDF

Info

Publication number
CN116132093A
CN116132093A CN202211473864.6A CN202211473864A CN116132093A CN 116132093 A CN116132093 A CN 116132093A CN 202211473864 A CN202211473864 A CN 202211473864A CN 116132093 A CN116132093 A CN 116132093A
Authority
CN
China
Prior art keywords
target
data set
information
sending
communication mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211473864.6A
Other languages
Chinese (zh)
Inventor
李建峰
刘丹
乔雨
周震峰
张晓宇
杨富雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211473864.6A priority Critical patent/CN116132093A/en
Publication of CN116132093A publication Critical patent/CN116132093A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses an information transmission method, an information transmission device and a storage medium. The method comprises the following steps: the receiving end acquires acquisition data sent by each sending end through a preset communication mode to obtain a plurality of target acquisition data; replacing a historical collection data set in a database by a plurality of target collection data to obtain a target collection data set; encrypting the target acquisition data set to obtain an encrypted data set, transmitting the encrypted data set to a user side, and receiving instruction information transmitted by the user side according to the encrypted data set; determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end. According to the method and the device, the problem that information collection and information transmission in a part of areas cannot be carried out due to the fact that a network of a conventional gateway is unstable in the part of areas in the related art is solved.

Description

Information transmission method, device and storage medium
Technical Field
The present invention relates to the field of data transmission, and in particular, to an information transmission method, apparatus, and storage medium.
Background
Currently, with the large-scale application of the internet of things technology, deployment of internet of things equipment is required at a part of remote sites, so that information acquisition and information transmission in the remote sites are completed. However, because the basic equipment in the remote area is configured poorly, the conventional gateway is used for information collection and information transfer, and the data cannot be normally transmitted from the lower end of the data source to the upper end of the data source due to the remote area, so that the user cannot successfully receive the information sent by the internet of things, and meanwhile, the control information cannot be sent to the internet of things equipment, and the user cannot normally use the internet of things equipment.
Aiming at the problem that the information collection and information transmission of the partial area cannot be carried out due to the fact that the network of the conventional gateway is unstable in the partial area in the related art, no effective solution is proposed at present.
Disclosure of Invention
The application provides an information transmission method, an information transmission device and a storage medium, which are used for solving the problem that in the related art, the information collection and information transmission of a part of areas cannot be carried out due to the fact that the network of a conventional gateway is unstable in the part of areas.
According to one aspect of the present application, there is provided an information transmission method. The method comprises the following steps: the method comprises the steps that a receiving end obtains collected data sent by each sending end through a preset communication mode to obtain a plurality of target collected data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode; replacing a historical collection data set in a database by a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data; encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to a user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for instructing a target sending side to execute the target operation; determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end.
Optionally, the receiving end obtains the collected data sent by each sending end through a preset communication mode, and obtaining the plurality of target collected data includes: and under the condition that the receiving end cannot receive the acquired data through the preset communication mode, adopting a standby communication mode to receive the acquired data, wherein the standby communication mode is any communication mode other than the preset communication mode.
Optionally, before the receiving end obtains the collected data sent by each sending end through the preset communication mode to obtain the plurality of target collected data, the method further includes: detecting the distance between each sending end and each receiving end to obtain a plurality of target distances; under the condition that the target distance is smaller than the preset distance, determining a preset communication mode between the sending end and the receiving end as a radio communication mode; and under the condition that the target distance is greater than or equal to the preset distance, determining the preset communication mode between the sending end and the receiving end as a wired communication mode.
Optionally, replacing the historical collection data set in the database with the plurality of target collection data sets, the obtaining the target collection data set includes: judging whether each target acquisition data is empty or not in sequence; under the condition that the current target acquisition data is not empty, determining a transmitting end for transmitting the current target acquisition data to obtain a first transmitting end; acquiring transmitting end information of a first transmitting end, and triggering flag bit information associated with the transmitting end information; and determining the data to be changed in the historical acquisition data set according to the zone bit information, and replacing the data to be changed by using the current target acquisition data to obtain the target acquisition data, wherein the zone bit information of the data to be changed is the same as the zone bit information associated with the information of the transmitting end.
Optionally, replacing the historical collection data set in the database with the plurality of target collection data sets, the obtaining the target collection data set includes: judging whether the plurality of target acquisition data are empty or not, and keeping the historical acquisition data set unchanged under the condition that the plurality of target acquisition data are empty; and/or determining whether the historical acquisition data set is identical to the target acquisition data set; in the case where the historical acquisition data set is identical to the target acquisition data set, the historical acquisition data set is kept unchanged.
Optionally, after replacing the historical collection data set in the database with the plurality of target collection data to obtain the target collection data set, the method further comprises: determining the execution times of continuously executing the steps for keeping the historical acquisition data set unchanged, and obtaining target execution times; and sending out alarm information under the condition that the target execution times are greater than the preset times, wherein the alarm information represents that the receiving end is abnormal.
Optionally, sending the encrypted data set to the user terminal includes: judging whether the receiving end is connected to a preset network or not; under the condition that the receiving end is connected to a preset network, an information transmission protocol is established between the receiving end and the user end through the preset network, and after the information transmission protocol is established, an encrypted data set is sent to the user end through the preset network; and under the condition that the receiving end is not connected to the preset network, an information transmission protocol is established with the user end through a preset network card in the receiving end, and after the information transmission protocol is established, the encrypted data set is sent to the user end through the preset network card.
Optionally, determining the target sending end indicated by the instruction information and sending the instruction information to the target sending end includes: analyzing the instruction information to obtain a target instruction and target equipment, wherein the target instruction is used for indicating the target equipment to execute operation; and determining a transmitting end corresponding to the target equipment according to the equipment number of the target equipment, obtaining a target transmitting end, and transmitting a target instruction to the target transmitting end.
According to another aspect of the present application, there is provided an information transmission apparatus. The device comprises: the receiving unit is used for acquiring acquisition data sent by each sending end through a preset communication mode to obtain a plurality of target acquisition data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode; the replacing unit is used for replacing the historical collection data set in the database through a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data; the sending unit is used for encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to the user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for indicating the target sending side to execute the target operation; the first determining unit is used for determining a target sending end indicated by the instruction information and sending the instruction information to the target sending end.
According to another aspect of the embodiment of the present invention, there is also provided a computer storage medium for storing a program, where the program controls an apparatus in which the computer storage medium is located to execute an information transmission method when running.
According to another aspect of embodiments of the present invention, there is also provided an electronic device including one or more processors and a memory; the memory has stored therein computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions when executed perform a method of information transmission.
Through the application, the following steps are adopted: the method comprises the steps that a receiving end obtains collected data sent by each sending end through a preset communication mode to obtain a plurality of target collected data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode; replacing a historical collection data set in a database by a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data; encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to a user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for instructing a target sending side to execute the target operation; determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end. The method solves the problem that the information collection and the information transmission of the partial area cannot be carried out due to the fact that the network of the conventional gateway is unstable in the partial area in the related art. The data sent by the sending end is collected by adopting a plurality of preset communication modes, old data is replaced by the new data, the new data is encrypted and sent to the user end after the replacement, the indication response information of the user end to the data is received, and then the indication response information is sent to the corresponding sending end by the preset communication modes, so that the sending end is controlled, and then the information is transmitted by flexibly adjusting the communication modes under different environments of the sending end, so that the effects of stably and rapidly collecting and transmitting the information to any area are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a schematic diagram of an alternative information delivery system provided in accordance with an embodiment of the present application;
fig. 2 is a flowchart of an information transmission method provided according to an embodiment of the present application;
FIG. 3 is a flow chart of an alternative information transmission method provided in accordance with an embodiment of the present application;
fig. 4 is a schematic diagram of an information transmission device according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
In this embodiment, as shown in fig. 1, an optional information transmission system is used as an execution body to execute the foregoing information transmission method, where the information transmission method at least includes: the multiple sending ends 101, the receiving ends 102 and the user end 103, wherein the multiple sending ends 101 and the receiving ends 102 comprise multiple transmission devices, such as RS485 wired transmission and Long Range Radio (Long Range Radio) wireless transmission, the user end 103 can be a cloud server and the like, and the sending ends 101 can be reversely controlled through the receiving ends 102.
For example, the receiving end 102 may use the STMF103C8T6 as a master control chip of the receiving end device, and combine RS485 wired transmission and LORA wireless transmission to satisfy the data transmission task. The device is uploaded to the cloud server through ESP8266 uploading equipment through simple storage and calculation of a memory W25Q128 in the receiving end device. And finally can be displayed in a display screen and a cloud service server.
According to an embodiment of the application, an information transmission method is provided.
Fig. 2 is a flowchart of an information transmission method provided according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S202, a receiving end obtains collected data sent by each sending end through a preset communication mode to obtain a plurality of target collected data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode.
Specifically, the receiving end may be gateway equipment, an STMF103C8T6 chip may be used as a main control chip of the gateway equipment, and the transmitting end may be a sensor, a signal collector or an internet of things device disposed in different areas. When the receiving end needs to receive the information sent by a certain sending end, the sending end is provided with a preset communication mode, so that the receiving end can receive the information sent by the sending end by setting the communication mode which is the same as the preset communication mode of the sending end, and the receiving end can stably and accurately receive the information sent by the sending end in different regions.
For example, the communication modes may include a radio communication mode (LORA) and a wired communication mode (RS 485), wherein the LORA wireless communication has an effective communication distance of about 400 meters in an ideal case, but has weak interference resistance. 485 is wire communication, the communication distance is long, but the arrangement is comparatively complicated, therefore, the communication mode used when the receiving end receives the information sent by the sending end can be flexibly determined according to the position of the sending end, thereby obtaining the effect of accurately receiving the information sent by the sending end.
Step S204, replacing the historical collection data set in the database by a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data.
Specifically, when the receiving end receives the information sent by the sending end, the obtained information can be determined to be a plurality of target acquisition data, wherein each target acquisition data is the data information sent by one sending end. After the plurality of target collection data are obtained, the historical collection data set in the database can be replaced by the plurality of target collection data, wherein the historical collection data set comprises the historical collection data of a plurality of sending ends, so that after the plurality of target collection data are obtained, the sending end equipment can be distinguished according to the sending end information of the target collection data, such as the equipment name or the equipment number of the sending end equipment, the historical collection data in the database are replaced by the target collection data of the sending end equipment, the information update in the database is completed, and a user end can receive the latest sending end collection data.
Step S206, encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to the user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for indicating the target sending side to execute the target operation.
Specifically, the target collection data set includes the replaced historical collection data set, for example, the historical collection data set includes data corresponding to 10 sending ends, when the receiving end receives the collection data sent by 5 sending ends, the receiving end can update the historical collection data of the corresponding 5 sending ends in the historical collection data set by using the received 5 collection data, and the rest 5 historical collection data keep the original data unchanged, so that 10 updated data are obtained, and the target collection data set is obtained.
Further, after the target acquisition data set is obtained, a TEA (Tiny Encryption Algorithm micro encryption algorithm) encryption algorithm can be adopted to encrypt data in the target acquisition data set, so that the encrypted data set is obtained, wherein the TEA encryption algorithm has the characteristics of simple encryption method, high encryption speed and no increase of data volume. The TEA algorithm is a block cipher algorithm with a plaintext block of 64 bits and a key length of 128 bits. The TEA algorithm uses the added Delta value as a variable quantity, so that the encryption result of each round is different, and the encryption algorithm realizes data encryption through the iterative addition of different rounds. The reliability of the TEA algorithm is guaranteed by the number of encryption rounds rather than the complexity of the algorithm, and mainly shift and exclusive-or operations are used. The key is unchanged throughout the encryption process.
After the encrypted data set is obtained, the encrypted data set can be sent to the user side, and instruction information sent by the user side is received, so that the sending side equipment is controlled according to the instruction information, wherein the instruction information is that after the user processes the encrypted data set, the sending side is controlled according to data in the encrypted data set, and further adjustment of the sending side equipment is completed.
Step S208, determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end.
Specifically, after the receiving end receives the instruction information sent by the user end, the receiving end can acquire target sending end information in the instruction information, such as information of a target sending end equipment name and the like, and send the instruction information to the target sending end in a preset communication mode through the sending end information, so that the target sending end can perform corresponding operation according to the instruction information, and the effect of accurately controlling the sending end is achieved.
According to the information transmission method provided by the embodiment of the application, the acquisition data sent by each sending end through a preset communication mode are acquired through the receiving end, so that a plurality of target acquisition data are obtained, wherein the preset communication modes comprise a radio communication mode and a wired communication mode; replacing a historical collection data set in a database by a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data; encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to a user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for instructing a target sending side to execute the target operation; determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end. The method solves the problem that the information collection and the information transmission of the partial area cannot be carried out due to the fact that the network of the conventional gateway is unstable in the partial area in the related art. The data sent by the sending end is collected by adopting a plurality of preset communication modes, old data is replaced by the new data, the new data is encrypted and sent to the user end after the replacement, the indication response information of the user end to the data is received, and then the indication response information is sent to the corresponding sending end by the preset communication modes, so that the sending end is controlled, and then the information is transmitted by flexibly adjusting the communication modes under different environments of the sending end, so that the effects of stably and rapidly collecting and transmitting the information to any area are achieved.
Optionally, in the information transmission method provided in the embodiment of the present application, the receiving end obtains collected data sent by each sending end through a preset communication mode, and obtaining multiple target collected data includes: and under the condition that the receiving end cannot receive the acquired data through the preset communication mode, adopting a standby communication mode to receive the acquired data, wherein the standby communication mode is any communication mode other than the preset communication mode.
Specifically, under some special conditions, due to the fact that the preset communication equipment in the transmitting end fails, under the condition that information cannot be received through the preset communication mode, the receiving end can be controlled to change the preset communication mode, any one of other communication modes is adopted for receiving information, and therefore the receiving end can timely receive collected data sent by the transmitting end.
Optionally, in the information transmission method provided in the embodiment of the present application, before the receiving end obtains the collected data sent by each sending end through the preset communication mode, and obtains a plurality of target collected data, the method further includes: detecting the distance between each sending end and each receiving end to obtain a plurality of target distances; under the condition that the target distance is smaller than the preset distance, determining a preset communication mode between the sending end and the receiving end as a radio communication mode; and under the condition that the target distance is greater than or equal to the preset distance, determining the preset communication mode between the sending end and the receiving end as a wired communication mode.
Specifically, when the preset communication mode is determined, the preset communication mode between the transmitting end and the receiving end can be determined by a method for determining the distance between the transmitting end and the receiving end. When the target distance is larger, that is, the target distance is larger than the preset distance, the preset communication mode is determined to be a wired communication mode, such as RS485 wired transmission, and when the target distance is smaller, that is, the target distance is smaller than the preset distance, the preset communication mode is determined to be a wireless communication mode, such as LORA wireless transmission, so that the effect of guaranteeing the accuracy of information transmission is achieved.
Optionally, in the information transmission method provided in the embodiment of the present application, replacing the historical collection data set in the database with the plurality of target collection data, obtaining the target collection data set includes: judging whether each target acquisition data is empty or not in sequence; under the condition that the current target acquisition data is not empty, determining a transmitting end for transmitting the current target acquisition data to obtain a first transmitting end; acquiring transmitting end information of a first transmitting end, and triggering flag bit information associated with the transmitting end information; and determining the data to be changed in the historical acquisition data set according to the zone bit information, and replacing the data to be changed by using the current target acquisition data to obtain the target acquisition data, wherein the zone bit information of the data to be changed is the same as the zone bit information associated with the information of the transmitting end.
Specifically, after the target acquisition data is acquired, whether the target acquisition data is empty or not needs to be determined, that is, there may be no information sent to the receiving end, and under the condition that the information sent to the receiving end exists, the information of the sending end needs to be acquired from the target acquisition data, and the flag bit information of the sending end in the receiving end is triggered, wherein the flag bit information corresponding to each sending end exists in the receiving end, and after the acquisition data sent by the sending end corresponding to the flag bit information is received each time, the flag bit information changes, so that the receiving end is informed of which sending end the acquisition information is sent by.
For example, the flag bit of the transmitting end a may be 0 and 1, after the receiving end receives the information sent by the transmitting end a, the current 0 may be changed to 1, so that the receiving end recognizes that the received data is the data sent by the transmitting end a, and when the receiving end receives the data sent by the transmitting end a again, the flag bit is changed to 0 from 1, so that the transmitting end receiving the data is recognized through the change of the flag bit.
After the flag bit information is triggered, the receiving end can determine the transmitting end information corresponding to the received acquisition data through the flag bit information, and update the historical acquisition data with the same transmitting end information in the database according to the transmitting end information, so that updated target acquisition data is obtained.
Optionally, in the information transmission method provided in the embodiment of the present application, replacing the historical collection data set in the database with the plurality of target collection data, obtaining the target collection data set includes: judging whether the plurality of target acquisition data are empty or not, and keeping the historical acquisition data set unchanged under the condition that the plurality of target acquisition data are empty; and/or determining whether the historical acquisition data set is identical to the target acquisition data set; in the case where the historical acquisition data set is identical to the target acquisition data set, the historical acquisition data set is kept unchanged.
Particularly, under a certain condition, all the collected data received by the receiving end are empty, or the received collected data are identical to all the historical collected data in the historical collected data set, at the moment, the data in the database can be kept unchanged, and the historical collected data set in the database is encrypted and then sent to the user end, so that the flow of data change is reduced, and the efficiency of data processing is improved.
Optionally, in the information transmission method provided in the embodiment of the present application, after replacing the historical collection data set in the database with the plurality of target collection data to obtain the target collection data set, the method further includes: determining the execution times of continuously executing the steps for keeping the historical acquisition data set unchanged, and obtaining target execution times; and sending out alarm information under the condition that the target execution times are greater than the preset times, wherein the alarm information represents that the receiving end is abnormal.
Specifically, under the condition that the receiving end receives multiple empty data or all data are unchanged, the receiving end is characterized in that the receiving end possibly has abnormality, so that all data sent by the sending end cannot be displayed or all the data are historical data, and therefore the receiving end needs to send alarm information, thereby informing staff that the receiving end has the problem of abnormal data reception and needs to be processed in time.
Optionally, in the information transmission method provided in the embodiment of the present application, sending the encrypted data set to the user side includes: judging whether the receiving end is connected to a preset network or not; under the condition that the receiving end is connected to a preset network, an information transmission protocol is established between the receiving end and the user end through the preset network, and after the information transmission protocol is established, an encrypted data set is sent to the user end through the preset network; and under the condition that the receiving end is not connected to the preset network, an information transmission protocol is established with the user end through a preset network card in the receiving end, and after the information transmission protocol is established, the encrypted data set is sent to the user end through the preset network card.
Specifically, when data is sent from the receiving end to the user end, a communication protocol is first established between the receiving end and the user end, for example: after the information transmission protocol is established, the TCP (Transmission Control Protocol transmission control protocol) communication protocol uses a preset network to send the encrypted data set to the user terminal, wherein the preset network can upload information for wifi equipment, and can use a preset network card, such as a network connection service in a SIM card, or use a wireless network card to connect the user terminal under the condition that the preset network abnormality can not be successfully connected into the preset network, so that the user terminal can successfully receive data sent by the receiving terminal, and further can timely operate the sending terminal according to the encrypted acquired data.
Optionally, in the information transmission method provided in the embodiment of the present application, determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end includes: analyzing the instruction information to obtain a target instruction and target equipment, wherein the target instruction is used for indicating the target equipment to execute operation; and determining a transmitting end corresponding to the target equipment according to the equipment number of the target equipment, obtaining a target transmitting end, and transmitting a target instruction to the target transmitting end.
Specifically, after the receiving end receives the instruction information, the receiving end can firstly analyze the instruction information to obtain target equipment in the instruction information, wherein the target equipment is the transmitting end equipment needing to be controlled, and then the corresponding number information of the transmitting end can be determined according to the equipment number of the target equipment, so that the target transmitting end equipment needing to be controlled is determined, the target instruction in the instruction information is transmitted to the target transmitting end, and further, a user can control the transmitting end equipment at the user end.
Fig. 3 is a flowchart of an alternative information transmission method provided according to an embodiment of the present application, as shown in fig. 3, a receiving end receives collected data sent by a plurality of sending ends through RS485 wired transmission or LORA wireless transmission, and temporarily stores the collected data in a gateway device, at this time, the gateway device checks each flag bit information at regular time, determines a sending end device corresponding to the changed flag bit information when detecting that the flag bit information changes, changes corresponding historical collected data in a database, obtains a target collected data set obtained by updating the historical collected data set in the database, sends the encrypted target collected data set to a client server through WIFI or a wireless network card, receives instruction information returned by the client server, and sends the instruction information to the corresponding sending end device, thereby completing control of the sending end device, further achieving the effect of stably and quickly carrying out information collection and information transfer on any area by flexibly adjusting transmission of the communication mode in different environments, and achieving the effect of the sending end and the control of the sending end.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides an information transmission device, and it should be noted that the information transmission device of the embodiment of the application can be used for executing the information transmission method provided by the embodiment of the application. The information transmission device provided in the embodiment of the present application is described below.
Fig. 4 is a schematic diagram of an information transmission device according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a receiving unit 41, a replacing unit 42, a transmitting unit 43, a first determining unit 44.
The receiving unit 41 is configured to obtain, by the receiving end, the collected data sent by each sending end through a preset communication manner, and obtain a plurality of target collected data, where the preset communication manner includes a radio communication manner and a wired communication manner.
And a replacing unit 42, configured to replace the historical collection data set in the database with a plurality of target collection data to obtain a target collection data set, where the historical collection data set includes a plurality of historical collection data.
The sending unit 43 is configured to encrypt the target collected data set to obtain an encrypted data set, send the encrypted data set to the user side, and receive instruction information sent by the user side according to the encrypted data set, where the instruction information includes a target operation, and the instruction information is used to instruct the target sending side to execute the target operation.
The first determining unit 44 is configured to determine a target transmitting end indicated by the instruction information, and transmit the instruction information to the target transmitting end.
According to the information transmission device provided by the embodiment of the application, the receiving end of the receiving unit 41 obtains the collected data sent by each sending end through the preset communication mode, so as to obtain a plurality of target collected data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode. The replacing unit 42 replaces the historical collection data set in the database with a plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data. The sending unit 43 encrypts the target collected data set to obtain an encrypted data set, sends the encrypted data set to the user side, and receives instruction information sent by the user side according to the encrypted data set, where the instruction information includes a target operation, and the instruction information is used to instruct the target sending side to execute the target operation. The first determination unit 44 determines a target transmitting end indicated by the instruction information, and transmits the instruction information to the target transmitting end. The method solves the problem that the information collection and the information transmission of the partial area cannot be carried out due to the fact that the network of the conventional gateway is unstable in the partial area in the related art. The data sent by the sending end is collected by adopting a plurality of preset communication modes, old data is replaced by the new data, the new data is encrypted and sent to the user end after the replacement, the indication response information of the user end to the data is received, and then the indication response information is sent to the corresponding sending end by the preset communication modes, so that the sending end is controlled, and then the information is transmitted by flexibly adjusting the communication modes under different environments of the sending end, so that the effects of stably and rapidly collecting and transmitting the information to any area are achieved.
Alternatively, in the information transmission apparatus provided in the embodiment of the present application, the receiving unit 41 includes: and the receiving module is used for receiving the acquired data by adopting a standby communication mode under the condition that the receiving end cannot receive the acquired data through a preset communication mode, wherein the standby communication mode is any communication mode other than the preset communication mode.
Optionally, in the information transmission device provided in the embodiment of the present application, the device further includes: the detection unit is used for detecting the distance between each sending end and each receiving end to obtain a plurality of target distances; a second determining unit, configured to determine a preset communication mode between the transmitting end and the receiving end as a radio communication mode when the target distance is smaller than the preset distance; and the third determining unit is used for determining a preset communication mode between the sending end and the receiving end as a wired communication mode under the condition that the target distance is larger than or equal to the preset distance.
Alternatively, in the information transmission device provided in the embodiment of the present application, the replacing unit 42 includes: the first judging module is used for judging whether each target acquisition data is empty or not in sequence; the first determining module is used for determining a transmitting end for transmitting the current target acquisition data under the condition that the current target acquisition data is not empty, so as to obtain a first transmitting end; the acquisition module is used for acquiring the transmitting end information of the first transmitting end and triggering the zone bit information associated with the transmitting end information; the second determining module is used for determining data to be changed in the historical acquisition data set according to the zone bit information, and replacing the data to be changed by using the current target acquisition data to obtain target acquisition data, wherein the zone bit information of the data to be changed is the same as the zone bit information associated with the information of the transmitting end.
Alternatively, in the information transmission device provided in the embodiment of the present application, the replacing unit 42 includes: the second judging module is used for judging whether the plurality of target acquisition data are all empty or not, and keeping the historical acquisition data set unchanged under the condition that the plurality of target acquisition data are all empty; and/or a third judging module, which is used for judging whether the historical collection data set is identical to the target collection data set; and the maintaining module is used for maintaining the historical collection data set unchanged under the condition that the historical collection data set is identical to the target collection data set.
Optionally, in the information transmission device provided in the embodiment of the present application, the device further includes: a fourth determining unit, configured to determine the number of execution times of continuously executing the step of keeping the history acquisition data set unchanged, to obtain a target number of execution times; and the alarm unit is used for sending alarm information under the condition that the target execution times are greater than the preset times, wherein the alarm information represents that the receiving end is abnormal.
Alternatively, in the information transmission apparatus provided in the embodiment of the present application, the transmitting unit 43 includes: a fourth judging module, configured to judge whether the receiving end is connected to a preset network; the first sending module is used for establishing an information transmission protocol with the user terminal through the preset network under the condition that the receiving terminal is connected to the preset network, and sending the encrypted data set to the user terminal through the preset network after the information transmission protocol is established; the second sending module is used for establishing an information transmission protocol with the user terminal through a preset network card in the receiving terminal under the condition that the receiving terminal is not connected to the preset network, and sending the encrypted data set to the user terminal through the preset network card after the information transmission protocol is established.
Optionally, in the information transmission apparatus provided in the embodiment of the present application, the first determining unit 44 includes: the analysis module is used for analyzing the instruction information to obtain a target instruction and target equipment, wherein the target instruction is used for indicating the target equipment to execute the operation; and the third sending module is used for determining a sending end corresponding to the target equipment according to the equipment number of the target equipment, obtaining the target sending end and sending a target instruction to the target sending end.
The information transmission apparatus includes a processor and a memory, the receiving unit 41, the replacing unit 42, the transmitting unit 43, the first determining unit 44, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize the corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem that information collection and information transmission in partial areas cannot be carried out due to the fact that a network of a conventional gateway is unstable in the partial areas in the related art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements the information transmission method.
The embodiment of the invention provides a processor which is used for running a program, wherein the information transmission method is executed when the program runs.
The embodiment of the invention provides an electronic device, which comprises a processor, a memory and a program stored on the memory and capable of running on the processor, wherein the processor realizes the information transmission method when executing the program. The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform a program initialized with the following information transfer method steps when executed on a data processing device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. An information transmission method, comprising:
the method comprises the steps that a receiving end obtains collected data sent by each sending end through a preset communication mode to obtain a plurality of target collected data, wherein the preset communication modes comprise a radio communication mode and a wired communication mode;
Replacing a historical collection data set in a database with the plurality of target collection data to obtain a target collection data set, wherein the historical collection data set comprises a plurality of historical collection data;
encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to a user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for indicating a target sending side to execute the target operation;
determining a target sending end indicated by the instruction information, and sending the instruction information to the target sending end.
2. The method of claim 1, wherein the receiving end obtains the collected data sent by each sending end through a preset communication mode, and obtaining the plurality of target collected data includes:
and under the condition that the receiving end cannot receive the acquired data through the preset communication mode, adopting a standby communication mode to receive the acquired data, wherein the standby communication mode is any communication mode other than the preset communication mode.
3. The method according to claim 1, wherein before the receiving end obtains the collected data sent by each sending end through the preset communication manner, the method further comprises:
Detecting the distance between each sending end and the receiving end to obtain a plurality of target distances;
when the target distance is smaller than a preset distance, determining a preset communication mode between the sending end and the receiving end as the radio communication mode;
and under the condition that the target distance is greater than or equal to a preset distance, determining a preset communication mode between the sending end and the receiving end as the wired communication mode.
4. The method of claim 1, wherein replacing the historical collection dataset in the database with the plurality of target collection data comprises:
judging whether each target acquisition data is empty or not in sequence;
under the condition that the current target acquisition data is not empty, determining a transmitting end for transmitting the current target acquisition data to obtain a first transmitting end;
acquiring the transmitting end information of the first transmitting end and triggering the zone bit information associated with the transmitting end information;
and determining the data to be changed in the historical acquisition data set according to the zone bit information, and replacing the data to be changed by using the current target acquisition data to obtain target acquisition data, wherein the zone bit information of the data to be changed is the same as the zone bit information associated with the sender information.
5. The method of claim 1, wherein replacing the historical collection dataset in the database with the plurality of target collection data comprises:
judging whether the plurality of target acquisition data are all empty or not, and keeping the historical acquisition data set unchanged under the condition that the plurality of target acquisition data are all empty; and/or
Judging whether the historical acquisition data set is identical to the target acquisition data set or not;
and keeping the historical acquisition data set unchanged under the condition that the historical acquisition data set is identical to the target acquisition data set.
6. The method of claim 5, wherein after replacing the historical collection data set in the database with the plurality of target collection data to obtain the target collection data set, the method further comprises:
determining the execution times of continuously executing the steps for keeping the historical acquisition data set unchanged, and obtaining target execution times;
and sending out alarm information under the condition that the target execution times are larger than preset times, wherein the alarm information represents that the receiving end is abnormal.
7. The method of claim 1, wherein transmitting the encrypted data set to a client comprises:
Judging whether the receiving end is connected to a preset network or not;
under the condition that the receiving end is connected to the preset network, an information transmission protocol is established between the receiving end and the user end through the preset network, and after the information transmission protocol is established, the encrypted data set is sent to the user end through the preset network;
and under the condition that the receiving end is not connected to the preset network, an information transmission protocol is established with the user end through a preset network card in the receiving end, and after the information transmission protocol is established, the encrypted data set is sent to the user end through the preset network card.
8. The method of claim 1, wherein determining a target sender indicated by the instruction information and sending the instruction information to the target sender comprises:
analyzing the instruction information to obtain a target instruction and target equipment, wherein the target instruction is used for indicating the target equipment to execute operation;
and determining a transmitting end corresponding to the target equipment according to the equipment number of the target equipment, obtaining a target transmitting end, and transmitting the target instruction to the target transmitting end.
9. An information transmission apparatus, comprising:
the receiving unit is used for acquiring acquisition data sent by each sending end through a preset communication mode to obtain a plurality of target acquisition data, wherein the preset communication mode comprises a radio communication mode and a wired communication mode;
the replacing unit is used for replacing the historical collection data sets in the database through the plurality of target collection data to obtain the target collection data sets, wherein the historical collection data sets comprise a plurality of historical collection data;
the sending unit is used for encrypting the target acquisition data set to obtain an encrypted data set, sending the encrypted data set to a user side, and receiving instruction information sent by the user side according to the encrypted data set, wherein the instruction information comprises target operation, and the instruction information is used for indicating a target sending end to execute the target operation;
the first determining unit is used for determining a target sending end indicated by the instruction information and sending the instruction information to the target sending end.
10. A computer storage medium for storing a program, wherein the program when run controls a device in which the computer storage medium is located to perform the information transmission method according to any one of claims 1 to 7.
CN202211473864.6A 2022-11-22 2022-11-22 Information transmission method, device and storage medium Pending CN116132093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211473864.6A CN116132093A (en) 2022-11-22 2022-11-22 Information transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211473864.6A CN116132093A (en) 2022-11-22 2022-11-22 Information transmission method, device and storage medium

Publications (1)

Publication Number Publication Date
CN116132093A true CN116132093A (en) 2023-05-16

Family

ID=86301644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211473864.6A Pending CN116132093A (en) 2022-11-22 2022-11-22 Information transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116132093A (en)

Similar Documents

Publication Publication Date Title
US9467825B2 (en) Alerts based on vehicle and device telematics
KR102133072B1 (en) Transmission of beacon message
CN110832911B (en) Method, apparatus and system for providing wireless network speed information
CN109522462B (en) Cloud query method, device, equipment and storage medium based on block chain
US20160150425A1 (en) System and method of providing a synthetic transaction platform for analyzing communication between a mobile device and a wireless network
KR101559059B1 (en) Method for M2M application service and device therefor
KR102186315B1 (en) Method and apparatus for fast sampling of data of satellite state variables
WO2017088293A1 (en) Method and device for providing access information of wireless access point
EP3261368B1 (en) Correlating a route with a wifi network operation
CN116132093A (en) Information transmission method, device and storage medium
KR20160133107A (en) Cold chain realtime monitoring system using smart phone
JP6925889B2 (en) Relay device, transmission processing program
EP2963629B1 (en) System and method of providing context sensitive help for alarm system installation
US10545217B2 (en) Systems and methods for electronic device fleet management
US9681328B2 (en) Multiple modem device including notification modem
CN110362773B (en) Cross-domain communication method, device, computer equipment and storage medium
JP6341212B2 (en) Information collection system, server device, edge device, control method, and program
CN109347979B (en) Query method and server
JP6868582B2 (en) Relay device, communication system and communication history storage method
EP3383082B1 (en) Providing connectivity information
CN114691443A (en) Cross section data sending method and device, electronic equipment and storage medium
US10574739B2 (en) System and method for smart event paging
US10455349B2 (en) Contextual filtering in a historian system
US9148357B2 (en) System and method for object abstraction and logging
CN111722949B (en) Information processing method, terminal, server and storage medium

Legal Events

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