A method and device for numbering Internet of Things devices
By using the geographical location information and map interface of IoT devices to manually or automatically outline the numbered line segments, the problem of difficult to flexibly deal with irregular distribution of IoT device numbers is solved, and unique numbering and efficient management of devices are achieved.
Patent Information
- Application Number
- CN202411331100.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-09-24
AI Technical Summary
The prior art is difficult to effectively assign unique numbers to a large number of irregularly distributed IoT devices, especially in complex or randomly distributed environments. Traditional numbering methods are time-consuming, error-prone, and equipment management becomes complicated when the number of devices is huge.
By obtaining the latitude and longitude data of the IoT device, determine the map coordinates of the device and display the location icon on the map interface. Manually or automatically outline the numbered segments on the map interface, so that they pass through all device icons, automatically number the device according to the order of the segments and the distance of the intersection points, and send the number to the device.
It realizes flexible and unique numbers of IoT devices, improves the manageability and efficiency of devices, is suitable for any device distribution, and supports dynamic adjustments to deal with changes in device location or new devices.
Smart Images

Figure CN119109904B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things device control, and in particular to an Internet of Things device numbering method and device. Background Art
[0002] In existing technologies, when addressing a large number of IoT devices, it relies on fixed network topologies (such as grid, star, tree, etc.). When the devices are irregularly distributed, it is difficult to effectively assign unique numbers to the devices. However, by determining the device number by outlining the route on the map, it can flexibly deal with arbitrarily distributed devices, and even in a complex or randomly distributed environment, it can ensure that each device has a clear number.
[0003] And as the number of IoT devices grows, device management becomes increasingly complex. Traditional numbering methods may require manual recording and assigning of numbers, which is not only time-consuming but also prone to errors. In addition, with a large number of devices, it becomes difficult to find a specific device or perform device maintenance. Summary of the invention
[0004] The embodiment of the present invention provides a method and apparatus for numbering Internet of Things devices, which can quickly and effectively manage the numbering of Internet of Things devices by manually or automatically drawing numbering segments based on geographic location information through a map interface, thereby improving the manageability and efficiency of Internet of Things devices.
[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides an IoT device numbering method, comprising:
[0006] Determine a number of device map coordinates according to the latitude and longitude data of a number of IoT devices, and display preset location icons at the number of device map coordinates; each of the device map coordinates corresponds to a point on the map interface;
[0007] Draw a route on the map interface to form a plurality of orderly and end-to-end connected numbered line segments passing through all the location icons;
[0008] Sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons;
[0009] Send a number to the IoT device corresponding to each device map coordinate.
[0010] In a possible implementation of the first aspect, determining a plurality of device map coordinates according to the latitude and longitude data of the plurality of IoT devices specifically includes:
[0011] Convert the longitude and latitude data of several IoT devices into several longitude and latitude parameters;
[0012] The plurality of latitude and longitude parameters are passed to the map API to determine the device map coordinates corresponding to each of the latitude and longitude parameters.
[0013] In a possible implementation of the first aspect, the drawing of a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons specifically includes:
[0014] A route is drawn on the map interface to form a plurality of ordered numbered line segments connected end to end, so that each numbered line segment passes through at least one of the location icons.
[0015] In a possible implementation manner of the first aspect, making each of the numbered line segments pass through at least one of the location icons specifically includes:
[0016] Make the line segment body or line segment extension area corresponding to each of the numbered line segments cover at least one pixel point of at least one of the location icons; the numbered line segments include a line segment body and a line segment extension area, the line segment body is determined by the line connecting the line segment start point and the line segment end point, and the line segment extension area wraps the line segment body.
[0017] In a possible implementation manner of the first aspect, before sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons, the method further includes:
[0018] The plurality of numbered line segments are sorted according to input times at which the plurality of numbered line segments pass through.
[0019] In a possible implementation manner of the first aspect, the order in which the plurality of numbered line segments pass through all the location icons specifically includes:
[0020] For each numbered line segment, counting a number of intersections between the numbered line segment and the location icon;
[0021] For each numbered line segment, calculating the starting point distance between the center of each intersection and the starting point of the numbered line segment, and determining the order of the plurality of intersections according to the starting point distance;
[0022] For each numbered line segment, the order in which the numbered line segment passes through the position icons inside the line segment is determined according to the order of the plurality of intersections.
[0023] In a possible implementation manner of the first aspect, determining the order of the plurality of intersections according to the starting point distances specifically includes:
[0024] The plurality of intersections are sorted in ascending order according to the starting point distances.
[0025] In a possible implementation manner of the first aspect, calculating the starting point distance between the center of each intersection and the starting point of the numbered line segment specifically includes:
[0026] If the number of pixels in the intersection is equal to 1, the only pixel is taken as the center of the intersection;
[0027] If the number of pixels in the intersection is greater than 1, the geometric center of all pixels in the intersection is taken as the center of the intersection;
[0028] Calculate the distance between the center of each intersection and the starting point of the numbered line segment.
[0029] In a possible implementation manner of the first aspect, sequentially numbering the device addresses corresponding to the plurality of device map coordinates specifically includes:
[0030] According to the order in which the plurality of numbered line segments pass through all the location icons, determining a device address corresponding to the first device map coordinate as an initial device address;
[0031] The initial device address is processed according to a preset rule to obtain a number of ordered device addresses; each device address corresponds to a device map coordinate and a device unique code; the device unique code includes the device's identity and latitude and longitude information.
[0032] A second aspect of an embodiment of the present application provides an IoT device numbering device, including:
[0033] A map coordinate module, used to determine a number of device map coordinates based on the latitude and longitude data of a number of IoT devices, and display preset location icons at the said number of device map coordinates; each of the said device map coordinates corresponds to a point on the map interface;
[0034] A route drawing module, used for drawing a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons;
[0035] A device numbering module, used for sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons;
[0036] The number sending module is used to send a number to the Internet of Things device corresponding to each device map coordinate.
[0037] Compared with the prior art, an embodiment of the present invention provides a method and device for numbering IoT devices. By obtaining the GPS data (i.e., longitude and latitude) of IoT devices, the locations of these devices on the map can be determined, and displayed as icons on the map interface. Next, one or more numbered line segments connecting all device icons are manually or automatically drawn on the map interface. These numbered line segments can connect all devices in a certain order to ensure that no device is missed. Based on the order of these numbered line segments and the order in which they cross the device icons, a unique number is assigned to each IoT device. The last step is to send these numbers to the corresponding IoT devices for subsequent management and identification.
[0038] Since the route can be freely drawn, no matter how the devices are distributed, a suitable path can be found to connect all the devices by hand drawing or automatic algorithm generation. This flexibility allows even randomly distributed devices to be numbered effectively. If the location of the device changes, or a new device is added to the network, one or more of the numbered segments can be adjusted accordingly without affecting the stability of the entire numbering system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of a method for numbering IoT devices provided by an embodiment of the present invention;
[0040] Figure 2 The present invention provides a schematic diagram of a process of route drawing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] To solve the above problems, see Figure 1 An embodiment of the present invention provides a method for numbering IoT devices, comprising:
[0043] S10. Determine a plurality of device map coordinates according to the latitude and longitude data of a plurality of IoT devices, and display preset location icons at the plurality of device map coordinates; each of the device map coordinates corresponds to a point on a map interface.
[0044] S11. Draw a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons.
[0045] S12. Sequentially number the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons.
[0046] S13. Send a number to each of the IoT devices corresponding to the device map coordinates.
[0047] S10 obtains the latitude and longitude data of each IoT device and converts it into device map coordinates, so that the location icons of these devices can be displayed on the map interface. Each location icon represents the location of a device, making the distribution of the devices clear at a glance. This method not only provides visualization of the device location, but also lays the foundation for subsequent steps. S11 manually or automatically draws one or more numbered line segments on the map interface, which are connected end to end and pass through all device icons. In this way, an orderly relationship chain can be established for IoT devices, and even if the IoT devices are distributed irregularly, each IoT device can be numbered in a certain order. S12 calculates the distance between these intersections and the starting point of the line segment by counting the intersections of each numbered line segment and the IoT device icon, and determines the order of the intersections according to the size of these distances. This ensures that each IoT device obtains a unique number based on its geographical location, which is convenient for subsequent IoT device identification and management. S13 sends the numbering information to each IoT device through the network to ensure that each IoT device receives its own number. This step is a key step to ensure that devices can self-identify and communicate on the network according to the number.
[0048] The above method provides a flexible and intuitive numbering scheme for IoT devices by combining geographic location information and map interface display. It not only solves the problem of flexibility in IoT device numbering, but also improves the management and efficiency of dynamic IoT devices. Through the visual display and route drawing on the map, the location and numbering of IoT devices can be effectively managed, making the maintenance of IoT devices simpler and more efficient.
[0049] It should be noted that in order to conveniently obtain the longitude and latitude data of IoT devices, a positioning module can be set up inside the IoT, specifically using a GPS module with a GPS antenna, which needs to be installed outdoors or on a lamp pole through a bracket when in use, that is, you can choose to build a GPS module and a Cat.1 module into the IoT device (product), and the single-chip microcomputer in the IoT device communicates with the GPS to obtain the longitude and latitude data. At the same time, the Cat.1 module in the IoT device establishes a socket connection with the server, and transmits the longitude and latitude data to the server through the socket in binary mode. The server receives the longitude and latitude of several IoT devices, and when calling the display service through the map interface, passes these longitude and latitude as parameters to the corresponding API of the map interface. The corresponding processing module of the map interface will convert these longitude and latitude data into points displayed on the screen, match the corresponding positions on the map interface, and then display the preset location icon on the map interface.
[0050] The positioning information is input from the GPS module to the API parameter input of the map, which is always longitude and latitude data, and is finally converted into screen coordinates for display by the map module.
[0051] Exemplarily, the determining of a plurality of device map coordinates according to the latitude and longitude data of a plurality of IoT devices specifically includes:
[0052] Convert the longitude and latitude data of several IoT devices into several longitude and latitude parameters;
[0053] The plurality of latitude and longitude parameters are passed to the map API to determine the device map coordinates corresponding to each of the latitude and longitude parameters.
[0054] The longitude and latitude data obtained from the IoT device is converted into a parameter form suitable for use by the map API, and the longitude and latitude parameters are converted into specific coordinates on the map using the map service API. This usually involves reverse geocoding, that is, converting the longitude and latitude coordinates into human-readable addresses or markers on the map. Then, the device icon can be displayed on the map interface (through a preset location icon, see the following embodiment), and each location icon corresponds to the specific location of a device.
[0055] By using the map API, you can ensure that the device's location information is displayed accurately on the map. This process can be fully automated, reducing the possibility of manual input errors. In addition, it supports multiple map service APIs, so you can choose the most suitable map service provider according to your needs.
[0056] Exemplarily, the drawing of a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons specifically includes:
[0057] A route is drawn on the map interface to form a plurality of ordered numbered line segments connected end to end, so that each numbered line segment passes through at least one of the location icons.
[0058] At this stage, you need to draw a series of numbered line segments on the map interface. These numbered line segments should be connected end to end and cover the location icons of all devices. This process can be drawn manually or automatically generated using an algorithm. To ensure that each numbered line segment passes through at least one location icon, you can consider the location distribution of the devices when drawing the line segments, and try to make the line segments pass through each device icon. If the devices are sparsely distributed, you can increase the density of the line segments to ensure coverage.
[0059] Ensure coverage by checking if each line segment crosses at least one device icon. If not, adjust the line segment, such as adding a middle point. After the adjustment, draw the final line segment.
[0060] Manually drawn routes can be flexibly adjusted according to actual conditions to ensure that every device is covered. By checking the coverage, it can be ensured that no device is missed. Although manual adjustment is used here, it can be further combined with the development algorithm to automatically adjust the line segments to adapt to more complex device distribution situations.
[0061] Through the above steps, it can be ensured that the numbered line segments drawn on the map interface can cover the location icons of all devices in an orderly and end-to-end manner, providing a reliable basis for subsequent device numbering.
[0062] Exemplarily, making each of the numbered line segments pass through at least one of the location icons specifically includes:
[0063] Make the line segment body or line segment extension area corresponding to each of the numbered line segments cover at least one pixel point of at least one of the location icons; the numbered line segments include a line segment body and a line segment extension area, the line segment body is determined by the line connecting the line segment start point and the line segment end point, and the line segment extension area wraps the line segment body.
[0064] First, determine the starting point and end point of the line segment, and then draw a straight line connecting the two points as the main body of the line segment. The extended area of the line segment can be understood as the area within a certain width range on both sides of the line segment, such as a distance of several pixels on both sides of the line segment. For each location icon, check whether it intersects with the main body of a numbered line segment or its extended area. If there is an intersection, the line segment is considered to cover this icon.
[0065] Through the above, it can be ensured that each numbered line segment covers at least one pixel of a location icon, thereby meeting the requirements of the actual project.
[0066] Exemplarily, before sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons, the method further includes:
[0067] The plurality of numbered line segments are sorted according to input times at which the plurality of numbered line segments pass through.
[0068] When drawing numbered segments, record the drawing time (input time) of each segment. This can be achieved by recording the timestamp of each time the user clicks to draw a segment. Sort the numbered segments according to the recorded timestamps to ensure that the segments are arranged in the order in which they were drawn.
[0069] Exemplarily, the order in which the plurality of numbered line segments pass through all the location icons specifically includes:
[0070] For each numbered line segment, counting a number of intersections between the numbered line segment and the location icon;
[0071] For each numbered line segment, calculating the starting point distance between the center of each intersection and the starting point of the numbered line segment, and determining the order of the plurality of intersections according to the starting point distance;
[0072] For each numbered line segment, the order in which the numbered line segment passes through the position icons inside the line segment is determined according to the order of the plurality of intersections.
[0073] Determine the intersection between each numbered line segment and the location icon. An intersection is a location icon covered by the main body of the line segment or its extended area. Record which location icons each numbered line segment intersects with. Then calculate the distance between the center point of each intersection and the starting point of the numbered line segment, and then sort the intersections according to the size of the distance. Finally, determine the order of the location icons (i.e., devices) based on the order of the intersections.
[0074] Through the above steps, it can be ensured that each numbered line segment determines the number of the device in the order in which it passes through the location icon. This method not only takes into account the actual geographical location information of the device, but also ensures the logical order of the numbering. This helps to improve the efficiency and accuracy of device management.
[0075] Exemplarily, determining the order of the plurality of intersections according to the starting point distances specifically includes:
[0076] The plurality of intersections are sorted in ascending order according to the starting point distances.
[0077] Exemplarily, calculating the distance between the center of each intersection and the starting point of the numbered line segment specifically includes:
[0078] If the number of pixels in the intersection is equal to 1, the only pixel is taken as the center of the intersection;
[0079] If the number of pixels in the intersection is greater than 1, the geometric center of all pixels in the intersection is taken as the center of the intersection;
[0080] Calculate the distance between the center of each intersection and the starting point of the numbered line segment.
[0081] Through the above steps, it is possible to ensure that each numbered line segment is sorted in ascending order according to the order in which it passes through the location icon and the size of the starting point distance to determine the device number. This method not only takes into account the actual geographical location information of the device, but also ensures the logical order of the numbering, thereby improving the efficiency and accuracy of device management.
[0082] Exemplarily, sequentially numbering the device addresses corresponding to the plurality of device map coordinates specifically includes:
[0083] According to the order in which the plurality of numbered line segments pass through all the location icons, determining a device address corresponding to the first device map coordinate as an initial device address;
[0084] The initial device address is processed according to a preset rule to obtain a plurality of ordered device addresses; each device address corresponds to a device map coordinate and a device unique code; the device unique code includes the device's identity identification and latitude and longitude information.
[0085] See also Figure 2 ,right Figure 2 The numbering of the IoT devices shown is 9 to 40. On the map interface, a line is connected from the point with the target number 9 to form a line segment with a sequence. The IoT device address corresponding to the location icon that intersects the line segment and its extended area is used as the numbering object. According to the order of the line segment and the covered coordinate area, the numbering objects are sorted, and the device address of the first IoT device is designated as the initial device address, and then increases in sequence to complete the orderly arrangement of the device address on the server. And by retrieving the unique code of each device to find the corresponding socket connection, through this connection, the sorted address number is sent to the device, and the device writes the new number to the internal memory, realizing the orderly arrangement of the device address number.
[0086] Compared with the prior art, an embodiment of the present invention provides an IoT device numbering method, which can determine the location of these devices on the map by obtaining the GPS data (i.e., longitude and latitude) of IoT devices, and display them in the form of icons on the map interface. Then, one or more numbered line segments connecting all device icons are manually or automatically drawn on the map interface. These numbered line segments can connect all devices in a certain order to ensure that no device is missed. Based on the order of these numbered line segments and the order in which they cross the device icons, a unique number is assigned to each IoT device. The last step is to send these numbers to the corresponding IoT devices for subsequent management and identification.
[0087] Since the route can be freely drawn, no matter how the devices are distributed, a suitable path can be found to connect all the devices by hand drawing or automatic algorithm generation. This flexibility allows even randomly distributed devices to be numbered effectively. If the location of the device changes, or a new device is added to the network, one or more of the numbered segments can be adjusted accordingly without affecting the stability of the entire numbering system.
[0088] An embodiment of the present application provides an IoT device numbering device, including: a map coordinate module, a route drawing module, a device numbering module and a number sending module.
[0089] The map coordinate module is used to determine a number of device map coordinates based on the latitude and longitude data of a number of IoT devices, and display preset location icons at the said number of device map coordinates; each of the said device map coordinates corresponds to a point on the map interface.
[0090] The route drawing module is used to draw a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons.
[0091] The device numbering module is used to sequentially number the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons.
[0092] The number sending module is used to send a number to the Internet of Things device corresponding to each device map coordinate.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment and will not be described again here.
[0094] Compared with the prior art, an IoT device numbering device provided in an embodiment of the present invention can determine the location of these devices on the map by obtaining the GPS data (i.e., longitude and latitude) of IoT devices, and display them in the form of icons on the map interface. Then, one or more numbered line segments connecting all device icons are manually or automatically drawn on the map interface. These numbered line segments can connect all devices in a certain order to ensure that no device is missed. Based on the order of these numbered line segments and the order in which they cross the device icons, a unique number is assigned to each IoT device. The last step is to send these numbers to the corresponding IoT devices for subsequent management and identification.
[0095] Since the route can be freely drawn, no matter how the devices are distributed, a suitable path can be found to connect all the devices by hand drawing or automatic algorithm generation. This flexibility allows even randomly distributed devices to be numbered effectively. If the location of the device changes, or a new device is added to the network, one or more of the numbered segments can be adjusted accordingly without affecting the stability of the entire numbering system.
[0096] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for numbering IoT devices as described above.
[0097] The computer device may be a computing device such as a smart phone, a tablet computer, a desktop computer, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the figure is merely an example of a computer device and does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.
[0098] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0099] In some embodiments, the memory may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory may also include both an internal storage unit of the computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0100] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.
[0101] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0102] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0103] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for numbering IoT devices, characterized in that: include: Determine a number of device map coordinates according to the latitude and longitude data of a number of IoT devices, and display preset location icons at the number of device map coordinates; each of the device map coordinates corresponds to a point on the map interface; Draw a route on the map interface to form a plurality of orderly and end-to-end connected numbered line segments passing through all the location icons; Sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons; Sending a number to each of the IoT devices corresponding to the device map coordinates; The route is drawn on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons, specifically including: A route is drawn on the map interface to form a plurality of ordered numbered line segments connected end to end, so that a line segment body or a line segment extension area corresponding to each numbered line segment covers at least one pixel point of at least one of the location icons; the numbered line segments include a line segment body and a line segment extension area, the line segment body is determined by a line connecting a line segment start point and a line segment end point, and the line segment extension area wraps around the line segment body.
2. A method for numbering IoT devices as claimed in claim 1, characterized in that: Determining a plurality of device map coordinates according to the latitude and longitude data of a plurality of IoT devices specifically includes: Convert the longitude and latitude data of several IoT devices into several longitude and latitude parameters; The plurality of latitude and longitude parameters are passed to the map API to determine the device map coordinates corresponding to each of the latitude and longitude parameters.
3. A method for numbering IoT devices as claimed in claim 1, characterized in that: Before sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons, the method further includes: The plurality of numbered line segments are sorted according to input times at which the plurality of numbered line segments pass through.
4. A method for numbering IoT devices as claimed in claim 1, characterized in that: The order in which the plurality of numbered line segments pass through all the location icons specifically includes: For each numbered line segment, counting a number of intersections between the numbered line segment and the location icon; For each numbered line segment, calculating the starting point distance between the center of each intersection and the starting point of the numbered line segment, and determining the order of the plurality of intersections according to the starting point distance; For each numbered line segment, the order in which the numbered line segment passes through the position icons inside the line segment is determined according to the order of the plurality of intersections.
5. A method for numbering IoT devices as claimed in claim 4, characterized in that: The step of determining the order of the plurality of intersections according to the starting point distances specifically includes: The plurality of intersections are sorted in ascending order according to the starting point distances.
6. A method for numbering IoT devices as claimed in claim 4, characterized in that: Calculating the distance between the center of each intersection and the starting point of the numbered line segment includes: If the number of pixels in the intersection is equal to 1, the only pixel is taken as the center of the intersection; If the number of pixels in the intersection is greater than 1, the geometric center of all pixels in the intersection is taken as the center of the intersection; Calculate the distance between the center of each intersection and the starting point of the numbered line segment.
7. A method for numbering IoT devices as claimed in claim 1, characterized in that: The sequentially numbering of the device addresses corresponding to the device map coordinates specifically includes: According to the order in which the plurality of numbered line segments pass through all the location icons, determining a device address corresponding to the first device map coordinate as an initial device address; The initial device address is processed according to a preset rule to obtain a plurality of ordered device addresses; each device address corresponds to a device map coordinate and a device unique code; the device unique code includes the device's identity identification and latitude and longitude information.
8. An IoT device numbering device, characterized in that: include: A map coordinate module, used to determine a number of device map coordinates based on the latitude and longitude data of a number of IoT devices, and to display preset location icons at the said number of device map coordinates; each of the said device map coordinates corresponds to a point on the map interface; A route drawing module, used for drawing a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons; A device numbering module, used for sequentially numbering the device addresses corresponding to the device map coordinates according to the order in which the numbered line segments pass through all the location icons; A number sending module, used for sending a number to the IoT device corresponding to each device map coordinate; The route drawing module draws a route on the map interface to form a plurality of ordered and end-to-end connected numbered line segments passing through all the location icons, specifically: The route drawing module draws a route on the map interface to form a number of ordered numbered line segments connected end to end, so that the line segment body or line segment extension area corresponding to each numbered line segment covers at least one pixel point of at least one of the location icons; the numbered line segments include a line segment body and a line segment extension area, the line segment body is determined by a line connecting the line segment starting point and the line segment end point, and the line segment extension area wraps the line segment body.
Citation Information
Patent Citations
SAR image de-noising algorithm based on Primal Sketch classification and SVD domain improvement MMSE estimation
CN104732493A
Method and system for vehicle traffic display based on map
CN109033400A