Wireless communication method and device based on time slot, electronic equipment and storage medium
Through the time slot-based wireless communication method, the problem of many-to-one data transmission in LoRa communication is solved, and the LoRa node simulates duplex communication and sleep management of sub-device is realized, which reduces the power consumption of wireless communication and ensures the accuracy of data transmission. Sex and efficiency.
Patent Information
- Application Number
- CN202411276335.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-06
AI Technical Summary
The existing LoRa communication scheme can easily lead to data loss or information superposition when multiple sub-devices send data to one main device, and cannot realize many-to-one data communication.
The time slot-based wireless communication method is adopted, and the main device sends query instructions, receives device status data and sleep instructions to the sub-device through the main device, so as to realize the simulation duplex communication of the LoRa node, and reduces the power consumption of wireless communication through the sleep management of the sub-device.
It realizes many-to-one data interaction, reduces the power consumption of wireless communication, and ensures the accuracy and efficiency of data transmission.
Smart Images

Figure CN119095140A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a time slot-based wireless communication method, device, electronic equipment and storage medium. Background Art
[0002] The existing LoRa (Long Range Radio) communication solution usually uses broadcasting to enable a master device to send data to multiple slave devices. However, when multiple slave devices send data to a master device, errors such as data loss or information overlap may occur, making it impossible to achieve many-to-one data communication. Summary of the invention
[0003] The present invention provides a time slot-based wireless communication method, device, electronic device and storage medium to realize time slot-based LoRa node simulated duplex communication, complete many-to-one data interaction, and reduce the power consumption of wireless communication by managing the sleep of sub-devices.
[0004] According to one aspect of the present invention, there is provided a time slot-based wireless communication method, which is performed by a main device including a LoRa node module for data interaction and state management, wherein the main device including the LoRa node module for data interaction and state management is respectively connected to multiple sub-devices including LoRa node modules in communication, including:
[0005] When the time node arrives within the preset time slot, a query instruction is sent to the sub-device containing the LoRa node module associated with the preset time slot;
[0006] Receiving device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot;
[0007] Send data to the sub-device containing the LoRa node module associated with the preset time slot and receive a reply instruction to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
[0008] According to another aspect of the present invention, a time slot-based wireless communication method is provided, which is performed by any sub-device of a plurality of sub-devices including LoRa node modules, and a main device including a LoRa node module for data interaction and state management is respectively connected to the plurality of sub-devices including LoRa node modules in communication, including:
[0009] When the time node arrives within the preset time slot, receiving the query instruction sent by the master device including the LoRa node module for data interaction and status management;
[0010] Feedback the device status data and / or sensor acquisition data of the sub-device including the LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management;
[0011] The data sent by the main device containing the LoRa node module for data interaction and status management is received, and a reply instruction is received to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
[0012] According to another aspect of the present invention, there is provided a time slot-based wireless communication device, which is executed by a main device including a LoRa node module for data interaction and state management, wherein the main device including the LoRa node module for data interaction and state management is respectively connected to multiple sub-devices including LoRa node modules in communication, including:
[0013] A query instruction sending module is used to send a query instruction to a sub-device including a LoRa node module associated with the preset time slot when the time node arrives within the preset time slot;
[0014] A data receiving module, used to receive device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot;
[0015] The data received reply instruction sending module is used to send a data received reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so that the sub-device containing the LoRa node module associated with the preset time slot is dormant.
[0016] According to another aspect of the present invention, a time slot-based wireless communication device is provided, which is executed by any sub-device of a plurality of sub-devices including LoRa node modules, and a main device including a LoRa node module for data interaction and state management is respectively connected to the plurality of sub-devices including LoRa node modules in communication, including:
[0017] A query instruction receiving module, used for receiving a query instruction sent by the master device including the LoRa node module for data interaction and status management when the time node arrives within a preset time slot;
[0018] A data sending module, used for feeding back device status data and / or sensor acquisition data of a sub-device including a LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management;
[0019] The device sleep module is used to receive a data received reply instruction sent by the main device including the LoRa node module for data interaction and status management, so as to put the sub-device including the LoRa node module associated with the preset time slot into sleep mode.
[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0021] at least one processor;
[0022] and a memory communicatively coupled to the at least one processor;
[0023] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the time slot-based wireless communication method described in any embodiment of the present invention.
[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the time slot-based wireless communication method described in any embodiment of the present invention when executed.
[0025] The technical solution of the embodiment of the present invention is that when the time node reaches the preset time slot, the main device sends a query instruction to the sub-device containing the LoRa node module associated with the preset time slot, and then the main device receives the device status data and / or sensor acquisition data fed back by the sub-device containing the LoRa node module associated with the preset time slot, and then the main device sends a data receiving reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so as to make the sub-device containing the LoRa node module associated with the preset time slot sleep. The above technical solution realizes the simulated duplex communication of the LoRa node based on the time slot, completes the many-to-one data interaction, and reduces the power consumption of wireless communication by managing the sleep of the sub-device.
[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 is a flow chart of a time slot-based wireless communication method provided according to Embodiment 1 of the present invention;
[0029] Figure 2 is a timing diagram of a time slot connection for interaction between a master device and a slave device provided according to an embodiment of the present invention;
[0030] Figure 3 is a flow chart of a time slot-based wireless communication method provided according to Embodiment 2 of the present invention;
[0031] Figure 4 is a schematic structural diagram of a time slot-based wireless communication device provided according to Embodiment 3 of the present invention;
[0032] Figure 5 is a schematic structural diagram of a time slot-based wireless communication device provided according to a fourth embodiment of the present invention;
[0033] Figure 6 It is a structural diagram of an electronic device for implementing the time slot-based wireless communication method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0036] Embodiment 1
[0037] Figure 1A flowchart of a time slot-based wireless communication method provided in the first embodiment of the present invention. This embodiment is applicable to the case of time slot-based LoRa node wireless communication. The method can be performed by a time slot-based wireless communication device. The time slot-based wireless communication device can be implemented in the form of hardware and / or software. The time slot-based wireless communication device can be configured in a main device including a LoRa node module for data interaction and status management. The main device including the LoRa node module for data interaction and status management is respectively connected to multiple sub-devices including LoRa node modules. Figure 1 As shown, the method includes:
[0038] S110. When the time node arrives within a preset time slot, a query instruction is sent to a sub-device including a LoRa node module associated with the preset time slot.
[0039] S120, receiving device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot.
[0040] S130, sending a data receiving reply instruction to the sub-device including the LoRa node module associated with the preset time slot, so as to put the sub-device including the LoRa node module associated with the preset time slot into sleep mode.
[0041] In an embodiment of the present invention, the master device refers to a master station, and the master device may include a LoRa node module for data interaction and state management. Specifically, the LoRa node module of the master device can realize command sending, data reception and state management of sub-devices. The slave device refers to a device including a LoRa node module and one or more sensors. Specifically, the device state data and / or sensor acquisition data can be transmitted to the master device through the LoRa node module of the slave device.
[0042] In an embodiment of the present invention, time can be equally divided into multiple time slots. Each sub-device has its own associated time slot, that is, in the time slot corresponding to the sub-device, the sub-device is triggered to transmit data to the main device, and the sub-device can determine its corresponding time slot based on the unique identity of the sub-device. Device status data refers to the real-time status information of the sub-device, which can be a normal state, an abnormal state, a wake-up state or a sleep state, etc., which is not specifically limited here. The sensor acquisition data can be the oxygen concentration collected by the oxygen sensor or the temperature collected by the temperature sensor, etc., which is not specifically limited here.
[0043] Exemplarily, when the time node arrives within the time slot corresponding to the first sub-device, the master device may send a query instruction to the first sub-device, and when the first sub-device receives the query instruction, the first sub-device feeds back device status data and / or sensor acquisition data to the master device. After the master device receives the device status data and / or sensor acquisition data of the first sub-device, the master device may send a data received reply instruction to the first sub-device to inform the first sub-device that the current master device has completed data reception and can go into sleep mode.
[0044] The technical solution of the embodiment of the present invention is that when the time node reaches the preset time slot, the main device sends a query instruction to the sub-device containing the LoRa node module associated with the preset time slot, and then the main device receives the device status data and / or sensor acquisition data fed back by the sub-device containing the LoRa node module associated with the preset time slot, and then the main device sends a data receiving reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so as to make the sub-device containing the LoRa node module associated with the preset time slot sleep. The above technical solution realizes the simulated duplex communication of the LoRa node based on the time slot, completes the many-to-one data interaction, and reduces the power consumption of wireless communication by managing the sleep of the sub-device.
[0045] In some optional embodiments, the main device also includes a LoRa node module for emergency data uploading.
[0046] In an embodiment of the present invention, an emergency alarm can be implemented through a LoRa node module for uploading emergency data, thereby avoiding the situation where the emergency cannot be communicated in time.
[0047] Specifically, for any sub-device including a LoRa node module, when the sensor collection data of the sub-device including the LoRa node module meets the sensor data warning conditions, the sensor collection data of the sub-device including the LoRa node module can be received by the LoRa node module for emergency data upload.
[0048] Exemplarily, the data collected by the sensor may be oxygen concentration. When the oxygen concentration of the second sub-device is lower than a preset oxygen concentration, the sensor switches to the frequency band corresponding to the emergency channel, and then the oxygen concentration fed back by the second sub-device can be received based on the frequency band through the LoRa node module used for emergency data uploading.
[0049] Specifically, for any sub-device including a LoRa node module, when the device status data of the sub-device including the LoRa node module meets the device status warning condition, the device status data of the sub-device including the LoRa node module is received by the LoRa node module for emergency data upload.
[0050] Exemplarily, the device status data may be the battery power. When the battery power of the third sub-device is lower than the preset battery power, it switches to the frequency band corresponding to the emergency channel, and then the battery power feedback from the third sub-device can be received based on the frequency band through the LoRa node module used for emergency data uploading.
[0051] In some optional embodiments, the method further includes: sending timing service data to a sub-device including a LoRa node module associated with a preset time slot to synchronize the time of the main device and the sub-device.
[0052] In the embodiment of the present invention, the timing service data refers to data used for time synchronization.
[0053] Exemplarily, when a preset time is reached, the master device may send time synchronization service data to the slave device to synchronize the time of the master device with the slave device.
[0054] For example, Figure 2 It is a timing diagram of a time slot connection for interaction between a master device and a sub-device provided according to an embodiment of the present invention. Specifically, when the time node arrives within the time slot 1 corresponding to the first sub-device, the LoRa node module used for data interaction and status management of the master device can send a first query instruction to the first sub-device, and when the first sub-device receives the first query instruction, the first sub-device feeds back device status data and / or sensor acquisition data to the master device. After the master device receives the device status data and / or sensor acquisition data of the first sub-device, the master device can send a data received reply instruction to the first sub-device to inform the first sub-device that the current master device has completed data reception and can sleep. When the device status data or sensor acquisition data of the first sub-device meets the device status warning condition, the first sub-device can send the device status data or sensor acquisition data to the LoRa node module used for emergency data upload of the master device, and after the master device receives the device status data and / or sensor acquisition data urgently uploaded by the first sub-device, the master device can send a stop upload instruction to the first sub-device.
[0055] Embodiment 2
[0056] Figure 3 A flowchart of a time slot-based wireless communication method provided in the second embodiment of the present invention. This embodiment is applicable to the case of time slot-based LoRa node wireless communication. The method can be performed by a time slot-based wireless communication device. The time slot-based wireless communication device can be implemented in the form of hardware and / or software. The time slot-based wireless communication device can be configured in a sub-device containing a LoRa node module. The main device containing the LoRa node module for data interaction and status management is respectively connected to multiple sub-devices containing LoRa node modules. Figure 3As shown, the method includes:
[0057] S210. When the time node arrives within a preset time slot, receive a query instruction sent by the master device including the LoRa node module for data interaction and status management.
[0058] S220. Feedback the device status data and / or sensor acquisition data of the sub-device including the LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management.
[0059] S230, receiving a data reply instruction sent by the main device including the LoRa node module for data interaction and status management, so as to put the sub-device including the LoRa node module associated with the preset time slot into sleep mode.
[0060] In some optional embodiments, the main device also includes a LoRa node module for emergency data uploading.
[0061] In some optional embodiments, the method also includes: for any sub-device including a LoRa node module, when the sensor collection data of the sub-device including the LoRa node module meets the sensor data warning condition, the sensor collection data of the sub-device including the LoRa node module is sent to the LoRa node module for emergency data upload.
[0062] In some optional embodiments, the method also includes: for any sub-device including a LoRa node module, when the device status data of the sub-device including the LoRa node module meets the device status warning condition, the device status data of the sub-device including the LoRa node module is sent to the LoRa node module for emergency data upload.
[0063] The technical solution of the embodiment of the present invention is that when the time node reaches the preset time slot, the sub-device receives the query instruction sent by the main device containing the LoRa node module for data interaction and status management, and then the sub-device feeds back the device status data and / or sensor acquisition data of the sub-device containing the LoRa node module associated with the preset time slot to the main device containing the LoRa node module for data interaction and status management, and then the sub-device receives the data received reply instruction sent by the main device containing the LoRa node module for data interaction and status management, so as to make the sub-device containing the LoRa node module associated with the preset time slot sleep. The above technical solution realizes the simulated duplex communication of the LoRa node based on the time slot, completes the many-to-one data interaction, and reduces the power consumption of wireless communication by managing the sleep of the sub-device.
[0064] Embodiment 3
[0065] Figure 4 The schematic diagram of the structure of a time slot-based wireless communication device provided in the third embodiment of the present invention is a main device including a LoRa node module for data interaction and state management, and the main device including a LoRa node module for data interaction and state management is respectively connected to multiple sub-devices including LoRa node modules. Figure 4 As shown, the device comprises:
[0066] A query instruction sending module 310 is used to send a query instruction to a sub-device including a LoRa node module associated with the preset time slot when the time node arrives within the preset time slot;
[0067] The data receiving module 320 is used to receive the device status data and / or sensor acquisition data fed back by the sub-device including the LoRa node module associated with the preset time slot;
[0068] The data received reply instruction sending module 330 is used to send a data received reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so as to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
[0069] The technical solution of the embodiment of the present invention is that when the time node reaches the preset time slot, the main device sends a query instruction to the sub-device containing the LoRa node module associated with the preset time slot, and then the main device receives the device status data and / or sensor acquisition data fed back by the sub-device containing the LoRa node module associated with the preset time slot, and then the main device sends a data receiving reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so as to make the sub-device containing the LoRa node module associated with the preset time slot sleep. The above technical solution realizes the simulated duplex communication of the LoRa node based on the time slot, completes the many-to-one data interaction, and reduces the power consumption of wireless communication by managing the sleep of the sub-device.
[0070] In some optional embodiments, the main device further includes a LoRa node module for emergency data uploading.
[0071] In some optional embodiments, the device further comprises:
[0072] The sensor data emergency transmission module is used for receiving the sensor collection data of the sub-device including the LoRa node module through the LoRa node module for emergency data upload for any sub-device including the LoRa node module when the sensor collection data of the sub-device including the LoRa node module meets the sensor data early warning condition.
[0073] In some optional embodiments, the device further comprises:
[0074] The device status data emergency transmission module is used for receiving the device status data of the sub-device including the LoRa node module through the LoRa node module for emergency data upload for any sub-device including the LoRa node module when the device status data of the sub-device including the LoRa node module meets the device status warning condition.
[0075] In some optional embodiments, the device further comprises:
[0076] The time synchronization module is used to send timing service data to the sub-device containing the LoRa node module associated with the preset time slot to synchronize the time of the main device and the sub-device.
[0077] The time slot-based wireless communication device provided in the embodiment of the present invention can execute the time slot-based wireless communication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0078] Embodiment 4
[0079] Figure 5 A schematic diagram of the structure of a time slot-based wireless communication device provided in Embodiment 4 of the present invention, wherein the time slot-based wireless communication device is executed by any of a plurality of sub-devices including LoRa node modules, and a main device including a LoRa node module for data interaction and state management is respectively connected to a plurality of sub-devices including LoRa node modules. Figure 5 As shown, the device comprises:
[0080] A query instruction receiving module 410 is used to receive a query instruction sent by the master device including the LoRa node module for data interaction and status management when the time node arrives within a preset time slot;
[0081] The data sending module 420 is used to feed back the device status data and / or sensor acquisition data of the sub-device including the LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management;
[0082] The device sleep module 430 is used to receive a data received reply instruction sent by the main device including the LoRa node module for data interaction and status management, so as to put the sub-device including the LoRa node module associated with the preset time slot into sleep mode.
[0083] The technical solution of the embodiment of the present invention is that when the time node reaches the preset time slot, the sub-device receives the query instruction sent by the main device containing the LoRa node module for data interaction and status management, and then the sub-device feeds back the device status data and / or sensor acquisition data of the sub-device containing the LoRa node module associated with the preset time slot to the main device containing the LoRa node module for data interaction and status management, and then the sub-device receives the data received reply instruction sent by the main device containing the LoRa node module for data interaction and status management, so as to make the sub-device containing the LoRa node module associated with the preset time slot sleep. The above technical solution realizes the simulated duplex communication of the LoRa node based on the time slot, completes the many-to-one data interaction, and reduces the power consumption of wireless communication by managing the sleep of the sub-device.
[0084] In some optional embodiments, the main device also includes a LoRa node module for emergency data uploading.
[0085] In some optional embodiments, the device further comprises:
[0086] The sensor data emergency transmission module is used for sending the sensor collection data of any sub-device including the LoRa node module to the LoRa node module for emergency data upload when the sensor collection data of the sub-device including the LoRa node module meets the sensor data early warning condition.
[0087] In some optional embodiments, the device further comprises:
[0088] The device status data emergency transmission module is used for sending the device status data of any sub-device including the LoRa node module to the LoRa node module for emergency data upload when the device status data of the sub-device including the LoRa node module meets the device status warning condition.
[0089] The time slot-based wireless communication device provided in the embodiment of the present invention can execute the time slot-based wireless communication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 5
[0091] Figure 6A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The I / O interface 15 is also connected to the bus 14.
[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a time slot-based wireless communication method, which includes:
[0095] When the time node arrives within the preset time slot, a query instruction is sent to the sub-device containing the LoRa node module associated with the preset time slot;
[0096] Receiving device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot;
[0097] Send data to the sub-device containing the LoRa node module associated with the preset time slot and receive a reply instruction to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
[0098] In some embodiments, the time slot-based wireless communication method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the time slot-based wireless communication method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the time slot-based wireless communication method in any other appropriate manner (e.g., by means of firmware).
[0099] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0101] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0105] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0106] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A wireless communication method based on time slots, characterized in that: The main device including the LoRa node module for data interaction and state management is executed, and the main device including the LoRa node module for data interaction and state management is respectively communicated and connected with a plurality of sub-devices including the LoRa node module, including: When the time node arrives within the preset time slot, a query instruction is sent to the sub-device containing the LoRa node module associated with the preset time slot; Receiving device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot; Send data to the sub-device containing the LoRa node module associated with the preset time slot and receive a reply instruction to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
2. The method according to claim 1, characterized in that The main device also includes a LoRa node module for emergency data uploading.
3. The method according to claim 2, characterized in that The method further comprises: For any sub-device including a LoRa node module, when the sensor collection data of the sub-device including the LoRa node module meets the sensor data warning condition, the sensor collection data of the sub-device including the LoRa node module is received through the LoRa node module for emergency data uploading.
4. The method according to claim 2, characterized in that: The method further comprises: For any sub-device including a LoRa node module, when the device status data of the sub-device including the LoRa node module meets the device status warning condition, the device status data of the sub-device including the LoRa node module is received through the LoRa node module for emergency data uploading.
5. The method according to claim 1, characterized in that The method further comprises: Send timing service data to the sub-device containing the LoRa node module associated with the preset time slot to synchronize the time of the main device and the sub-device.
6. A wireless communication method based on time slots, characterized in that: Executed by any of the multiple sub-devices including the LoRa node module, the main device including the LoRa node module for data interaction and state management is respectively connected to the multiple sub-devices including the LoRa node module, including: When the time node arrives within the preset time slot, receiving the query instruction sent by the master device including the LoRa node module for data interaction and status management; Feedback the device status data and / or sensor acquisition data of the sub-device including the LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management; The data sent by the main device containing the LoRa node module for data interaction and status management is received, and a reply instruction is received to put the sub-device containing the LoRa node module associated with the preset time slot into sleep mode.
7. A time slot-based wireless communication device, characterized in that: The main device including the LoRa node module for data interaction and state management is executed, and the main device including the LoRa node module for data interaction and state management is respectively communicated and connected with a plurality of sub-devices including the LoRa node module, including: A query instruction sending module is used to send a query instruction to a sub-device including a LoRa node module associated with the preset time slot when the time node arrives within the preset time slot; A data receiving module, used to receive device status data and / or sensor acquisition data fed back by a sub-device including a LoRa node module associated with the preset time slot; The data received reply instruction sending module is used to send a data received reply instruction to the sub-device containing the LoRa node module associated with the preset time slot, so that the sub-device containing the LoRa node module associated with the preset time slot is dormant.
8. A time slot-based wireless communication device, characterized in that: Executed by any of the multiple sub-devices including the LoRa node module, the main device including the LoRa node module for data interaction and state management is respectively connected to the multiple sub-devices including the LoRa node module, including: A query instruction receiving module, used for receiving a query instruction sent by the master device including the LoRa node module for data interaction and status management when the time node arrives within a preset time slot; A data sending module, used for feeding back device status data and / or sensor acquisition data of a sub-device including a LoRa node module associated with the preset time slot to the main device including the LoRa node module for data interaction and status management; The device sleep module is used to receive a data received reply instruction sent by the main device including the LoRa node module for data interaction and status management, so as to put the sub-device including the LoRa node module associated with the preset time slot into sleep mode.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the time slot-based wireless communication method described in any one of claims 1 to 5, or execute the time slot-based wireless communication method described in claim 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the time slot-based wireless communication method described in any one of claims 1 to 5, or to execute the time slot-based wireless communication method described in claim 6 when executed.
