Address allocation method, device and system, wireless gateway, and server
By installing a positioning module on the wireless gateway and using the server to automatically assign logical addresses and RSSI values to determine the device location, the problems of cumbersome wireless gateway configuration and inconvenient fault handling are solved, and simplified configuration and rapid fault location are achieved.
Patent Information
- Application Number
- CN202211392506.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-11-08
AI Technical Summary
Wireless gateway configuration is cumbersome and requires professional technicians to set addresses one by one. In addition, when the gateway fails, it is impossible to obtain the underlying device information in a timely manner.
A positioning module is installed on the wireless gateway, and the gateway logical address is automatically assigned by the server. The RSSI value and signal strength are used to determine the location of the underlying device. When the gateway fails, a nearby gateway will take over.
It simplifies the wireless gateway configuration process, reduces dependence on professionals, quickly locates the location of underlying devices, and enables emergency processing when the gateway fails.
Smart Images

Figure CN116095043B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gateway technology, and more specifically, to an address allocation method, device and system, a wireless gateway, and a server. Background Art
[0002] When there are many devices on site, multiple gateways are needed. Each gateway needs to set the gateway address one by one before installation. The process is cumbersome and requires professional technicians who understand gateways to operate. It can be seen that a gateway with a simpler address setting is needed.
[0003] When a gateway fails, the underlying device information corresponding to the gateway cannot be uploaded to the upper layer. At this time, an emergency processing method is needed to obtain the information of the underlying device.
[0004] In addition, when a fault occurs on-site in a low-level device, maintenance personnel need a method to quickly locate the faulty device.
[0005] Currently, no effective solution has been proposed to the technical problem of the complicated configuration of the above-mentioned wireless gateway. Summary of the Invention
[0006] The embodiments of the present application provide an address allocation method, device and system, wireless gateway, and server to solve the technical problem of complex configuration of wireless gateways.
[0007] To solve the above technical problems, according to one aspect of an embodiment of the present application, an address allocation system is provided, comprising: multiple wireless gateways, each wireless gateway being equipped with a positioning module, the positioning module being used to collect the gateway positioning address of the wireless gateway, the wireless gateway being used to upload its own gateway positioning address; and a server, the server being used to allocate a gateway logical address to the wireless gateway based on the received gateway positioning address.
[0008] Optionally, the distribution system also includes: multiple underlying devices, which are used to send the collected data to the server through the wireless gateway; the multiple wireless gateways are also used to send the collected RSSI values of the underlying devices to the server, so that the server can determine the location information of the underlying devices based on the gateway positioning addresses of the multiple wireless gateways, the signal strength values during monitoring, and the RSSI values.
[0009] According to another aspect of an embodiment of the present application, an address allocation method is also provided, including: receiving a gateway positioning address uploaded by a wireless gateway, wherein the wireless gateway is installed with a positioning module for collecting the gateway positioning address; and allocating a gateway logical address to the wireless gateway according to the gateway positioning address.
[0010] Optionally, a gateway logical address is allocated to the wireless gateway based on the gateway location address, including: when the gateway location address sent by the wireless gateway is legal, an allocation frame is sent to the wireless gateway, and the gateway location address and the allocated gateway logical address are stored in a database, wherein the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame.
[0011] Optionally, after sending the allocation frame to the wireless gateway, the allocation method further includes: receiving a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; when the logical address and positioning address carried by the confirmation frame match the logic address and positioning address in the database, sending a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; when the logical address and positioning address carried by the confirmation frame do not match the logic address and positioning address in the database, sending a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
[0012] Optionally, after allocating a gateway logical address to the wireless gateway according to the gateway positioning address, the allocation method further includes: receiving RSSI values of the same underlying device sent by multiple wireless gateways and signal strength values of multiple wireless gateways during monitoring; determining the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of multiple wireless gateways during monitoring, and the gateway positioning addresses of multiple wireless gateways.
[0013] Optionally, after determining the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of the multiple wireless gateways during monitoring, and the gateway positioning addresses of the multiple wireless gateways, the allocation method also includes: when the underlying device fails or the underlying device needs to be operated, the location information of the underlying device is sent to a designated device to facilitate fault repair or operation of the underlying device based on the location information of the underlying device.
[0014] Optionally, after allocating a gateway logical address to the wireless gateway according to the gateway positioning address, the allocation method further includes: in the event that a first wireless gateway among the multiple wireless gateways fails, modifying the working channel of a second wireless gateway among the multiple wireless gateways to receive data sent to the first wireless gateway by the underlying device, wherein the second wireless gateway is the wireless gateway among the multiple wireless gateways that is closest to the location of the first wireless gateway.
[0015] According to another aspect of an embodiment of the present application, an address allocation method is also provided, including: sending a gateway positioning address to a server, wherein the gateway positioning address is collected by a positioning module installed on a wireless gateway; configuring the logical address of the wireless gateway itself according to the received gateway logical address, wherein the gateway logical address is allocated by the server based on the gateway positioning address.
[0016] According to another aspect of an embodiment of the present application, an address allocation device is also provided, including: a receiving unit for receiving a gateway positioning address uploaded by a wireless gateway, wherein the wireless gateway is installed with a positioning module for collecting the gateway positioning address; and an allocation unit for allocating a gateway logical address to the wireless gateway according to the gateway positioning address.
[0017] Optionally, the allocation unit is also used to: when the gateway location address sent by the wireless gateway is legal, send an allocation frame to the wireless gateway, and store the gateway location address and the allocated gateway logical address in a database, and the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame.
[0018] Optionally, the allocation unit is also used to: after sending an allocation frame to the wireless gateway, receive a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; when the logical address and positioning address carried by the confirmation frame match the logic address and positioning address in the database, send a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; when the logical address and positioning address carried by the confirmation frame do not match the logic address and positioning address in the database, send a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
[0019] Optionally, the allocation device also includes: a determination unit, which is used to receive RSSI values of the same underlying device and signal strength values of multiple wireless gateways during monitoring sent by multiple wireless gateways after allocating a gateway logical address to the wireless gateway according to the gateway positioning address; and determine the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of multiple wireless gateways during monitoring, and the gateway positioning addresses of multiple wireless gateways.
[0020] Optionally, the distribution device also includes: a maintenance unit, which is used to send the location information of the underlying device to a designated device after determining the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of the multiple wireless gateways during monitoring, and the gateway positioning addresses of the multiple wireless gateways, in the event that the underlying device fails or the underlying device needs to be operated, so as to facilitate fault repair or operation of the underlying device according to the location information of the underlying device.
[0021] Optionally, the maintenance unit is also used to: after assigning a gateway logical address to the wireless gateway according to the gateway positioning address, in the event that a first wireless gateway among the multiple wireless gateways fails, modify the working channel of a second wireless gateway among the multiple wireless gateways to receive data sent to the first wireless gateway by the underlying device, wherein the second wireless gateway is the wireless gateway among the multiple wireless gateways that is closest to the location of the first wireless gateway.
[0022] According to another aspect of an embodiment of the present application, a server is provided, comprising the above-mentioned address allocation device.
[0023] According to another aspect of an embodiment of the present application, an address allocation device is also provided, including: a sending unit for sending a gateway positioning address to a server, wherein the gateway positioning address is collected by a positioning module installed on a wireless gateway; a configuration unit for configuring the logical address of the wireless gateway itself according to the received gateway logical address, wherein the gateway logical address is allocated by the server based on the gateway positioning address.
[0024] According to another aspect of an embodiment of the present application, a wireless gateway is provided, comprising the above-mentioned address allocation device.
[0025] According to another aspect of an embodiment of the present application, a computer-readable storage medium is further provided, which includes a stored program, and the program implements the above method when executed by a processor.
[0026] According to another aspect of an embodiment of the present application, an electronic device is also provided, including: one or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the above-mentioned method.
[0027] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of any of the above-described method embodiments.
[0028] By applying the technical solution of the present application, when a logical address needs to be assigned, the server receives the gateway location address uploaded by the wireless gateway, and assigns a gateway logical address to the wireless gateway based on the gateway location address, without the need for professional personnel to perform configuration, thereby solving the technical problem of complicated configuration of the wireless gateway. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a flowchart of an optional address allocation method according to an embodiment of the present application;
[0030] Figure 2 is a flowchart of an optional address allocation method according to an embodiment of the present application;
[0031] Figure 3 is a schematic diagram of an optional address allocation system according to an embodiment of the present application;
[0032] Figure 4 is a schematic diagram of an optional address allocation device according to an embodiment of the present application;
[0033] Figure 5 is a schematic diagram of an optional address allocation device according to an embodiment of the present application;
[0034] Figure 6 This is a structural block diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0036] The terms used in the examples of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "the," and "the" used in the examples of this application and the appended claims are also intended to include plural forms, and unless the context clearly indicates otherwise, "a plurality" generally includes at least two.
[0037] It should be understood that the term "and / or" as used herein is merely a description of the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0038] It should be understood that although the terms first, second, third, etc. may be used to describe certain technical features in the embodiments of the present application, these technical features should not be limited to these terms. These terms are only used to distinguish these technical features.
[0039] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0040] It should also be noted that the terms "include," "comprises," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a product or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such product or device. In the absence of further limitations, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the product or device comprising the element.
[0041] Example 1
[0042] According to one aspect of an embodiment of the present application, a system for allocating addresses is provided, including:
[0043] Multiple wireless gateways, each of which is equipped with a positioning module, which is used to collect the gateway positioning address of the wireless gateway where it is located, and the wireless gateway is used to upload its own gateway positioning address;
[0044] The server is used to allocate a gateway logical address to the wireless gateway according to the received gateway location address.
[0045] Optionally, the distribution system may further include: a plurality of bottom-level devices, and the bottom-level devices are used to send the collected data to the server via a wireless gateway.
[0046] Multiple wireless gateways can send the collected RSSI values (full name: Received Signal Strength Indication, that is, the received signal strength indication, which measures the distance between the signal point and the receiving point by the strength of the received signal, and then performs positioning calculations based on the corresponding data) of the underlying devices to the server, so that the server can determine the location information of the underlying devices based on the gateway positioning addresses of multiple wireless gateways, the signal strength values during monitoring, and the RSSI values.
[0047] For example, a wireless gateway uses GPRS to locate and upload its location to a server. The server then assigns the gateway a logical address based on the location. Three wireless gateways equipped with GPRS modules monitor the data sent by the target device via LoRa. Based on the RSSI value, they calculate the distance from the target module to each gateway and report it to the server. The server then determines the target module's location based on its distance from the three known gateways. If one gateway fails, the nearest gateway can change channels and take over the failed gateway's operations.
[0048] Through the above solution, a positioning module for collecting the gateway positioning address is installed on the wireless gateway. When a logical address needs to be assigned, the server receives the gateway positioning address uploaded by the wireless gateway and assigns a gateway logical address to the wireless gateway based on the gateway positioning address. This does not require professional personnel to perform configuration, and can solve the technical problem of cumbersome configuration of the wireless gateway.
[0049] Example 2
[0050] Figure 1 is a flow chart of an optional address allocation method according to an embodiment of the present application, such as Figure 1 As shown, the method includes the following steps:
[0051] In step S101, the wireless gateway sends a gateway positioning address to the server. The gateway positioning address is collected by a positioning module installed on the wireless gateway. The positioning module can be a Beidou positioning module, a GPRS module, etc.
[0052] Step S102: The server receives the gateway location address uploaded by the wireless gateway.
[0053] Step S103: The server allocates a gateway logical address to the wireless gateway according to the gateway location address.
[0054] Optionally, if the gateway location address sent by the wireless gateway is legal, an allocation frame can be sent to the wireless gateway, and the gateway location address and the allocated gateway logical address can be stored in the database, the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame; receive a confirmation frame returned by the wireless gateway, the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; if the logical address and location address carried in the confirmation frame match the logic address and location address in the database, send a first communication frame to the wireless gateway, the first communication frame is used to instruct the wireless gateway to go online; if the logical address and location address carried in the confirmation frame do not match the logic address and location address in the database, send a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
[0055] Optionally, after allocating a gateway logical address to the wireless gateway according to the gateway positioning address, the RSSI values of the same underlying device and the signal strength values of the multiple wireless gateways during monitoring are received from multiple wireless gateways; the location information of the underlying device is determined based on the RSSI value of the underlying device, the signal strength values of the multiple wireless gateways during monitoring, and the gateway positioning addresses of the multiple wireless gateways; when the underlying device fails or the underlying device needs to be operated, the location information of the underlying device is sent to a designated device so that the underlying device can be repaired or operated according to the location information of the underlying device.
[0056] Optionally, after assigning a gateway logical address to the wireless gateway based on the gateway positioning address, in the event that a first wireless gateway among multiple wireless gateways fails, the working channel of a second wireless gateway among the multiple wireless gateways is modified to receive data sent to the first wireless gateway by the underlying device, wherein the second wireless gateway is the wireless gateway among the multiple wireless gateways that is closest to the first wireless gateway.
[0057] Step S104: The wireless gateway configures its own logical address according to the received gateway logical address.
[0058] Through the above solution, a positioning module for collecting the gateway positioning address is installed on the wireless gateway. When a logical address needs to be assigned, the server receives the gateway positioning address uploaded by the wireless gateway and assigns a gateway logical address to the wireless gateway based on the gateway positioning address. This does not require professional personnel to perform configuration, and can solve the technical problem of cumbersome configuration of the wireless gateway.
[0059] Example 3
[0060] In the technical solution of this application, the server can automatically assign a logical address based on the geographic location of the gateway, quickly locate the geographic location of the underlying device, and when a gateway fails, a nearby gateway can be used to replace it by changing the channel. As an optional embodiment, the technical solution of this application is further described in detail below in conjunction with specific implementation methods:
[0061] Assume that in a factory there are 1,000 energy devices whose LoRa data needs to be uploaded to the server. Three new wireless gateways with GPRS are now added for data collection and transmission.
[0062] The specific implementation steps are as follows:
[0063] 1) The three gateways upload their own geographic locations to the server respectively. The server assigns a logical address to the gateway through the handshake mechanism based on the latitude and longitude information, and sends the allocation frame consisting of the logical address and geographic location information to the gateway. The gateway checks whether the allocation frame is correct, then assigns a logical address to itself, and then sends the online frame consisting of its own logical address and geographic location information to the server. After receiving the online frame, the server verifies it with the address information in the database. If the verification is consistent, it allows the gateway to go online. At this point, the gateway address is successfully configured. The specific handshake process is as follows Figure 2 As shown:
[0064] Step S201, determining whether the gateway address location information received by the server is reasonable, if so, executing step S203, otherwise executing step S202.
[0065] Step S202: Filter the received gateway address location information.
[0066] Step S203: Allocate a logical address of the gateway according to the geographical location information, send an allocation frame, and store the geographical location and the corresponding logical address in a database.
[0067] Step S204: The gateway receives the logical address and responds with a confirmation frame.
[0068] In step S205, the server receives a confirmation frame containing the geographic location and logical address of the gateway, and checks it with the database. If it is correct, it sends a permission frame, otherwise it sends a non-permission frame.
[0069] In step S206, the APP or webpage directly calls the geographic location information data corresponding to the device address in the database.
[0070] 2) When no device on site sends data via wireless LoRa, the three gateways record the signal strength value of their current monitoring state and record the signal strength value as the background noise value of the current environment state.
[0071] 3) The three gateways are adjusted to the same channel, and receive data from the underlying devices at the same time, and upload the RSSI value and other data of the underlying device signals to the server. The server calculates the location information of the underlying device based on the latitude and longitude information, noise floor value and RSSI value of the three gateways, such as Figure 3 Similarly, the location information of all equipment in the factory can be calculated.
[0072] 4) When a device fails or needs to be operated on site, the staff can quickly find its specific location based on the device location information saved in the server.
[0073] 5) When a gateway fails and the server urgently needs to obtain the device data under the failed gateway, it can find the gateway closest to the failed gateway based on the gateway location information in the database, and make it modify the channel to replace the work of the failed gateway.
[0074] By adopting the technical solution of the present application, the gateway can automatically obtain the logical address without manual configuration; when the gateway or the underlying equipment fails, emergency processing can be carried out promptly and effectively according to the location.
[0075] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0077] Example 4
[0078] According to another aspect of the embodiments of the present application, an address allocation device for implementing the above-mentioned address allocation method is also provided. Figure 4 is a schematic diagram of an optional address allocation device according to an embodiment of the present application, such as Figure 4 As shown, the device may include:
[0079] The receiving unit 41 is configured to receive a gateway location address uploaded by a wireless gateway, wherein the wireless gateway is equipped with a location module for collecting the gateway location address;
[0080] The allocating unit 43 is configured to allocate a gateway logical address to the wireless gateway according to the gateway location address.
[0081] Through the above module, when a logical address needs to be assigned, the server receives the gateway location address uploaded by the wireless gateway, and assigns a gateway logical address to the wireless gateway based on the gateway location address, without the need for professional personnel to perform configuration, which can solve the technical problem of complicated configuration of wireless gateways.
[0082] Optionally, the allocation unit is also used to: when the gateway location address sent by the wireless gateway is legal, send an allocation frame to the wireless gateway, and store the gateway location address and the allocated gateway logical address in a database, and the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame.
[0083] Optionally, the allocation unit is also used to: after sending an allocation frame to the wireless gateway, receive a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; when the logical address and positioning address carried by the confirmation frame match the logic address and positioning address in the database, send a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; when the logical address and positioning address carried by the confirmation frame do not match the logic address and positioning address in the database, send a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
[0084] Optionally, the allocation device also includes: a determination unit, which is used to receive RSSI values of the same underlying device and signal strength values of multiple wireless gateways during monitoring sent by multiple wireless gateways after allocating a gateway logical address to the wireless gateway according to the gateway positioning address; and determine the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of multiple wireless gateways during monitoring, and the gateway positioning addresses of multiple wireless gateways.
[0085] Optionally, the distribution device also includes: a maintenance unit, which is used to send the location information of the underlying device to a designated device after determining the location information of the underlying device based on the RSSI value of the underlying device, the signal strength values of the multiple wireless gateways during monitoring, and the gateway positioning addresses of the multiple wireless gateways, in the event that the underlying device fails or the underlying device needs to be operated, so as to facilitate fault repair or operation of the underlying device according to the location information of the underlying device.
[0086] Optionally, the maintenance unit is also used to: after assigning a gateway logical address to the wireless gateway according to the gateway positioning address, in the event that a first wireless gateway among the multiple wireless gateways fails, modify the working channel of a second wireless gateway among the multiple wireless gateways to receive data sent to the first wireless gateway by the underlying device, wherein the second wireless gateway is the wireless gateway among the multiple wireless gateways that is closest to the location of the first wireless gateway.
[0087] Example 5
[0088] According to another aspect of the embodiments of the present application, an address allocation device for implementing the above-mentioned address allocation method is also provided. Figure 5 is a schematic diagram of an optional address allocation device according to an embodiment of the present application, such as Figure 5 As shown, the device may include:
[0089] The sending unit 51 is used to send the gateway positioning address to the server, wherein the gateway positioning address is collected by the positioning module installed on the wireless gateway;
[0090] The configuration unit 53 is configured to configure the logical address of the wireless gateway itself according to the received gateway logical address, wherein the gateway logical address is allocated by the server according to the gateway location address.
[0091] Through the above module, when a logical address needs to be assigned, the server receives the gateway location address uploaded by the wireless gateway, and assigns a gateway logical address to the wireless gateway based on the gateway location address, without the need for professional personnel to perform configuration, which can solve the technical problem of complicated configuration of wireless gateways.
[0092] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules, as part of the device, can run in a corresponding hardware environment and can be implemented by software or hardware, wherein the hardware environment includes a network environment.
[0093] Example 6
[0094] According to another aspect of the embodiment of the present application, a server is further provided, including the above-mentioned address allocation device. The operation mode of the server refers to the above-mentioned embodiment.
[0095] Example 7
[0096] According to another aspect of the embodiment of the present application, a wireless gateway is further provided, including the above-mentioned address allocation device. The operation mode of the wireless gateway refers to the above-mentioned embodiment.
[0097] Example 8
[0098] This embodiment provides an electronic device, comprising: a processor 201, a memory 203, and a transmission device 205, such as Figure 6 As shown, the terminal may further include input and output devices 207; wherein:
[0099] The memory 203 can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 203, that is, implementing the above-mentioned method. The memory 203 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 203 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0100] The transmission device 205 is used to receive or send data via a network, and can also be used for data transmission between a processor and a memory. Specific examples of the network may include wired networks and wireless networks. In one embodiment, the transmission device 205 includes a network interface controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In one embodiment, the transmission device 205 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0101] Specifically, the memory 203 is used to store application programs.
[0102] The processor 201 can call the application stored in the memory 203 through the transmission device 205 to perform the following steps: receiving the gateway positioning address uploaded by the wireless gateway, wherein the wireless gateway is installed with a positioning module for collecting the gateway positioning address; and allocating a gateway logical address to the wireless gateway according to the gateway positioning address.
[0103] Example 9
[0104] The embodiments of the present application provide a software for executing the technical solutions described in the above embodiments and preferred implementation modes.
[0105] An embodiment of the present application provides a non-volatile computer storage medium, which stores computer-executable instructions. The computer-executable instructions can execute the method for editing content in a document in any of the above method embodiments.
[0106] The above-mentioned software is stored in the above-mentioned storage medium, which includes but is not limited to: a CD, a floppy disk, a hard disk, a rewritable memory, etc.
[0107] The above-mentioned product can execute the method provided in the embodiment of this application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of this application.
[0108] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:
[0109] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and are primarily designed to provide voice and data communications. These terminals include smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones.
[0110] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.
[0111] (3) Portable entertainment devices: These devices can display and play multimedia content. These devices include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0112] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, device bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0113] (5) Other electronic devices with data interaction functions, such as televisions, large-screen cars, etc.
[0114] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0115] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An address allocation system, characterized in that: The distribution system comprises: Multiple wireless gateways, each wireless gateway is equipped with a positioning module, the positioning module is used to collect the gateway positioning address of the wireless gateway, and the wireless gateway is used to upload its own gateway positioning address; a server, the server being configured to allocate a gateway logical address to the wireless gateway according to the received gateway location address; The server is used to: If the gateway location address sent by the wireless gateway is legal, send an allocation frame to the wireless gateway, and store the gateway location address and the allocated gateway logical address in a database, wherein the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can determine the legality of the allocation frame; After sending the allocation frame to the wireless gateway, it also includes: receiving a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; when the logical address and positioning address carried by the confirmation frame match the logical address and positioning address in the database, sending a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; when the logical address and positioning address carried by the confirmation frame do not match the logical address and positioning address in the database, sending a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
2. The dispensing system according to claim 1, characterized in that The distribution system further comprises: a plurality of bottom-level devices, the bottom-level devices being configured to send the collected data to the server via the wireless gateway; The multiple wireless gateways are also used to send the collected RSSI values of the underlying devices to the server, so that the server can determine the location information of the underlying devices based on the gateway positioning addresses of the multiple wireless gateways, the signal strength values during monitoring and the RSSI values.
3. A method for allocating an address, characterized in that: Applied to the server, the allocation method includes: Receiving a gateway positioning address uploaded by a wireless gateway, wherein the wireless gateway is equipped with a positioning module for collecting the gateway positioning address; Allocating a gateway logical address to the wireless gateway according to the gateway positioning address; Allocating a gateway logical address to the wireless gateway according to the gateway location address includes: If the gateway location address sent by the wireless gateway is legal, send an allocation frame to the wireless gateway, and store the gateway location address and the allocated gateway logical address in a database, wherein the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can determine the legality of the allocation frame; After sending the allocation frame to the wireless gateway, the method further includes: receiving a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when determining that the allocation frame is legal; When the logical address and the positioning address carried by the confirmation frame match the logical address and the positioning address in the database, sending a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; When the logical address and the positioning address carried in the confirmation frame do not match the logical address and the positioning address in the database, a second communication frame is sent to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
4. The distribution method according to claim 3, characterized in that: After allocating a gateway logical address to the wireless gateway according to the gateway location address, the allocation method further includes: Receiving RSSI values of the same underlying device sent by multiple wireless gateways and signal strength values of the multiple wireless gateways during monitoring; The location information of the underlying device is determined according to the RSSI value of the underlying device, the signal strength values of the plurality of wireless gateways during monitoring, and the gateway positioning addresses of the plurality of wireless gateways.
5. The distribution method according to claim 4, characterized in that: After determining the location information of the underlying device according to the RSSI value of the underlying device, the signal strength values of the plurality of wireless gateways during monitoring, and the gateway positioning addresses of the plurality of wireless gateways, the allocation method further includes: When the underlying device fails or needs to be operated, the location information of the underlying device is sent to a designated device so that the underlying device can be repaired or operated according to the location information of the underlying device.
6. The distribution method according to claim 3, characterized in that: After allocating a gateway logical address to the wireless gateway according to the gateway location address, the allocation method further includes: In the event that a first wireless gateway among the multiple wireless gateways fails, a working channel of a second wireless gateway among the multiple wireless gateways is modified to receive data sent to the first wireless gateway by an underlying device, wherein the second wireless gateway is the wireless gateway among the multiple wireless gateways that is closest to the first wireless gateway.
7. A method for allocating an address, characterized in that: Applied to a wireless gateway, the allocation method includes: Sending a gateway positioning address to a server, wherein the gateway positioning address is collected by a positioning module installed on the wireless gateway; Configuring the logical address of the wireless gateway itself according to the received gateway logical address, wherein the gateway logical address is allocated by the server according to the gateway location address; The server is used to: send an allocation frame to the wireless gateway if the gateway location address sent by the wireless gateway is legal, and store the gateway location address and the allocated gateway logical address in a database, wherein the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame; receive a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; send a first communication frame to the wireless gateway if the logical address and location address carried in the confirmation frame match the logical address and location address in the database, wherein the first communication frame is used to instruct the wireless gateway to go online; send a second communication frame to the wireless gateway if the logical address and location address carried in the confirmation frame do not match the logical address and location address in the database, wherein the second communication frame is used to prohibit the wireless gateway from going online.
8. An address allocation device, characterized in that: The dispensing device comprises: A receiving unit, configured to receive a gateway positioning address uploaded by a wireless gateway, wherein the wireless gateway is equipped with a positioning module for collecting the gateway positioning address; an allocating unit, configured to allocate a gateway logical address to the wireless gateway according to the gateway location address; The allocation unit is also used to: if the gateway location address sent by the wireless gateway is legal, send an allocation frame to the wireless gateway, and store the gateway location address and the allocated gateway logical address in a database, the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame; after sending the allocation frame to the wireless gateway, receive a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; if the logical address and location address carried in the confirmation frame match the logical address and location address in the database, send a first communication frame to the wireless gateway, wherein the first communication frame is used to instruct the wireless gateway to go online; if the logical address and location address carried in the confirmation frame do not match the logical address and location address in the database, send a second communication frame to the wireless gateway, wherein the second communication frame is used to prohibit the wireless gateway from going online.
9. An address allocation device, characterized in that: The dispensing device comprises: A sending unit, configured to send a gateway positioning address to a server, wherein the gateway positioning address is collected by a positioning module installed on the wireless gateway; a configuration unit, configured to configure a logical address of the wireless gateway itself according to the received gateway logical address, wherein the gateway logical address is allocated by the server according to the gateway location address; The server is used to: send an allocation frame to the wireless gateway if the gateway location address sent by the wireless gateway is legal, and store the gateway location address and the allocated gateway logical address in a database, wherein the allocation frame carries the gateway logical address and the gateway location address, so that the wireless gateway can judge the legality of the allocation frame; receive a confirmation frame returned by the wireless gateway, wherein the confirmation frame is returned by the wireless gateway when it determines that the allocation frame is legal; send a first communication frame to the wireless gateway if the logical address and location address carried in the confirmation frame match the logical address and location address in the database, wherein the first communication frame is used to instruct the wireless gateway to go online; send a second communication frame to the wireless gateway if the logical address and location address carried in the confirmation frame do not match the logical address and location address in the database, wherein the second communication frame is used to prohibit the wireless gateway from going online.
10. A server, characterized in that: A device for allocating addresses comprising the address as claimed in claim 8.
11. A wireless gateway, characterized in that: A device for allocating addresses comprising the address as claimed in claim 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 3 to 7 is implemented.
13. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, causes the one or more processors to implement the method according to any one of claims 3 to 7.
Citation Information
Patent Citations
Intelligent gateway configuration method and device, computer equipment and storage medium
CN112087315A
Wireless device positioning system and method, and server
CN112566019A