CN115633018A - Device registration method, device, storage medium and electronic device - Google Patents

Device registration method, device, storage medium and electronic device Download PDF

Info

Publication number
CN115633018A
CN115633018A CN202211243086.1A CN202211243086A CN115633018A CN 115633018 A CN115633018 A CN 115633018A CN 202211243086 A CN202211243086 A CN 202211243086A CN 115633018 A CN115633018 A CN 115633018A
Authority
CN
China
Prior art keywords
target
platform
link
equipment
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211243086.1A
Other languages
Chinese (zh)
Inventor
刘广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202211243086.1A priority Critical patent/CN115633018A/en
Publication of CN115633018A publication Critical patent/CN115633018A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The embodiment of the invention provides a device registration method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that target equipment is determined to be registered to other platforms, a target address and a target port of a target platform to which the target equipment is to be registered are obtained, wherein the target equipment is equipment which is connected with a simulation platform, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform; determining whether a target link between the simulation platform and the target platform has been established through the target port; at least one target device is registered with the target platform via the target link, if established. According to the invention, the problem of low efficiency of the registration equipment in the related technology is solved, and the effect of improving the efficiency of the registration equipment is achieved.

Description

Device registration method, device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of Internet of things, in particular to a registration method and device of equipment, a storage medium and an electronic device.
Background
When the internet of things platform is accessed to a third-party device, because standards and protocols are different, an analog gateway or an analog platform is generally required to be established to access the third-party device in a first layer, and then the third-party device is accessed to a second layer through the analog platform to be connected to the internet of things platform, wherein the analog platform realizes conversion and connection services of different standards and protocols of the device.
In the related art, when the equipment of the internet of things is connected between the simulation platform and the platform of the internet of things in a registered manner, the simulation platform needs to establish a link between each piece of equipment and the target platform, and interaction between the platform of the internet of things and the equipment is realized based on the link. Therefore, when there are a plurality of devices, a plurality of links need to be established, and therefore, it takes a lot of time and effort, resulting in a slow speed of registering the devices.
Therefore, the related art has the problem of low efficiency of registering equipment.
In view of the above problems in the related art, no effective solution has been proposed so far.
Disclosure of Invention
The embodiment of the invention provides a device registration method, a device, a storage medium and an electronic device, which are used for at least solving the problem of low efficiency of equipment registration in the related art.
According to an embodiment of the present invention, there is provided a registration method of a device, including: under the condition that target equipment is determined to be registered to other platforms, acquiring a target address and a target port of a target platform to which the target equipment is to be registered, wherein the target equipment is equipment which is connected with a simulation platform, the equipment information comprises address information of other platforms to which the equipment is to be connected and port information of the other platforms, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform; determining whether a target link between the simulation platform and the target platform has been established through the target port; registering at least one of the target devices with the target platform via the target link if established.
According to another embodiment of the present invention, there is provided a registration apparatus of a device, including: the system comprises a first registration module, a second registration module and a third registration module, wherein the first registration module acquires a target address and a target port of a target platform to which target equipment is to be registered under the condition that the target equipment is determined to be registered to other platforms, the target equipment is equipment which is connected with a simulation platform, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform; a determination module to determine whether a target link between the simulation platform and the target platform has been established through the target port; a second registration module, configured to register at least one target device with the target platform through the target link under the established condition.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, under the condition that the target equipment is determined to be registered to other platforms, the target address and the target port of the target platform to which the target equipment is to be registered are obtained, wherein the target equipment is equipment which is connected with the simulation platform, the other platforms are platforms which are different from the simulation platform, the other platforms comprise the target platform, whether the target link between the simulation platform and the target platform is established through the target port or not is determined, and under the established condition, at least one target equipment is registered to the target platform through the target link. When the device is registered to the target platform, when a target link between the simulation platform and the target platform with the address as the target address is established through the target port, the target device is registered to the target platform through the target link, that is, a plurality of devices with the same address information and port information of other platforms to be connected to can be registered to the target platform through one target link, so that the problem of low efficiency of registered devices in the related technology can be solved, and the effect of improving the efficiency of registered devices is achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a device registration method according to an embodiment of the present invention;
fig. 2 is a flowchart of a registration method of a device according to an embodiment of the present invention;
FIG. 3 is a flow diagram illustrating registration of a target device with a target platform according to an embodiment of the invention;
FIG. 4 is a flowchart illustrating a target platform sending control signaling to a device according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a device sending a control signaling to a target platform according to an embodiment of the present invention;
FIG. 6 is a flow diagram of an unbinding device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a link reestablishment process according to an embodiment of the present invention
FIG. 8 is a flow chart illustrating a process of establishing a binding relationship according to an embodiment of the invention;
fig. 9 is a block diagram of a configuration of a registration apparatus of a device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a device registration method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the registration method of the device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for registering a device is provided, and fig. 2 is a flowchart of the method for registering a device according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, under the condition that target equipment is determined to be registered to other platforms, a target address and a target port of a target platform to which the target equipment is to be registered are obtained, wherein the target equipment is equipment which is connected with a simulation platform, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform;
step S204, determining whether a target link between the simulation platform and the target platform is established through the target port;
step S206, under the condition that the target device is established, registering at least one target device to the target platform through the target link.
In the above embodiment, the target device may be an internet of things device, the target platform and the other platforms may be internet of things platforms, and the other platforms may include a plurality of target platforms, where the target device and the other platforms conform to different protocols, and therefore, the target device may be registered in the other platforms by using the simulation platform as an intermediate platform.
In the above embodiment, when the simulation platform acquires the target address and the target port of the target platform to which the target device is to be registered, the simulation platform may acquire the target address and the target port through the device information. That is, when the target device establishes a connection with the simulation platform, the target device may send device information to the simulation platform, where the device information carries a target address and a target port of the target platform to which the target device is to be registered. The simulation platform can also acquire a target address and a target port from other servers, and the other servers are used for allocating registered internet of things platforms for the equipment. The simulation platform may send identification information of the device to the other servers to instruct the other servers to return the target address and the target port allocated for the device based on the identification information.
In the above embodiment, after the simulation platform establishes connection with the device, the device may be registered in another platform, and the target platform to which the device is to be connected is determined according to the obtained target address to which the device is to be connected and the target port. The simulation platform can judge whether a target link is established between a target port included in the device information of the target device and a platform with a target address, and can directly send the device information of the target device to the target platform through the target link under the condition that the target link is determined to be established, and the target platform can complete the registration of the target device to the target platform according to the device information. The execution subject of the above steps may be a simulation platform, but is not limited thereto.
According to the invention, under the condition that the target equipment is determined to be registered to other platforms, the target address and the target port of the target platform to which the target equipment is to be registered are obtained, wherein the target equipment is equipment which is connected with the simulation platform, the other platforms are platforms different from the simulation platform, the other platforms comprise the target platform, whether the target link between the simulation platform and the target platform is established through the target port or not is determined, and under the established condition, at least one target equipment is registered to the target platform through the target link. When the device is registered to the target platform, when a target link between the simulation platform and the target platform with the target address as the address is established through the target port, the target device is registered to the target platform through the target link, that is, a plurality of devices with the same address information and port information of other platforms to be connected to can be registered to the target platform through one target link.
In one exemplary embodiment, after determining whether a target link between the simulation platform and the target platform has been established through the target port, the method further comprises: establishing the target link between the simulation platform and the target platform through the target port without establishing the target link. In this embodiment, if the target device is not established, the target link is established, and the target device and the target link are bound. After binding, the target device and the target platform can interact through the target link.
In one exemplary embodiment, registering at least one of the target devices with the target platform through the target link includes: determining a target number of devices registered on the target platform through the established target link; registering at least one of the target devices with the target platform via the established target link if it is determined that the target number is less than a predetermined threshold; and under the condition that the target quantity is determined to be greater than or equal to a preset threshold value, newly establishing the target link, and registering at least one target device to the target platform through the target link. In this embodiment, in the case of establishment, a target number of devices bound to a target link may be determined, and in the case that the target number is greater than a predetermined threshold, a target link between the simulation platform and the target platform is reestablished through the target port. In the case that the target number of devices bound to the target link is less than the predetermined threshold, the target device may be bound to the target link, that is, the target device may be registered in the target platform through the target link. Referring to fig. 3, a schematic flowchart of a process for registering a target device on a target platform may be shown, as shown in fig. 3, where the process includes:
step S302, the simulation platform accesses a third party device (corresponding to the target device), and starts to register the third party device to the internet of things platform.
In step S304, the simulation platform acquires a link address (corresponding to the target address) and a port (corresponding to the target port) of the device, that is, an address of the device connected to the internet of things platform. The simulation platform can send identification information of the equipment to other servers to indicate the other servers to return the target address and the target port allocated for the equipment based on the identification information.
Step S306, determining whether the current address and port have established a link (corresponding to the above target link), if yes, executing step S308, and if no, executing step S310.
In step S308, if the link is established, the number of devices (corresponding to the target number) bound by the current link is obtained.
Step S310, establish a link and bind the device to the link.
In step S312, it is determined whether the number of devices currently linked and bound exceeds a threshold (corresponding to the predetermined threshold), and in case of yes, step S310 is executed, and in case of no, step S314 is executed.
Step S314, if the threshold is not exceeded, the device is directly bound to the link according to the current device SN.
And step S316, registering the equipment to the Internet of things platform through network link.
In the foregoing embodiment, in the case that it is determined that the target link is already established, the maximum number of devices that the target link is allowed to bind to and the target number of devices that the target link is currently bound to may also be determined, the first number of the plurality of target devices may be determined, and when the sum of the target number and the first number is greater than the maximum number, the target link is newly established, or when the sum of the target number and the first number is greater than the maximum number, the target difference between the maximum number and the target number may be determined, a target difference device may be determined among the plurality of target devices, the target difference device may be bound to the target link, and a target link may be newly established, and the remaining target devices may be bound to the newly established target link. When the sum of the target number and the first number is less than or equal to the maximum number, then the plurality of target devices are bound with the target link.
In one exemplary embodiment, the method further comprises: receiving a control signaling sent by a target platform; converting the control signaling into target signaling in a first preset format; determining first equipment to be controlled by the control signaling based on a first sequence code included in the control signaling, wherein the first equipment is equipment which is registered to the target platform in advance; and sending the target signaling to the first equipment to instruct the first equipment to execute the instruction indicated by the target signaling. In this embodiment, in an interaction mode of a single link with multiple devices, a device to which a signaling belongs needs to be distinguished between platforms, and the signaling can be distinguished by adding device unique information SN, that is, a sequence code, to HTTP signaling interaction. When the target platform sends the control signaling to the device, the target platform can issue a control protocol, acquire device information, expand the X-SN in the issued HTTP protocol, and write in the device SN code, that is, the target platform expands the sequence code of the device to be controlled into the control signaling. And after receiving the control signaling, the simulation platform can retrieve the equipment according to the first sequence code included in the control signaling to determine the first equipment to be controlled by the control signaling. And converting the control signaling into a device protocol, that is, the first predetermined format may be a format satisfying the device protocol, to obtain a target signaling, and transmitting the target signaling to the first device, so as to indicate the first device to instruct an instruction included in the target signaling.
In the foregoing embodiment, a schematic diagram of a process for a target platform to send a control signaling to a device may refer to fig. 4, where as shown in fig. 4, the process includes:
and step S402, the Internet of things platform issues a control device signaling.
And S404, adding a head X-SN in the transmitted HTTP signaling by the Internet of things platform.
Step S406, the simulation platform receives the signaling.
And step S408, the simulation platform retrieves the equipment according to the X-SN.
Step S410, the signaling is converted into a device protocol and is transmitted to the device.
In one exemplary embodiment, the method further comprises: receiving sending information sent by second equipment to be sent to a target platform, wherein the second equipment is equipment which is registered to the target platform in advance; determining a second sequence code of the second device; converting the sending information into information in a second preset format to obtain conversion information; adding the second sequence code to the conversion information to obtain target sending information; determining a first link bound with the second sequence code through a binding relationship, wherein the binding relationship is predetermined; and sending the target sending information to the target platform through the first link. In this embodiment, in an interactive mode of a single link with multiple devices, a device that has registered on a target platform may also send sending information to the target platform through a simulation platform. The sending information may include reply information based on control signaling feedback, and may also be request information or the like. The second device can send the sending information to the simulation platform, the simulation platform can determine a second sequence code of the second device after receiving the sending information, determine a first link bound with the second sequence code, convert the sending information into conversion information in a second preset format, and add the second sequence code to the conversion information, namely, after receiving a device reply, the simulation platform retrieves a corresponding HTTP link according to the device SN, and when reporting the reply, the simulation platform also adds the X-SN identification device. Wherein the second predetermined format may be a format that satisfies a target platform protocol.
In the foregoing embodiment, a schematic flow diagram of a process for a device to send a control signaling to a target platform may be shown in fig. 5, where as shown in fig. 5, the process includes:
step S502, the simulation platform receives the device reply.
Step S504, the simulation platform retrieves the corresponding HTTP long link according to the device SN.
Step S506, the simulation platform converts the equipment protocol into an Internet of things platform protocol.
And step S508, reporting a reply Internet of things platform HTTP signaling increase head X-SN.
Step S510, the internet of things platform receives the reply.
In one exemplary embodiment, the method further comprises: receiving a unbinding instruction, wherein the unbinding instruction comprises equipment to be unbound; determining a second link bound with the device to be unbound; unbinding the device to be unbound in the second link. In this embodiment, the simulation platform may further receive an unbinding instruction, and the simulation platform may unbind the device to be unbound from the bound second link thereof when detecting that the device needs to be deleted or checked out. After the equipment is unbound from the link, the simulation platform cannot send heartbeat to the Internet of things platform, and the Internet of things platform marks the equipment offline after heartbeat timeout.
In the above embodiment, a schematic flow diagram of the unbinding device can be seen in fig. 6, and as shown in fig. 6, the flow includes:
step S602, the simulation platform detects that the device needs to be deleted and logged out.
And step S604, the simulation platform searches the corresponding link of the equipment and releases the binding relation between the equipment and the link.
In one exemplary embodiment, the method further comprises: under the condition that a third link established with the target platform is determined to be abnormal, determining a first address and a first port corresponding to the third link; re-establishing a link with the first address and the first port. In this embodiment, when the emulation platform detects an HTTP link exception during signaling transmission and reception, the link may be reset. If the third link is determined to be abnormal, the first address and the first port corresponding to the third link may be determined, and the link with the platform with the address being the first address is reestablished through the first port. The method and the device realize quick recovery when the service is abnormal, and only the link needs to be recovered when the service is abnormal.
In the above embodiment, a schematic diagram of a link reestablishing process is shown in fig. 7, as shown in fig. 7, the process includes:
step S702, the simulation platform finds the HTTP link exception.
Step S704, resetting the link and reestablishing the link.
In one exemplary embodiment, after registering at least one of the target devices with the target platform through the target link, the method further comprises: determining a target sequence code of the target device; generating a mapping identifier based on the target address, the target port and the number of devices bound by the target link; and binding the target sequence code and the mapping identifier to obtain a binding relationship. In this embodiment, the simulation platform generates a unique mapping key value after registration and login, the key value may describe basic information of a current link, and a link corresponding to the device may be quickly retrieved through the key value. Namely, after the target link is established, the target serial code, the target address, the target port and the target link of the target device can be bound to obtain a binding relationship. After binding, the target link corresponding to the target sequence code or the device bound in the target link can be determined according to the binding relation, so that the device or link can be conveniently searched by the simulation platform. After the binding relationship is obtained, the simulation platform can search the target link bound with the target device through the binding relationship, or the device sequence code of the device already bound in the target link, the number of the bound devices, and the like.
In the foregoing embodiment, a schematic diagram of the process of establishing a binding relationship may refer to fig. 8, as shown in fig. 8, the process includes:
step S802, the simulation platform establishes link management.
Step S804, the simulation platform obtains the device connection IP and the port, such as: 192.168.10.101, and the SN of the device.
Step S806, generating mapping key values according to the current IP, the ports and the connection quantity.
Step S808, establishing a link according to the actual IP port, and establishing a corresponding relation between the connection handle and the mapping key value.
Step S810, establishing a mapping relationship between the connection handle and the device SN.
In the above embodiment, the simulation platform obtains the current IP and the connection number of the ports, such as: the number is 1, the simulation platform generates mapping key values, such as: 192.168.10.101/80/1, establishing a corresponding relation between the key value and the connection, establishing a mapping relation between the connection and the SN, and establishing a mapping relation between the SN and the key value.
In the foregoing embodiment, a mode in which multiple devices share a network link is used to implement quick connection and interaction between a device and a platform. Multiple devices can be linked quickly, all the devices are not required to establish links, and fewer resources are occupied. When each device needs to establish a link with the platform, and most devices are in an unoperated state, the link established between the device and the platform needs to be kept all the time, and signaling interaction is less, so that the link utilization rate is low. The mode that multiple devices share network links, namely the mode of long links, is adopted, so that the link utilization rate can be fully improved. The network connection shared by multiple devices is determined by addresses and ports, the devices of the same target IP and the same port share one connection, a new link is established again after a connection binding threshold value is exceeded. The link binding threshold is a maximum number of devices that the common network connection can sustain, which is configurable.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device registration apparatus is further provided, where the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of the foregoing description are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 9 is a block diagram of a configuration of a registration apparatus of a device according to an embodiment of the present invention, as shown in fig. 9, the apparatus including:
a first registration module 92, configured to, in a case that it is determined that a target device is to be registered to another platform, obtain a target address and a target port of a target platform to which the target device is to be registered, where the target device is a device that has established a connection with a simulation platform, the other platform is a platform different from the simulation platform, and the other platform includes the target platform;
a determination module 94 for determining whether a target link between the simulation platform and the target platform has been established through the target port;
a second registration module 96, configured to register at least one of the target devices with the target platform via the target link if established.
In one exemplary embodiment, the apparatus may be configured to establish the target link between the simulation platform and the target platform through the target port without establishing the target link after determining whether the target link between the simulation platform and the target platform has been established through the target port.
In an exemplary embodiment, the second registration module 96 may enable registering at least one of the target devices with the target platform via the target link by: determining a target number of devices registered on the target platform through the established target link; under the condition that the target quantity is determined to be larger than or equal to a preset threshold value, newly establishing the target link, and registering at least one target device to the target platform through the target link; and registering at least one of the target devices with the target platform through the established target link in case that the target number is determined to be less than a predetermined threshold.
In an exemplary embodiment, the apparatus may be further configured to receive control signaling sent by a target platform; converting the control signaling into target signaling in a first preset format; determining first equipment to be controlled by the control signaling based on a first sequence code included in the control signaling, wherein the first equipment is equipment which is registered to the target platform in advance; and sending the target signaling to the first equipment to instruct the first equipment to execute the instruction indicated by the target signaling.
In an exemplary embodiment, the apparatus may be further configured to receive transmission information to be sent to a target platform, where the transmission information is sent by a second device, where the second device is a device that is pre-registered to the target platform; determining a second sequence code of the second device; converting the sending information into information in a second preset format to obtain conversion information; adding the second sequence code to the conversion information to obtain target sending information; determining a first link bound with the second sequence code through a binding relationship, wherein the binding relationship is predetermined; and sending the target sending information to the target platform through the first link.
In an exemplary embodiment, the apparatus may be further configured to receive an unbinding instruction, where the unbinding instruction includes a device to be unbound; determining a second link bound with the device to be unbound; unbinding the device to be unbound in the second link.
In an exemplary embodiment, the apparatus may be further configured to, in a case that it is determined that a third link established with the target platform is abnormal, determine a first address and a first port corresponding to the third link; re-establishing a link with the first address and the first port.
In an exemplary embodiment, the apparatus may be further configured to determine a target serial number of the target device after registering at least one of the target devices with the target platform through the target link; generating a mapping identification based on the target address, the target port and the number of devices bound by the target link; and binding the target sequence code and the mapping identifier to obtain a binding relationship.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (11)

