Disclosure of Invention
The invention aims to provide an Internet of things gateway supporting a multimode wireless communication mode, a connection method of the Internet of things gateway, electronic equipment and a computer readable storage medium, which expand the application range of an EUHT mode and increase the speed and stability of network communication.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, the present invention provides an internet of things gateway supporting multimode wireless communication, which is characterized in that the gateway specifically includes:
a plurality of wireless network modules: EUHT module, wi-Fi module, bluetooth module, zigbee module;
the EUHT module is used for receiving the EUHT wireless network signals and receiving the signals sent by the mode conversion module and sending out the signals by using the EUHT wireless network signals;
the Wi-Fi module receives Wi-Fi signal data and sends the Wi-Fi signal data to the module switching module;
the Bluetooth module receives the Bluetooth signal data and sends the Bluetooth signal data to the module conversion module;
the Zigbee module receives Zigbee signal data and sends the Zigbee signal data to the module conversion module;
the mode conversion module is connected with the plurality of wireless network modules, converts the received signals into EUHT signals and sends the EUHT signals to the EUHT module;
the connection management module is used for selecting a wireless network connection mode and setting a connection sequence;
the wireless network connection mode of the connection management module is specifically as follows:
when a device sends a connection request, detecting a network connection mode currently available for the device;
screening the currently available network connection modes of the equipment, and finding out the network connection mode matched with the wireless network module of the Internet of things gateway;
selecting a wireless network connection mode according to the distance between the equipment and the Internet of things gateway;
if the wireless network connection mode selected according to the distance is one, the wireless network connection mode at the selected position is used for transmitting the data signal in the equipment to the Internet of things gateway, and the process is ended; if the wireless network connection modes selected according to the distances are multiple, continuing to execute the following steps;
and selecting a wireless network connection mode according to the device type and/or the data type to be transmitted.
Further, the connection management module receives a connection request sent by the device, and selects a wireless network connection mode according to one or more of an available network connection mode, a data type and a device type of the device.
Further, the device types may be classified into computers, mobile phones, wearable devices, tablet computers, car phones, train communication devices, and the like.
Further, the priority order of using the wireless network connection mode is preset for each device type, and the wireless network connection mode is selected according to the priority order of the wireless network connection modes of the device types.
In a second aspect, the present invention further provides a method for connecting an internet of things device supporting a multimode wireless communication system, which is characterized by specifically comprising:
the Internet of things gateway can be connected through wireless network modes such as EUHT, wi-Fi, bluetooth, zigbee and the like;
s1, receiving a device connection request;
s2, establishing connection between the equipment and the Internet of things gateway;
s3, converting the received signals into EUHT signals, and forwarding the received data sent by the equipment through the EUHT.
Further, a connection request sent by the device is received, and a wireless network connection mode is selected according to one or more of available network connection modes, data types and device types of the device.
Further, the device types may be classified into computers, mobile phones, wearable devices, tablet computers, car phones, train communication devices, and the like.
Further, each device type presets a priority order using a wireless network connection mode, wireless network according to the device type
In a third aspect, the present invention also provides an electronic device, including:
at least one processor, and a memory communicatively coupled to at least one of the processors;
wherein the memory stores instructions executable by at least one of the processors, the instructions being executable by at least one of the processors to enable at least one of the processors to perform the method described above.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the above-described method.
The beneficial effects of the invention are as follows:
an internet of things gateway supporting multimode wireless communication modes, a connecting method thereof, electronic equipment and a computer readable storage medium support the modes of multiple networks, are used for accessing transmission terminals in other non-EUHT modes into an EUHT wireless communication network, expanding the application range of the EUHT wireless communication network, supporting the data access of broadband equipment, narrowband equipment and bus equipment, transmitting access data through the EUHT, effectively increasing the stability of the system under the coverage of the EUHT wireless private network standard and the network speed, and are built into a monitoring system supporting wireless private network communication. And selecting an optimal connection mode according to one or more of available network connection modes, data types and device types of the device, and increasing the speed of data transmission and the stability of network connection. The wireless network connection mode is comprehensively selected by combining the number of the devices connected by the Internet of things gateway, the distance between the devices and the Internet of things gateway, the type of the devices, the type of data to be transmitted by the devices and other modes, so that the diversity of network connection mode selection is increased, and the suitability of connection for different scenes and different types of devices is improved. In addition, when a plurality of devices are connected with the Internet of things by using the same network mode, the connection sequence and the data transmission mode are reasonably determined so as to ensure the real-time performance of data transmission.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to improve the use universality of EUHT, the invention provides an Internet of things gateway supporting multimode wireless communication modes, which specifically comprises the following steps:
a plurality of wireless network modules: EUHT module, wi-Fi module, bluetooth module, zigbee module;
the EUHT module is used for receiving the EUHT wireless network signals and receiving the signals sent by the mode conversion module and sending out the signals by using the EUHT wireless network signals;
the Wi-Fi module receives Wi-Fi signal data and sends the Wi-Fi signal data to the module switching module;
the Bluetooth module receives the Bluetooth signal data and sends the Bluetooth signal data to the module conversion module;
the Zigbee module receives Zigbee signal data and sends the Zigbee signal data to the module conversion module;
the mode conversion module is connected with the plurality of wireless network modules, converts the received signals into EUHT signals and sends the EUHT signals to the EUHT module;
and the connection management module is used for selecting a connection mode according to the data, setting a connection sequence and allocating channels.
Specifically, the selection method of the connection management module is as follows:
s100, when equipment sends a connection request, detecting a currently available network connection mode of the equipment;
s200, screening the currently available network connection modes of the equipment, and finding out the network connection mode matched with the wireless network module of the Internet of things gateway;
specifically, the number M of the devices connected to the current internet of things gateway is determined, the relationship between M and the first threshold is determined, if the number M of the devices connected to the current internet of things gateway is greater than or equal to the first threshold, the network connection mode is determined to be a predetermined type A1, and step S400 is entered, otherwise step S300 is entered. Wherein A1 may be one or more connection modes.
S300, selecting a wireless network connection mode according to the distance between the equipment and the Internet of things gateway and the distance;
the connection distance of each wireless network mode is preset and stored, and the connection distance can be set according to the characteristics of each wireless network mode.
Specifically, it is determined whether the distance D between the device and the internet of things gateway is smaller than or equal to a second threshold, if so, it is determined that the network connection mode is the predetermined type A2, and step S400 is performed, otherwise step S301 is performed. Wherein A2 may be one or more connection modes.
S301, determining that the network connection mode is a preset type A3, wherein A3 is a near field communication connection mode in the network connection modes excluding A2 in all the network connection modes, and entering step S400. Wherein A3 may be one or more connection modes.
S400, if the wireless network connection mode selected in the step S300 and/or the step S301 is one, transmitting the data signal in the equipment to the Internet of things gateway by using the wireless network connection mode at the selected position, and ending the flow; if the wireless network connection modes selected in the step S300 and/or the step S301 are multiple, executing the step S500;
s500, selecting a wireless network connection mode according to the type of data to be sent by the equipment;
specifically, the ordering of the data types transmitted by each wireless network connection mode is preset; among the plurality of wireless network connection modes selected in the step S300, the wireless network connection mode with the front ordering of the data types to be transmitted by the current device is used as the final selection result; when the data types to be transmitted by the device are ordered identically in the wireless network connection mode, selecting a plurality of wireless network connection modes; when the wireless network connection mode at the selection position is one, the data signal in the equipment is sent to the Internet of things gateway by using the wireless network connection mode at the selection position, and the process is ended; if the selected wireless network connection mode is plural, executing step S600;
s600, selecting a wireless network connection mode according to the equipment type;
specifically, the device types can be classified into computers, mobile phones, wearable devices, tablet computers, car phones, train communication devices, and the like; the priority order of the wireless network connection modes is preset for each device type, and the wireless network connection modes are selected according to the priority order of the wireless network connection modes of the device types.
Further, when the plurality of devices are all connected with the internet of things in the wireless network connection mode, the following steps are executed:
s701, determining the connection sequence of the equipment according to the equipment type;
specifically, the transmission priority of each type of equipment is set, for example, the priority of the train machine and the train communication equipment is high, the priority of the wearable equipment is medium, and the priority of the mobile phone, the computer and the tablet computer is low;
s702, determining the connection sequence of the equipment according to the type of data transmitted by the equipment;
specifically, if the type of data to be transmitted by the device is information, the device is preferentially transmitted, i.e. the device which transmits the data as information is preferentially connected;
s703, when the data types transmitted by a plurality of devices are information, determining the connection sequence of the devices according to the size of the transmitted data.
And S704, if a plurality of devices transmit audio or video of data, simultaneously establishing connection between the plurality of devices and the Internet of things gateway, and alternately transmitting data packets of different devices so as to reduce transmission delay and improve user experience.
The invention further provides a connection method based on the Internet of things gateway, which specifically comprises the following steps:
the Internet of things gateway can be connected through wireless network modes such as EUHT, wi-Fi, bluetooth, zigbee and the like;
s1, receiving a device connection request;
s2, establishing connection between the equipment and the Internet of things gateway;
specifically, the connection mode between the device and the gateway of the internet of things may be selected, and the specific selection method is the same as that in the previous embodiment, and will not be described in detail herein;
s3, converting the received signals into EUHT signals, and forwarding the received data sent by the equipment through the EUHT.
Further, the present invention also provides an electronic device, including a processor and a memory, where the storage device may be configured to store program code for executing an internet of things connection method supporting a multimode wireless communication system according to the above method embodiment, and the processor may be configured to execute the program code in the memory, where the program code includes, but is not limited to, the program code for executing the internet of things connection method supporting a multimode wireless communication system according to the above method embodiment. For convenience of explanation, only those portions of the embodiments of the present invention that are relevant to the embodiments of the present invention are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present invention.
Further, the invention also provides a computer readable storage medium. In one embodiment of the computer readable storage medium according to the present invention, the computer readable storage medium may be configured to store a program for performing an internet of things connection method supporting a multimode wireless communication scheme of the above method embodiment, and the program may be loaded and executed by a processor to implement the internet of things connection method supporting a multimode wireless communication scheme.
Any combination of one or more computer readable media may be employed in the present invention. The medium may be a computer readable signal medium or a computer readable storage medium. The medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the medium include: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.