Lora-based offshore liquid level alarm method and alarm device
Patent Information
- Application Number
- CN202411547934.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-21
AI Technical Summary
该方式在无运营商基站覆盖地方无法正常工作,尤其是海上工作时进行通讯
本发明采用的报警方法可以适配目前海上使用的所有对讲机,使用范围广泛;同时对传输的数据进行加密,增强报警信息的准确性。
Smart Images

Figure CN119339524A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of liquid level telemetry, and in particular to a LORA-based offshore liquid level alarm method and alarm device. Background Art
[0002] When offshore workers are working at sea, the signal range of the operator's base station often does not cover all areas at sea, and walkie-talkies are still used as the main communication method. Offshore liquid level monitoring is often the primary task of offshore workers. The liquid level alarm system on the market mainly uses lora technology combined with operator 4G / 5G communication to transmit alarm information to smartphones, which is not conducive to use by offshore workers.
[0003] The existing lora level alarm system usually uses Ethernet to connect to smart terminals or uses 4G / 5G communication to connect to smart phones and send alarm signals when an alarm signal is generated. This method cannot work properly in places without operator base station coverage, especially when communicating at sea.
[0004] In summary, it is now necessary to design a marine liquid level alarm method and alarm device based on Lora to solve the above technical problems in the prior art. Summary of the invention
[0005] In order to solve the above problems in the prior art, the present invention provides a marine liquid level alarm method and alarm device based on Lora, which can increase the communication distance while ensuring the reliability of communication.
[0006] In order to achieve the above object, the present invention adopts the following technical scheme: A method for offshore liquid level alarm based on Lora, comprising the following steps: Bind the intercom and lora module; After initializing the LoRa module, public and private keys are generated; the public and private keys are used to encrypt data between the LoRa receiver and the LoRa sender; When the LoRa transmitter collects the liquid level alarm information, it encrypts it with the public and private keys and sends the alarm frame to the LoRa receiver. The lora receiver processes the received alarm frame to obtain an alarm signal that can be recognized by the walkie-talkie, and sends the alarm signal to the walkie-talkie that matches it.
[0007] In some embodiments of the present invention, the binding of the intercom and the lora module includes: The lora module reads and calls authentication information, or parses the voice signal sent by the intercom and generates an authentication identification code; The lora module stores the authentication identification code.
[0008] In some embodiments of the present invention, generating public and private keys after initializing the lora module includes: The lora transmitter matches the lora receiver and generates a matching information identification code, and the lora transmitter stores the matching information identification code; After the lora receiving end receives the response frame of the matching information identification code, it generates public and private keys in combination with the authentication information.
[0009] In some embodiments of the present invention, a LORA-based offshore liquid level alarm device is provided, comprising: A lora transmitter, which is arranged in an offshore device; the lora transmitter comprises a first lora module, a liquid level sensor, a first control unit and a first data processing module; the liquid level sensor is used to collect a liquid level alarm signal; the first control unit is connected to the liquid level sensor to receive the alarm signal; A lora receiving end, which is located at the control end, and the lora receiving end includes a second lora module, a second control unit and a second data processing module; wherein the first lora module is communicatively connected with the second lora module; An intercom is communicatively connected with the lora receiving end; it is used to send voice signals and receive alarm signals.
[0010] In some embodiments of the present invention, the first data processing module is communicatively connected to the first control unit; the first data processing module includes a first protocol processing unit and a matching information storage unit; the first protocol processing unit is used to parse matching information; the first control unit is used to generate a matching information identification code based on the parsed matching information and pass it to the matching information storage unit for storage.
[0011] In some embodiments of the present invention, the second data processing module includes a data conversion unit, a second protocol processing unit and an authentication information storage unit; the second protocol processing unit is used to parse the voice signal; the second control unit is used to generate an authentication information identification code based on the parsed voice signal and pass it to the authentication information storage unit for storage.
[0012] In some embodiments of the present invention, the data conversion unit is used to receive a voice signal sent by the intercom and send an alarm signal to the intercom.
[0013] In some embodiments of the present invention, the lora receiving end also includes a configuration management application unit, which is connected to the second control module, and the configuration management application unit is used to detect whether the voice information of the walkie-talkie is legal.
[0014] In some embodiments of the present invention, there is provided an electronic device, comprising: A processor, and a memory and a transceiver communicatively connected to the processor; The memory stores computer-executable instructions; the transceiver is used to send and receive data; The processor executes the computer-executable instructions stored in the memory to implement the above-mentioned calculation method.
[0015] In some embodiments of the present invention, a computer-readable storage medium is provided, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the above-mentioned calculation method when executed by a processor.
[0016] The technical solution of the present invention has the following technical effects compared with the prior art: The alarm method adopted by the present invention can be adapted to all walkie-talkies currently used at sea and has a wide range of applications; at the same time, the transmitted data is encrypted to enhance the accuracy of the alarm information.
[0017] The alarm device designed by the present invention is easy to operate, easy to carry and easy to install; the lora device and the intercom are uniquely bound and cannot be mixed, which prevents the device from being used by other devices and reused by others to enhance the safety of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0019] Figure 1 The process of the offshore liquid level alarm method shown in the embodiment of the present application is as follows: Figure 1 .
[0020] Figure 2 The process of the offshore liquid level alarm method shown in the embodiment of the present application is as follows: Figure 2 .
[0021] Figure 3 This is a structural diagram of the offshore liquid level alarm device shown in an embodiment of the present application.
[0022] Figure 4 It is a schematic diagram of the structure of the electronic device shown in the embodiment of the present application.
[0023] Figure numerals: 110, Lora transmitter; 111, first Lora module; 112, liquid level sensor; 113, first control unit; 114, first protocol processing unit; 115, matching information storage unit; 120, Lora receiver; 121, second Lora module; 122, second control unit; 123, data conversion unit; 124, second protocol processing unit; 125, authentication information storage unit; 126, configuration management application unit; 130, walkie-talkie; 200, electronic device; 210, processor; 220, memory; 230, transceiver. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0026] Example 1: Reference Figure 1 and Figure 2 As shown, a method for offshore liquid level alarm based on LoRa includes the following steps: Step S1, bind the intercom and lora module; S11, after the device of lora receiving end 120 is turned on, the authentication information storage unit 125 is initialized and the authentication information is read; If the authentication information storage unit 125 stores authentication information, the process directly proceeds to step S2, i.e., initializing the lora module; If the authentication information storage unit 125 does not store the authentication information, the pre-negotiation authentication information configuration is performed; S12, pre-negotiation authentication information configuration: Specifically, the configuration management application unit 126 is started, and the user inputs the configuration of the communication frequency with the intercom; the configuration management application unit 126 detects whether the user input information is legal, and if it is legal, the data conversion unit 123 is initialized, and the user uses the intercom to initiate a voice call; the data conversion unit 123 transmits the call signaling received from the intercom to the second protocol processing unit 124; The second protocol processing unit 124 parses the call signaling and sends the key information field to the second control module; The second control module generates a unique authentication identification code according to the relevant information of the signaling field and stores it in the authentication information storage unit 125 .
[0027] Step S2, after initializing the lora module, generate public and private keys; the public and private keys are used for data encryption between the lora receiving terminal 120 and the lora sending terminal; S21, initializing the first lora module 111 of the lora transmitter 110 and the second lora module 121 of the lora receiver 120; to facilitate the subsequent sending and receiving of data; S22, the first lora module 111 sends a matching request frame to the second lora module 121, requesting the lora receiving end 120 for authentication; after the second lora module 121 receives the matching request frame, the second control module reads the authentication information and composes a matching response frame to reply to the lora sending end 110; S23, the first lora module 111 of the lora module sending end receives the matching response frame and transmits it to the first protocol processing unit 114 and parses the matching information; the first control module generates a unique matching information identification code according to the parsed matching information, and reads the data of the matching information storage unit 115 at the same time. If the read matching information storage unit 115 has data, the read matching information storage unit 115 is compared with the newly generated unique matching information identification code. If the comparison is successful, the lora sending end 110 sends a response frame carrying the unique matching information identification code to the receiving end; If the read matching information storage unit 115 has no data, the newly generated matching information identification code is stored in the matching information storage unit 115 and the lora transmitting end 110 sends a response frame carrying a unique matching information identification code to the receiving end; S24, the lora receiving end 120 receives the response frame carrying the unique matching information identification code and generates a public-private key pair according to the authentication information stored in the authentication information storage unit 125 and transmits it to the lora sending end 110; Step S3, when the LoRa transmitter 110 collects the liquid level alarm information, it encrypts the alarm frame obtained by the public and private keys and sends it to the LoRa receiver 120; The lora receiving end 120 processes the received alarm frame to obtain an alarm signal recognizable by the intercom, and sends the alarm signal to the intercom 130 matched therewith; S31, when the liquid level sensor 112 of the LoRa transmitter 110 detects a liquid level alarm, the detection signal is sent to the first control module of the LoRa transmitter 110, and the first control module encrypts the alarm-related information according to the detection signal and the public and private keys to obtain an encrypted alarm information frame, and sends it to the LoRa receiver 120; S32, after the lora receiving end 120 receives the encrypted warning information frame, the second protocol processing unit 124 processes the warning information frame and sends it to the data conversion unit 123; S33. The data conversion unit 123 sends the alarm signal to the intercom to notify the user.
[0028] The alarm method adopted by the present invention can be adapted to all walkie-talkies currently used at sea and has a wide range of applications; at the same time, the transmitted data is encrypted to enhance the accuracy of the alarm information.
[0029] Example 2: Reference Figure 3 As shown, a marine liquid level alarm device based on Lora is provided, comprising: The lora transmitter 110 is arranged in the offshore device; the lora transmitter 110 comprises a first lora module 111, a liquid level sensor 112, a first control unit 113 and a first data processing module; the liquid level sensor 112 is used to collect a liquid level alarm signal; the first control unit 113 is connected to the liquid level sensor 112 to receive the alarm signal; A lora receiving end 120, which is located at the control end, and the lora receiving end 120 includes a second lora module 121, a second control unit 122 and a second data processing module; wherein the first lora module 111 is communicatively connected with the second lora module 121; An intercom is communicatively connected to the lora receiving terminal 120 and is used to send voice signals and receive alarm signals.
[0030] In some embodiments of the present invention, for the lora transmitter 110, the first data processing module is communicatively connected to the first control unit 113; the first data processing module includes a first protocol processing unit 114 and a matching information storage unit 115; the first protocol processing unit 114 is used to parse the matching information; the first control unit 113 is used to generate a matching information identification code based on the parsed matching information and pass it to the matching information storage unit 115 for storage.
[0031] Specifically, the first lora module 111 is used to send alarm information and matching instructions to the second lora module 121. The first lora module 111 is connected to the first control module through the first protocol processing unit 114. The first protocol processing unit 114 is used to process the instructions generated by the first control module and send them to the first lora module 111 for transmission to the lora receiving end 120; on the other hand, it is used to transfer the information received by the first lora module 111 to the first control module.
[0032] The matching information storage unit 115 is used to store the matching information between the lora transmitter 110 and the lora receiver 120, and is connected to the first control module so that the matching information can be called or stored in real time by the first control module.
[0033] The liquid level sensor 112 can detect the liquid level in real time, and send an alarm signal to the first control module when the data of the liquid level reaching the dangerous level or above is formed.
[0034] In some embodiments of the present invention, for the lora receiver 120, the second data processing module includes a data conversion unit 123, a second protocol processing unit 124 and an authentication information storage unit 125; the second protocol processing unit 124 is used to parse the voice signal; the second control unit 122 is used to generate an authentication information identification code according to the parsed voice signal and pass it to the authentication information storage unit 125 for storage.
[0035] The second lora module 121 is connected to the first lora module 111 and is used to reply the information of the lora module to form a communication path.
[0036] The second Lora module 121 is connected to the second control module through the second protocol processing unit 124. The second protocol processing unit 124 is used to process the instructions generated by the second control module and send them to the second Lora module 121 for transmission to the Lora transmitting end 110; on the other hand, it is used to transfer the information received by the second Lora module 121 to the second control module.
[0037] The authentication information storage unit 125 is used to store authentication information between the intercom and the lora receiving end 120, and is connected to the second control module so that the authentication information can be called or stored in real time by the second control module.
[0038] The data conversion unit 123 is connected to the second control module via the second protocol processing unit 124, and is used to receive the voice signal sent by the intercom and send an alarm signal to the intercom.
[0039] In some embodiments of the present invention, the lora receiver 120 also includes a configuration management application unit 126, which is connected to the second control module, and the configuration management application unit 126 is used to detect whether the voice information of the walkie-talkie is legal.
[0040] Specifically, the configuration management application unit 126 is used to judge the voice information input by the user during the binding process of the lora receiving terminal 120 and the intercom, and if the input is legal, the voice input is performed.
[0041] It should be understood that the alarm device here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art will understand that the alarm device may be specifically the electronic device 200 in the above embodiment, or the function of the electronic device 200 in the above embodiment may be integrated in the alarm device, and the alarm device may be used to execute the various processes and / or steps corresponding to the electronic device 200 in the above method embodiment, and to avoid repetition, it will not be repeated here.
[0042] The alarm device has the function of implementing the corresponding steps performed by the electronic device 200 of the calculation method in Example 1; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the acquisition module can be a communication interface, such as a transceiver interface.
[0043] The alarm device designed by the present invention is easy to operate, easy to carry and easy to install; the lora device and the intercom are uniquely bound and cannot be mixed, which prevents the device from being used by other devices and reused by others to enhance the safety of the device.
[0044] Example 3: Reference Figure 4 As shown, an electronic device 200 is provided, including: A processor 210, and a memory 220 and a transceiver 230 communicatively connected to the processor; The memory 220 stores computer-executable instructions; the transceiver 230 is used to send and receive data; The processor 210 executes the computer-executable instructions stored in the memory 220 to implement the calculation method in Example 1.
[0045] It should be understood that the electronic device 200 can be used to execute the corresponding steps and / or processes in the above method embodiments. Optionally, the memory 220 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory 220 may also include a non-volatile random access memory. For example, the memory 220 may also store information about the device type. The processor 210 may be used to execute the instructions stored in the memory 220, and when the processor 210 executes the instructions, the processor 210 may execute the corresponding steps and / or processes in the above method embodiments.
[0046] It should be understood that in the embodiment of the present application, the processor 210 may be a central processing unit (CPU), and the processor 210 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0047] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 210 or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor 210 for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0048] Embodiment 4: In this embodiment, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the calculation method in Embodiment 1.
[0049] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0050] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0051] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0052] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0053] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0054] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for offshore liquid level alarm based on lora, characterized in that: The following steps are involved: Bind the intercom and lora module; After initializing the LoRa module, public and private keys are generated; the public and private keys are used to encrypt data between the LoRa receiver and the LoRa transmitter; When the LoRa transmitter collects the liquid level alarm information, it encrypts it with the public and private keys and sends the alarm frame to the LoRa receiver. The lora receiver processes the received alarm frame to obtain an alarm signal that can be recognized by the walkie-talkie, and sends the alarm signal to the walkie-talkie that matches it.
2. A method for offshore liquid level alarm based on lora according to claim 1, characterized in that: The binding of the intercom and the lora module includes: The lora module reads and calls authentication information, or parses the voice signaling sent by the intercom and generates an authentication identification code; The lora module stores the authentication identification code.
3. A method for offshore liquid level alarm based on lora according to claim 2, characterized in that: The generation of public and private keys after initializing the lora module includes: The lora transmitter matches the lora receiver and generates a matching information identification code, and the lora transmitter stores the matching information identification code; After the lora receiving end receives the response frame of the matching information identification code, it generates public and private keys in combination with the authentication information.
4. A marine liquid level alarm device based on lora, characterized in that: include: A lora transmitter, which is arranged in an offshore device; the lora transmitter comprises a first lora module, a liquid level sensor, a first control unit and a first data processing module; the liquid level sensor is used to collect a liquid level alarm signal; the first control unit is connected to the liquid level sensor to receive the alarm signal; A lora receiving end, which is located at the control end, and the lora receiving end includes a second lora module, a second control unit and a second data processing module; wherein the first lora module is communicatively connected with the second lora module; An intercom is communicatively connected with the lora receiving end; it is used to send voice signals and receive alarm signals.
5. A Lora-based offshore liquid level alarm device according to claim 4, characterized in that: The first data processing module is communicatively connected to the first control unit; the first data processing module includes a first protocol processing unit and a matching information storage unit; the first protocol processing unit is used to parse matching information; the first control unit is used to generate a matching information identification code based on the parsed matching information and pass it to the matching information storage unit for storage.
6. A Lora-based offshore liquid level alarm device according to claim 4, characterized in that: The second data processing module includes a data conversion unit, a second protocol processing unit and an authentication information storage unit; the second protocol processing unit is used to parse the voice signal; the second control unit is used to generate an authentication information identification code based on the parsed voice signal and pass it to the authentication information storage unit for storage.
7. A Lora-based offshore liquid level alarm device according to claim 6, characterized in that: The data conversion unit is used to receive the voice signal sent by the intercom and send an alarm signal to the intercom.
8. The offshore liquid level alarm device based on lora according to claim 4 is characterized in that: The lora receiving end also includes a configuration management application unit, which is connected to the second control module, and the configuration management application unit is used to detect whether the voice information of the intercom is legal.
9. An electronic device, characterized in that: include: A processor, and a memory and a transceiver communicatively connected to the processor; The memory stores computer-executable instructions; the transceiver is used to send and receive data; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 3.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.