1. A method for registering a device, comprising:
under the condition that target equipment is determined to be registered to other platforms, acquiring a target address and a target port of a target platform to which the target equipment is to be registered, wherein the target equipment is equipment which is connected with a simulation platform, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform;
determining whether a target link between the simulation platform and the target platform has been established through the target port;
registering at least one of the target devices with the target platform via the target link if established.
2. The method of claim 1, wherein after determining whether a target link between the simulation platform and the target platform has been established through the target port, the method further comprises:
establishing the target link between the simulation platform and the target platform through the target port without establishing the target link.
3. The method of claim 1, wherein registering at least one of the target devices with the target platform via the target link comprises:
determining a target number of devices registered on the target platform through the established target link;
under the condition that the target quantity is determined to be larger than or equal to a preset threshold value, newly establishing the target link, and registering at least one target device to the target platform through the target link;
registering at least one of the target devices with the target platform via the established target link if it is determined that the target number is less than a predetermined threshold.
4. The method of claim 1, further comprising:
receiving a control signaling sent by a target platform;
converting the control signaling into target signaling in a first preset format;
determining first equipment to be controlled by the control signaling based on a first sequence code included in the control signaling, wherein the first equipment is equipment which is registered to the target platform in advance;
and sending the target signaling to the first equipment to instruct the first equipment to execute the instruction indicated by the target signaling.
5. The method of claim 1, further comprising:
receiving sending information sent by second equipment to a target platform, wherein the second equipment is equipment which is registered to the target platform in advance;
determining a second sequence code of the second device;
converting the sending information into information in a second preset format to obtain conversion information;
adding the second sequence code to the conversion information to obtain target sending information;
determining a first link bound with the second sequence code through a binding relationship, wherein the binding relationship is predetermined;
and sending the target sending information to the target platform through the first link.
6. The method of claim 1, further comprising:
receiving a unbinding instruction, wherein the unbinding instruction comprises equipment to be unbound;
determining a second link bound with the device to be unbound;
unbinding the device to be unbound in the second link.
7. The method of claim 1, further comprising:
under the condition that a third link established with the target platform is determined to be abnormal, determining a first address and a first port corresponding to the third link;
re-establishing a link with the first address and the first port.
8. The method of claim 1, wherein after registering at least one of the target devices with the target platform via the target link, the method further comprises:
determining a target sequence code of the target device;
generating a mapping identifier based on the target address, the target port and the number of devices bound by the target link;
and binding the target sequence code and the mapping identifier to obtain a binding relationship.
9. An apparatus for registering a device, comprising:
the system comprises a first registration module and a second registration module, wherein the first registration module is used for acquiring a target address and a target port of a target platform to which target equipment is to be registered under the condition that the target equipment is determined to be registered to other platforms, the target equipment is equipment which is connected with a simulation platform, the other platforms are platforms different from the simulation platform, and the other platforms comprise the target platform;
a determination module to determine whether a target link between the simulation platform and the target platform has been established through the target port;
a second registration module, configured to register at least one target device with the target platform through the target link under the established condition.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 8.
CN202211243086.1A 2022-10-11 2022-10-11 Device registration method, device, storage medium and electronic device Pending CN115633018A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211243086.1A CN115633018A (en) 2022-10-11 2022-10-11 Device registration method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211243086.1A CN115633018A (en) 2022-10-11 2022-10-11 Device registration method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115633018A true CN115633018A (en) 2023-01-20

Family

ID=84905153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211243086.1A Pending CN115633018A (en) 2022-10-11 2022-10-11 Device registration method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115633018A (en)

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN108712485B (en) Resource subscription method and device for Internet of things equipment
CN110808948B (en) Remote procedure calling method, device and system
CN113301166B (en) Service calling method and device, storage medium and electronic device
CN111885115B (en) Device binding changing method and device
CN110381131B (en) Method for realizing MEC node identification, mobile terminal, server and storage medium
CN109379244B (en) Network acceleration communication method and device and electronic equipment
CN110012083B (en) Data transmission method, server and data transmission device
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
RU2008138577A (en) NETWORK SYSTEM
CN111885594A (en) Equipment binding method and device
CN107124483A (en) Domain name analytic method and server
CN114338650A (en) File transmission method and device, electronic equipment and readable storage medium
CN107623752B (en) Network management method and device based on link layer
CN113518125A (en) Offline data uploading method and system, storage medium and electronic device
CN105357329A (en) Business data transmission method, device and system for use in cross-Internet data center (IDC) network environment
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN111884938B (en) Router information acquisition method and device
CN113852667A (en) Message pushing method and device, storage medium and electronic device
CN112511621A (en) Data transmission method and device, storage medium, and electronic device
CN104639379A (en) Proxy testing method and device
CN102281580B (en) M2M system and service processing method thereof
CN111277599A (en) Remote call processing method and device
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN115633018A (en) Device registration method, device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination