CN116886757A - Method, device, storage medium, server and system for migrating stock equipment - Google Patents

Method, device, storage medium, server and system for migrating stock equipment Download PDF

Info

Publication number
CN116886757A
CN116886757A CN202310989410.2A CN202310989410A CN116886757A CN 116886757 A CN116886757 A CN 116886757A CN 202310989410 A CN202310989410 A CN 202310989410A CN 116886757 A CN116886757 A CN 116886757A
Authority
CN
China
Prior art keywords
internet
equipment
things platform
stock
cloud gateway
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
CN202310989410.2A
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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN202310989410.2A priority Critical patent/CN116886757A/en
Publication of CN116886757A publication Critical patent/CN116886757A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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

Abstract

The invention discloses a method, a device, a storage medium, a server and a system for migrating stock equipment. Wherein the method comprises the following steps: receiving a first connection request message from an inventory device; responding to the first connection request message, and acquiring an authentication result from the cloud gateway authenticator based on a preset equipment authentication mode; and responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment. The invention solves the technical problem of long time consumption of equipment migration caused by complex equipment migration process in the related technology.

Description

Method, device, storage medium, server and system for migrating stock equipment
Technical Field
The invention relates to the field of internet of things, in particular to a method, a device, a storage medium, a server and a system for migrating stock equipment.
Background
With the rapid development of the internet of things technology, a large number of internet of things devices have been deployed by many enterprises. However, due to advances in technology and changes in demand, many enterprises need to migrate internet of things platform inventory devices (i.e., internet of things devices that have been accessed into the internet of things platform) to new internet of things platforms to provide better services.
However, some defects still exist in the migration process of the internet of things platform stock device in the related art: firstly, in the migration process of some stock devices in the internet of things platform, professional technicians are required to write codes to realize configuration and integration of the devices, which is a time-consuming and labor-consuming task for non-technicians. Secondly, because different internet of things platforms may have different interfaces and protocols, adaptation and conversion of the device are required, which requires skilled programming skills for a professional technician to ensure that the device can work normally on the new internet of things platform.
Therefore, the migration process of the stock equipment of the Internet of things platform in the related technology is complex and takes longer time, and meanwhile, the consumed manpower resources are also more.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium, a server and a system for migrating stock equipment, which at least solve the technical problem of long equipment migration time consumption caused by complex equipment migration process in the related technology.
According to one embodiment of the present invention, there is provided a method of migrating inventory devices, including: receiving a first connection request message from the stock device, wherein the firmware address of the stock device is changed from a first address to a second address, the first address is the address of an internet of things transmission protocol server of a source internet of things platform accessed by the stock device, the second address is the address of an internet of things transmission protocol server of a target internet of things platform accessed by the stock device, and the first connection request message is used for requesting the internet of things transmission protocol server of the target internet of things platform to transfer the stock device to the internet of things platform; responding to the first connection request message, and acquiring an authentication result from the cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether to allow the stock equipment to access the target internet of things platform; and responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
Optionally, obtaining the authentication result from the cloud gateway authenticator based on the preset device authentication mode includes: sending an authentication request message to a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication request message is used for requesting the cloud gateway authenticator to verify whether to allow the stock equipment to access a target internet of things platform; and receiving an authentication result returned by the cloud gateway authenticator based on the authentication request message.
Optionally, sending the authentication request message to the cloud gateway authenticator based on the preset device authentication mode includes: sending an authentication request message to a cloud gateway authenticator based on a preset equipment authentication mode, wherein the information carried in the authentication request message comprises: the cloud gateway authenticator is used for verifying whether the equipment authentication certificate is legal or not according to a preset equipment authentication mode, and the equipment authentication certificate is legal to indicate that the cloud gateway authenticator allows the stock equipment to access the target internet of things platform.
Optionally, the method of migrating the inventory device further comprises: and responding to the authentication result to indicate that the stock equipment is allowed to access the target internet of things platform, and returning a notification message to the stock equipment, wherein the notification message is used for notifying the stock equipment to successfully access the target internet of things platform.
Optionally, requesting the target internet of things platform to configure the device state of the stock device includes: sending a second connection request message to the target internet of things platform, wherein the information carried in the second connection request message comprises: the client end identification, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to newly increase or update the equipment state of the stock equipment based on the client end identification, the user name information and the password information and synchronously update the equipment state to the service cloud platform.
Optionally, the method of migrating the inventory device further comprises: receiving uplink data from the stock equipment, wherein the uplink data is to-be-updated data of the stock equipment; and sending the uplink data to a cloud gateway analyzer, wherein the cloud gateway analyzer is used for converting the data format of the uplink data from the data format adopted by the source internet of things platform to the data format adopted by the target internet of things platform, and sending the converted uplink data to the target internet of things platform so that the target internet of things platform synchronously updates the converted uplink data to the service cloud platform.
Optionally, the method of migrating the inventory device further comprises: receiving downlink data from a cloud gateway controller through a target internet of things platform, wherein the downlink data is obtained by the cloud gateway controller through data format conversion of a control instruction issued by a service cloud platform, and the data format of the control instruction is converted from a data format adopted by the target internet of things platform to a data format adopted by a source internet of things platform; and transmitting the downlink data to the stock device so as to remotely control the stock device.
Optionally, providing, by the terminal device, a graphical user interface, where the content displayed by the graphical user interface at least partially includes a visual configuration scene, and the method for migrating the inventory device further includes: responding to a first touch operation acting on a graphical user interface, and inputting a cloud gateway name, wherein the cloud gateway corresponding to the cloud gateway name at least comprises: a cloud gateway resolver and a cloud gateway controller; responding to a second touch operation acting on the graphical user interface, and selecting a preset equipment authentication mode; responding to a third touch operation acting on the graphical user interface, and carrying out parameter configuration on the cloud gateway analyzer and the cloud gateway controller to obtain a configuration result; and responding to a fourth touch operation acting on the graphical user interface, and creating the cloud gateway based on the cloud gateway name, a preset equipment authentication mode and a configuration result.
According to one embodiment of the present invention, there is also provided an apparatus for migrating inventory devices, including: the system comprises a receiving module, a storage device and a storage module, wherein the receiving module is used for receiving a first connection request message from the storage device, the firmware address of the storage device is changed from a first address to a second address, the first address is the address of an Internet of things transmission protocol server of a source Internet of things platform accessed by the storage device, the second address is the address of an Internet of things transmission protocol server of a target Internet of things platform accessed by the storage device, and the first connection request message is used for requesting the Internet of things transmission protocol server of the target Internet of things platform to carry out Internet of things platform migration on the storage device; the acquisition module is used for responding to the first connection request message, and acquiring an authentication result from the cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether the stock equipment is allowed to access the target internet of things platform; and the request module is used for responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
Optionally, the obtaining module is further configured to send an authentication request message to the cloud gateway authenticator based on a preset device authentication mode, where the authentication request message is used to request the cloud gateway authenticator to verify whether to allow the stock device to access the target internet of things platform; and receiving an authentication result returned by the cloud gateway authenticator based on the authentication request message.
Optionally, the obtaining module is further configured to send an authentication request message to the cloud gateway authenticator based on a preset device authentication mode, where information carried in the authentication request message includes: the cloud gateway authenticator is used for verifying whether the equipment authentication certificate is legal or not according to a preset equipment authentication mode, and the equipment authentication certificate is legal to indicate that the cloud gateway authenticator allows the stock equipment to access the target internet of things platform.
Optionally, the apparatus for migrating the inventory device further includes: and the notification module is used for responding to the authentication result to indicate that the stock equipment is allowed to access the target internet of things platform, and returning a notification message to the stock equipment, wherein the notification message is used for notifying the stock equipment to successfully access the target internet of things platform.
Optionally, the request module is further configured to send a second connection request message to the target internet of things platform, where information carried in the second connection request message includes: the client end identification, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to newly increase or update the equipment state of the stock equipment based on the client end identification, the user name information and the password information and synchronously update the equipment state to the service cloud platform.
Optionally, the receiving module is further configured to receive uplink data from the stock device, where the uplink data is to-be-updated data of the stock device; the means for migrating the inventory device further comprises: the cloud gateway analyzer is used for converting the data format of the uplink data from the data format adopted by the source internet of things platform to the data format adopted by the target internet of things platform, and sending the converted uplink data to the target internet of things platform so that the target internet of things platform synchronously updates the converted uplink data to the service cloud platform.
Optionally, the receiving module is further configured to receive downlink data from the cloud gateway controller via the target internet of things platform, where the downlink data is obtained by performing data format conversion on a control instruction issued by the service cloud platform by the cloud gateway controller, and the data format of the control instruction is converted from a data format adopted by the target internet of things platform to a data format adopted by the source internet of things platform; the sending module is also used for sending the downlink data to the stock equipment so as to remotely control the stock equipment.
Optionally, providing, by the terminal device, a graphical user interface, where the content displayed by the graphical user interface at least partially includes a visual configuration scene, and the apparatus for migrating the inventory device further includes: the processing module is used for responding to a first touch operation acting on the graphical user interface and inputting a cloud gateway name, wherein the cloud gateway corresponding to the cloud gateway name at least comprises: a cloud gateway resolver and a cloud gateway controller; responding to a second touch operation acting on the graphical user interface, and selecting a preset equipment authentication mode; responding to a third touch operation acting on the graphical user interface, and carrying out parameter configuration on the cloud gateway analyzer and the cloud gateway controller to obtain a configuration result; and responding to a fourth touch operation acting on the graphical user interface, and creating the cloud gateway based on the cloud gateway name, a preset equipment authentication mode and a configuration result.
According to one embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to, when executed by a processor, perform a method of migrating a stock device in any of the above.
According to one embodiment of the present invention, there is also provided an internet of things transport protocol server, including a memory having a computer program stored therein and a processor configured to run the computer program to perform the method of migrating an inventory device in any of the above.
There is also provided, in accordance with an embodiment of the present invention, a system for migrating inventory devices, including: stock equipment, target internet of things platform, cloud gateway, business cloud platform and above-mentioned internet of things transmission protocol server.
In the embodiment of the invention, the authentication result is obtained from the cloud gateway authenticator based on the preset equipment authentication mode by receiving the first connection request message from the stock equipment, and finally, the authentication result is responded to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and the target internet of things platform is requested to configure the equipment state of the stock equipment, so that the purpose of simplifying the equipment migration process is achieved, the technical effect of shortening the equipment migration time length is achieved, and the technical problem of long equipment migration time consumption caused by complex equipment migration process in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of a method of migrating inventory devices according to one embodiment of the application;
FIG. 2 is a schematic diagram of a visual configuration scenario according to one embodiment of the present application;
FIG. 3 is a schematic diagram of a method of migrating inventory devices according to one embodiment of the application;
fig. 4 is a block diagram of an apparatus for migrating inventory devices according to one embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of migrating inventory devices, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical sequence is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in a different order than that illustrated herein.
The method embodiment may be performed in a system for migrating an inventory device, the system for migrating an inventory device comprising: the method can be executed in the internet of things transmission protocol server of the target internet of things platform in a system for transferring the stock equipment.
Specifically, the stock device may be an internet of things device that has been connected to an internet of things platform, where the internet of things device may be an intelligent home device or an intelligent hotel device, for example: intelligent refrigerators, intelligent air conditioners, intelligent lighting lamps, and the like; the above-mentioned thing networking device can also be intelligent industrial equipment, for example: intelligent robots, intelligent scanners, intelligent labelers, etc.; the above-mentioned thing networking device can also be intelligent office equipment, for example: intelligent printers, intelligent tables and chairs, intelligent conference systems, etc.
The internet of things transport protocol server may include one or more processors (the processors may include, but are not limited to, processing means of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a digital signal processing (Digital Signal Processing, DSP) chip, a microprocessor (Mirco Controller Unit, MCU), a programmable logic device (Field Programmable Gate Array, FPGA), a Neural network processor (Neural-network Processor Unit, NPU), a tensor processor (Tensor Processing Unit, TPU), an artificial intelligence (Artificial Intelligence, AI) type processor, etc.), and a memory for storing data. Optionally, the stock device may further include a transmission device for a communication function, an input-output device, and a display device. It will be appreciated by those of ordinary skill in the art that the above structural descriptions are merely illustrative and are not intended to limit the structure of the inventory device. For example, the inventory device may also include more or fewer components than the above structural descriptions, or have a different configuration than the above structural descriptions.
The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for migrating an inventory device in an embodiment of the present invention, and the processor executes various functional applications and data processing by running the computer program stored in the memory, that is, implements the method for migrating an inventory device as described above. The memory 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 may further include memory remotely located with respect to the processor, the remote memory being connectable to the terminal device through 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 is used for receiving or transmitting data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the terminal device. In one example, the transmission device includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through the base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Display devices may be, for example, touch screen type liquid crystal displays (Liquid Crystal Display, LCDs) and touch displays (also referred to as "touch screens" or "touch display screens"). The liquid crystal display may enable a user to interact with a user interface of the terminal device. In some embodiments, the inventory device has a graphical user interface (Graphical User Interface, GUI) with which a user can interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the human-machine interaction functionality optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving electronic mail, talking interfaces, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described methods of migrating inventory devices are configured/stored in one or more processor-executable computer program products or readable storage media.
In this embodiment, a method for migrating an inventory device in an internet of things transmission protocol server of the target internet of things platform is provided, and fig. 1 is a flowchart of a method for migrating an inventory device according to one embodiment of the present invention, as shown in fig. 1, where the method includes the following steps:
Step S12, a first connection request message from the stock equipment is received, wherein the firmware address of the stock equipment is changed from a first address to a second address, the first address is the address of an Internet of things transmission protocol server of a source Internet of things platform accessed by the stock equipment, the second address is the address of an Internet of things transmission protocol server of a target Internet of things platform accessed by the stock equipment, and the first connection request message is used for requesting the Internet of things transmission protocol server of the target Internet of things platform to carry out Internet of things platform migration on the stock equipment;
step S14, responding to the first connection request message, and acquiring an authentication result from the cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether to allow the stock equipment to access the target Internet of things platform;
and step S16, responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
Specifically, the stock device may be an internet of things device that has been connected to an internet of things platform, where the internet of things device may be an intelligent home device or an intelligent hotel device, for example: intelligent refrigerators, intelligent air conditioners, intelligent lighting lamps, and the like; the above-mentioned thing networking device can also be intelligent industrial equipment, for example: intelligent robots, intelligent scanners, intelligent labelers, etc.; the above-mentioned thing networking device can also be intelligent office equipment, for example: intelligent printers, intelligent tables and chairs, intelligent conference systems, etc.
In the step S12, a first connection request message from the stock device may be received, where the first connection request message is used to request the internet of things transmission protocol server of the target internet of things platform to perform the internet of things platform migration on the stock device.
Specifically, the target internet of things platform is a new internet of things platform to which the stock device is to be migrated, for example, the internet of things platform to which the stock device is currently connected is a, and the stock device is to be migrated to the fogcoud platform, and the fogcoud platform is the target internet of things platform.
When the stock device needs to be migrated from the accessed source internet of things platform to the target internet of things platform, a first connection request message can be sent to an internet of things transmission protocol server of the target internet of things platform, wherein a firmware address of the stock device is modified from a first address to a second address.
Specifically, the first address is an address of an internet of things transmission protocol server of the storage device access source internet of things platform, the second address is an address of an internet of things transmission protocol server of the access target internet of things platform, and then the storage device can send a first connection request to the target internet of things platform through the second address, and then the internet of things transmission protocol server of the target internet of things platform can receive a first connection request message from the storage device through the second address.
For example, the mqtt address in the firmware of the stock device may be modified to be a fogcoud-mqtt address, where the mqtt address is an address of an internet of things transmission protocol server of the stock device access source internet of things platform, and the fogcoud-mqtt address is an address of an internet of things transmission protocol server of the stock device to which the stock device is to be migrated, so that the mqtt server of the fogcoud platform may receive the first connection request message from the stock device through the fogcoud-mqtt address.
In the step S14, when the first connection request message is received, an authentication result may be obtained from the cloud gateway authenticator based on a preset device authentication manner, where the authentication result is used to indicate whether to allow the stock device to access the target internet of things platform.
Specifically, the preset device authentication manner may be a device authentication manner configured by a user, when the internet of things transmission protocol server of the target internet of things cloud platform receives a first connection request message of the stock device, the device authentication certificate of the stock device may be sent to the cloud gateway authenticator, so that the cloud gateway authenticator authenticates the device of the stock device, thereby obtaining an authentication result, and finally, according to the authentication result obtained from the cloud gateway authenticator, it may be determined whether the stock device is allowed to access the target internet of things platform.
For example, when the mqtt server of the fogcoud platform receives a first connection request message sent by the stock device, that is, the stock device requests the mqtt server of the fogcoud platform to perform internet of things platform migration on the stock device, an authentication result of the stock device may be obtained from the cloud gateway authenticator based on a device authentication manner configured by a user, and when authentication is successful, it may be determined that the stock device is allowed to access the fogcoud platform.
In the above step S16, when the authentication result indicates that the stock device is allowed to access the target internet of things platform, the target internet of things platform may be requested to configure the device state of the stock device.
Specifically, the target internet of things platform configures the device state of the stock device, which may include, but is not limited to, a newly added device state and an updated device state.
For example, when the mqtt server of the fogcoud platform obtains an authentication result of the stock device from the cloud gateway authenticator, and the authentication result indicates that the stock device is allowed to access the fogcoud platform, the fogcoud platform may be requested to configure the device state of the stock device.
Based on the steps S12 to S16, the first connection request message from the stock device is received, and then, in response to the first connection request message, an authentication result is obtained from the cloud gateway authenticator based on a preset device authentication mode, and finally, in response to the authentication result indicating that the stock device is allowed to be accessed to the target internet of things platform, the target internet of things platform is requested to configure the device state of the stock device, the purpose of simplifying the device migration process is achieved, and therefore, the technical effect of shortening the device migration time is achieved, and the technical problem that the device migration time is long due to the fact that the device migration process is complex in the related art is solved.
Optionally, in step S14, obtaining the authentication result from the cloud gateway authenticator based on the preset device authentication manner includes:
step S141, an authentication request message is sent to a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication request message is used for requesting the cloud gateway authenticator to verify whether to allow the stock equipment to access the target internet of things platform;
step S142, receiving an authentication result returned from the cloud gateway authenticator based on the authentication request message.
Specifically, when an authentication result is obtained from the cloud gateway authenticator based on a preset device authentication mode, an authentication request message may be sent to the cloud gateway authenticator based on the preset device authentication mode, where the authentication request message may include an authentication certificate of the stock device, and the authentication request message is used to request the cloud gateway authenticator to verify whether to allow the stock device to access the target internet of things platform.
After sending the authentication request message to the cloud gateway authenticator based on the preset device authentication mode, an authentication result returned by the cloud gateway authenticator based on the authentication request message can be received. After the cloud gateway authenticator receives the authentication request message, whether the stock device is allowed to access the target internet of things platform can be verified, and then the internet of things transmission protocol server of the target internet of things platform can receive an authentication result returned by the cloud gateway authenticator, so that whether the stock device is allowed to access the target internet of things platform can be judged based on the authentication result.
Based on the steps S141 to S142, the authentication request message is sent to the cloud gateway authenticator based on the preset device authentication mode, and then the authentication result returned from the cloud gateway authenticator based on the authentication request message is received, so that the cloud gateway authenticator can be used for authenticating the stock device, and whether the stock device is allowed to access the target internet of things platform or not can be determined based on the authentication result.
Optionally, in step S141, sending the authentication request message to the cloud gateway authenticator based on the preset device authentication mode includes:
step 1411, an authentication request message is sent to the cloud gateway authenticator based on a preset device authentication mode, wherein the information carried in the authentication request message includes: the cloud gateway authenticator is used for verifying whether the equipment authentication certificate is legal or not according to a preset equipment authentication mode, and the equipment authentication certificate is legal to indicate that the cloud gateway authenticator allows the stock equipment to access the target internet of things platform.
Specifically, an authentication request message may be sent to the cloud gateway authenticator based on a device authentication manner set by the user (for example, a manner of authentication of the first party or authentication of the third party), where the authentication request message carries a device authentication certificate of the stock device. When the cloud gateway authenticator receives the authentication request message, the validity of the device authentication certificate of the stock device can be verified according to the device authentication mode set by the user. When the equipment authentication certificate is legal, the cloud gateway authenticator is indicated to allow the stock equipment to access the target internet of things platform.
Based on the above step S1411, by sending the authentication request message to the cloud gateway authenticator based on the preset device authentication method, it can be determined whether the device authentication certificate of the stock device is legal, so as to determine whether the stock device is allowed to access the target internet of things platform.
Optionally, the method of migrating the inventory device further comprises the steps of:
and step S17, responding to the authentication result to indicate that the stock equipment is allowed to access the target Internet of things platform, and returning a notification message to the stock equipment, wherein the notification message is used for notifying the stock equipment to successfully access the target Internet of things platform.
In the above step S17, when the authentication result indicates that the stock device is allowed to access the target internet of things platform, a notification message may be returned to the stock device.
Specifically, the notification message is used for notifying the stock device to successfully access the target internet of things platform. When the authentication result indicates that the stock equipment is allowed to be accessed to the target internet of things platform, the stock equipment can be informed that the stock equipment is successfully accessed to the target internet of things platform.
For example, when the authentication result indicates that the stock device is allowed to access the fogcoud platform, the stock device may be notified that the access to the fogcoud platform has been successful.
Based on the above step S17, by responding to the authentication result to indicate that the stock device is allowed to access the target internet of things platform, a notification message is returned to the stock device, so that the stock device can be notified of successful access to the target internet of things platform when the stock device is allowed to access the target internet of things platform.
Optionally, in step S16, the requesting the target internet of things platform to configure the device state of the stock device includes:
step S161, sending a second connection request message to the target internet of things platform, where information carried in the second connection request message includes: the client end identification, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to newly increase or update the equipment state of the stock equipment based on the client end identification, the user name information and the password information and synchronously update the equipment state to the service cloud platform.
In the step S161, when the target internet of things platform is requested to configure the device state of the stock device, a second connection request message may be sent to the target internet of things platform.
Specifically, the information carried in the second connection request message includes: the client end identification, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to newly increase or update the equipment state of the stock equipment based on the client end identification, the user name information and the password information and synchronously update the equipment state to the service cloud platform.
For example, when the mqtt server of the fogcoud platform requests that the fogcoud platform configure the device state of the stock device, a webhook connection request message may be sent to the fogcoud platform, where the webhook connection request message carries a client identifier (client), user name information (username) and password information (password) corresponding to the stock device. When the fogcoud platform receives the webhook connection request message, the device state of the stock device can be newly added or updated based on the client identifier, the user name information and the password information, and finally, the fogcoud platform can synchronously update the device state of the stock device to the service cloud platform through an advanced message queue protocol (Advanced Message Queuing Protocol, amqp).
Based on the step S161, by sending the second connection request message to the target internet of things platform, the target internet of things platform can add or update the device state of the stock device based on the client identifier, the user name information and the password information, and synchronously update the device state to the service cloud platform.
Optionally, the method of migrating the inventory device further comprises the steps of:
step S181, receiving uplink data from the stock device, wherein the uplink data is to-be-updated data of the stock device;
step S182, the uplink data is sent to a cloud gateway analyzer, wherein the cloud gateway analyzer is used for converting a data format of the uplink data from a data format adopted by a source internet of things platform to a data format adopted by a target internet of things platform, and sending the converted uplink data to the target internet of things platform, so that the target internet of things platform synchronously updates the converted uplink data to the service cloud platform.
Specifically, the data to be updated from the stock device may be received, and the received data to be updated of the stock device may be sent to the cloud gateway resolver. The cloud gateway analyzer can convert the data format of the data to be updated of the stock equipment from the data format adopted by the source internet of things platform to the data format adopted by the target internet of things platform, and then the cloud gateway analyzer can send the converted data to be updated to the target internet of things platform. When the target internet of things platform receives the converted data to be updated, the converted data to be updated can be synchronously updated to the service cloud platform.
For example, data to be updated from the stock device is received, and the received data to be updated of the stock device is sent to the cloud gateway resolver. The cloud gateway parser can convert the data to be updated of the storage device into a (fog_topic, fog_panmod) format adopted by the fogcoud platform from a (raw_topic, raw_panmod) format adopted by the source internet of things platform, and then the cloud gateway parser can send the data to be updated in the (fog_topic, fog_panmod) format to the fogcoud platform. When the fogcoud platform receives the data to be updated in the format of (fog_topic, fog_parimod), the data to be updated in the format of (fog_topic, fog_parimod) can be synchronously updated to the service cloud platform.
Based on the above steps S181 to S182, the uplink data from the stock device is received, and then the uplink data is sent to the cloud gateway resolver, so that the cloud gateway resolver performs format conversion on the uplink data, and the format of the converted uplink data can meet the requirement of the target internet of things platform, so that the converted uplink data is sent to the target internet of things platform, and further the target internet of things platform can synchronously update the converted uplink data to the service cloud platform.
Optionally, the method of migrating the inventory device further comprises the steps of:
step S183, receiving downlink data from the cloud gateway controller through the target Internet of things platform, wherein the downlink data is obtained by the cloud gateway controller through data format conversion of a control instruction issued by the service cloud platform, and the data format of the control instruction is converted from a data format adopted by the target Internet of things platform to a data format adopted by the source Internet of things platform;
in step S184, the downlink data is sent to the stock device to remotely control the stock device.
In step S183, when the user needs the remote control device, the service cloud platform may send the control instruction to the cloud gateway controller, so that the cloud gateway controller may convert the data format of the received control instruction, which is adopted by the target internet of things platform, into the data format adopted by the source internet of things platform, and send the control instruction after format conversion to the target internet of things platform, so that the control instruction after format conversion may be received via the target internet of things platform.
For example, when the user needs a remote control device, the service cloud platform may send a control instruction to the cloud gateway controller, and then the cloud gateway controller may convert a data format of the received control instruction into a (fog_topic, fog_packet) format adopted by the fogcoud platform into a (raw_topic, raw_packet) format adopted by the source internet of things platform, and send the control instruction in the (raw_topic, raw_packet) format to the fogcoud platform, so that the control instruction in the (raw_topic, raw_packet) format may be received via the fogcoud platform.
In the above step S184, after receiving the downlink data from the cloud gateway controller via the target internet of things platform, the downlink data may be sent to the stock device to remotely control the stock device.
Based on the above steps S183 to S184, by receiving the downstream data from the cloud gateway controller via the target internet of things platform, and then transmitting the downstream data to the stock device, remote control of the device can be achieved.
Optionally, the method for migrating the stock device further comprises the steps of:
step S191, in response to the first touch operation acting on the graphical user interface, inputting a cloud gateway name, where the cloud gateway corresponding to the cloud gateway name at least includes: a cloud gateway resolver and a cloud gateway controller;
step S192, responding to a second touch operation acting on the graphical user interface, and selecting a preset equipment authentication mode;
step S193, responding to a third touch operation acting on the graphical user interface, and carrying out parameter configuration on the cloud gateway analyzer and the cloud gateway controller to obtain a configuration result;
Step S194, in response to the fourth touch operation acting on the graphical user interface, creating a cloud gateway based on the cloud gateway name, the preset device authentication mode and the configuration result.
In the cross-cloud migration process of the stock equipment, a user can realize the migration of the stock equipment by only configuring information such as an equipment authentication mode, a cloud gateway analyzer, a cloud gateway controller and the like.
Specifically, a graphical user interface may be provided by the terminal device, where the content displayed by the graphical user interface at least partially includes a visual configuration scene. Fig. 2 is a schematic diagram of a visual configuration scenario according to an embodiment of the present invention, where, as shown in fig. 2, the visual configuration scenario may be used to create a cloud gateway, and by inputting a cloud gateway name, selecting a preset device authentication mode, and performing parameter configuration on a cloud gateway resolver and a cloud gateway controller, a cloud gateway may be created.
The parameters of the cloud gateway analyzer may include a cloud function, a custom URL, an analysis script, and an analyzer request method, and the parameters of the cloud gateway controller may include a cloud function, a custom URL, an analysis script, and a controller request method.
In an alternative embodiment, the request method may also be selected.
Based on the steps S191 to S194, the cloud gateway name is input in response to the first touch operation acting on the gui, and then a preset device authentication mode is selected in response to the second touch operation acting on the gui, then parameter configuration is performed on the cloud gateway resolver and the cloud gateway controller in response to the third touch operation acting on the gui, a configuration result is obtained, and finally a cloud gateway is created in response to the fourth touch operation acting on the gui, based on the cloud gateway name, the preset device authentication mode and the configuration result, so that a user can simply and quickly create the cloud gateway through a visual configuration scene to perform device migration, thereby simplifying the process of device migration and shortening the duration of device migration.
FIG. 3 is a schematic diagram of a method for migrating an inventory device according to one embodiment of the present invention, as shown in FIG. 3, under the workflow of the method for migrating an inventory device:
step S301, a first connection request message from stock equipment is received;
the method comprises the steps that a firmware address of the stock equipment is changed from a first address to a second address, the first address is an address of an Internet of things transmission protocol server of a source Internet of things platform accessed by the stock equipment, the second address is an address of an Internet of things transmission protocol server of a target Internet of things platform accessed by the stock equipment, and a first connection request message is used for requesting the Internet of things transmission protocol server of the target Internet of things platform to carry out Internet of things platform migration on the stock equipment;
Step S302, an authentication request message is sent based on a preset equipment authentication mode in response to a first connection request message;
the authentication request message is used for requesting the cloud gateway authenticator to verify whether the stock equipment is allowed to access the target internet of things platform;
step S303, verifying whether the equipment authentication certificate is legal according to a preset equipment authentication mode to obtain an authentication result;
step S304, receiving an authentication result returned by the cloud gateway authenticator based on the authentication request message;
the authentication result is used for indicating whether the stock equipment is allowed to access the target internet of things platform;
step S305, responding to the authentication result to indicate that the stock equipment is allowed to access the target Internet of things platform, and returning a notification message to the stock equipment;
the notification message is used for notifying the stock equipment to successfully access the target internet of things platform;
step S306, responding to the authentication result to indicate that the stock equipment is allowed to access the target Internet of things platform, and sending a second connection request message to the target Internet of things platform;
the information carried in the second connection request message includes: client identification, user name information and password information corresponding to the stock device;
step S307, newly adding or updating the device status of the stock device based on the second connection request message;
Step S308, synchronously updating the equipment state to the service cloud platform;
step S309, receiving uplink data from the stock device;
the uplink data are to-be-updated data of the stock equipment;
step S310, uplink data are sent to a cloud gateway analyzer;
step S311, converting the data format of the uplink data adopted by the source Internet of things platform into the data format adopted by the target Internet of things platform;
step S312, the converted uplink data is sent to a target Internet of things platform;
step S313, synchronously updating the converted uplink data to the service cloud platform;
step S314, issuing a control instruction;
step S315, converting the data format of the control instruction to obtain downlink data;
step S316, downlink data are sent to a target Internet of things platform;
step S317, receiving downlink data via the target Internet of things platform;
step S318, the downlink data is sent to the stock device to remotely control the stock device.
In the workflow of the method for migrating the stock device, the first connection request message from the stock device is received, then the authentication result is obtained from the cloud gateway authenticator based on the preset device authentication mode in response to the first connection request message, finally the authentication result is responded to indicate that the stock device is allowed to be accessed to the target internet of things platform, and the target internet of things platform is requested to configure the device state of the stock device, so that the aim of simplifying the device migration process is fulfilled, the technical effect of shortening the device migration time is realized, and the technical problem that the device migration time is long due to the fact that the device migration process is complex in the related art is solved.
The following describes in detail the workflow of the method for migrating the stock device, taking the migration of the stock device from the source internet of things platform to the Fogcloud platform as an example:
in the migration process of the stock device, the device side does not need to change other logic, parameters or perform other development, and only needs to change the firmware address of the stock device from the address (mqtt address) of the mqtt server of the source internet of things platform to the address (fogcloud-mqtt address) of the mqtt server of the target internet of things platform (fogcloud platform), wherein the specific migration process is as follows:
firstly, the stock device sends an mqtt connection request to an mqtt server of a FogCloud platform through a new FogCloud-mqtt address so as to request the mqtt server of the FogCloud platform to carry out the platform migration of the Internet of things on the stock device; when receiving the mqtt connection request, the mqtt server of the FogCloud platform sends an authentication request message to the cloud gateway authenticator through a device authentication mode set by a user, wherein the authentication request message comprises device authentication certificates of the stock devices; after the cloud gateway authenticator receives the authentication request message, verifying whether the equipment authentication certificate is legal according to the equipment authentication mode set by the user, and obtaining an authentication result.
Further, the cloud gateway authenticator sends an authentication result to the mqtt server of the fogcoud platform, when the mqtt server of the fogcoud platform determines that the device authentication certificate is legal based on the authentication result, that is, the storage device is allowed to access the fogcoud platform, the mqtt server of the fogcoud platform returns a result of successful authentication to the storage device and sends a webhook connection request to the fogcoud platform, wherein the webhook connection request comprises information such as a client identifier, a user name, a password and the like.
And finally, the FogCloud platform adds or updates the state of the stock equipment through information such as client identification, user name, password and the like, and synchronously updates the newly added equipment information to the service cloud platform through an amqp message notification.
When the stock equipment has new data update, the data to be updated (namely uplink data) is sent to an mqtt server of the FogCloud platform, and when the mqtt server of the FogCloud platform receives the data to be updated, the data to be updated is sent to a cloud gateway analyzer; when the cloud gateway analyzer receives data to be updated, converting a data format of the data to be updated into a (fog_topic, fog_parid) format adopted by the FogCloud platform by a (raw_topic, raw_parid) format adopted by a source Internet of things platform, and sending the data to be updated after format conversion to the FogCloud platform; and when the FogCloud platform receives the converted data to be updated, the converted data to be updated is notified to be synchronously updated to the service cloud platform through an amqp message.
When a user needs remote control equipment, a service cloud platform issues a control instruction to a cloud gateway controller, and when the cloud gateway controller receives the control instruction, a data format of the control instruction is converted into a (raw_topic, raw_pay) format adopted by a source Internet of things platform by a (fog_topic, fog_pay) format adopted by the FogCloud platform, so that downlink data are obtained; and then the cloud gateway controller sends the downlink data to the FogCloud platform, and then the mqtt server of the FogCloud platform receives the downlink data from the FogCloud platform and sends the downlink data to the stock device so as to remotely control the stock device.
In the method for migrating the equipment, only the address of the firmware address of the stock equipment is changed from the address of the internet of things transmission protocol server of the accessed source internet of things platform to the address of the internet of things transmission protocol server of the target internet of things platform, and the user can realize the cross-cloud migration of the stock equipment by only configuring the information such as the equipment authentication mode, the cloud gateway analyzer, the cloud gateway controller and the like, without changing the firmware logic and the mqtt connection parameters or carrying out other development at the equipment end. Therefore, the method can provide a visual configuration method to realize the cross-cloud migration of the stock equipment, so that the equipment migration process can be simplified, and the equipment migration time is shortened.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a device for migrating the stock device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram illustrating an apparatus for migrating inventory devices according to one embodiment of the present invention, as shown in fig. 4, the apparatus including: the receiving module 401 is configured to receive a first connection request message from the stock device, where a firmware address of the stock device is modified from a first address to a second address, the first address is an address of an internet of things transmission protocol server of a source internet of things platform to which the stock device is connected, the second address is an address of an internet of things transmission protocol server of a target internet of things platform to which the stock device is connected, and the first connection request message is used to request the internet of things transmission protocol server of the target internet of things platform to perform internet of things platform migration on the stock device; an obtaining module 402, configured to obtain an authentication result from the cloud gateway authenticator based on a preset device authentication manner in response to the first connection request message, where the authentication result is used to indicate whether to allow the stock device to access the target internet of things platform; and the request module 403 is configured to request the target internet of things platform to configure the device state of the stock device in response to the authentication result indicating that the stock device is allowed to access the target internet of things platform.
Optionally, the obtaining module 402 is further configured to send an authentication request message to the cloud gateway authenticator based on a preset device authentication manner, where the authentication request message is used to request the cloud gateway authenticator to verify whether to allow the stock device to access the target internet of things platform; and receiving an authentication result returned by the cloud gateway authenticator based on the authentication request message.
Optionally, the obtaining module 402 is further configured to send an authentication request message to the cloud gateway authenticator based on a preset device authentication manner, where information carried in the authentication request message includes: the cloud gateway authenticator is used for verifying whether the equipment authentication certificate is legal or not according to a preset equipment authentication mode, and the equipment authentication certificate is legal to indicate that the cloud gateway authenticator allows the stock equipment to access the target internet of things platform.
Optionally, the apparatus for migrating the inventory device further includes: and the notification module 404 is configured to, in response to the authentication result indicating that the stock device is allowed to access the target internet of things platform, return a notification message to the stock device, where the notification message is used to notify that the stock device successfully accesses the target internet of things platform.
Optionally, the request module 403 is further configured to send a second connection request message to the target internet of things platform, where information carried in the second connection request message includes: the client end identification, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to newly increase or update the equipment state of the stock equipment based on the client end identification, the user name information and the password information and synchronously update the equipment state to the service cloud platform.
Optionally, the receiving module 401 is further configured to receive uplink data from the stock device, where the uplink data is to-be-updated data of the stock device; the means for migrating the inventory device further comprises: the sending module 405 is configured to send the uplink data to the cloud gateway resolver, where the cloud gateway resolver is configured to convert a data format of the uplink data from a data format adopted by the source internet of things platform to a data format adopted by the target internet of things platform, and send the converted uplink data to the target internet of things platform, so that the target internet of things platform synchronously updates the converted uplink data to the service cloud platform.
Optionally, the receiving module 401 is further configured to receive downlink data from the cloud gateway controller via the target internet of things platform, where the downlink data is obtained by performing data format conversion on a control instruction issued by the service cloud platform by the cloud gateway controller, and the data format of the control instruction is converted from a data format adopted by the target internet of things platform to a data format adopted by the source internet of things platform; the sending module 405 is further configured to send downlink data to the stock device, so as to remotely control the stock device.
Optionally, providing, by the terminal device, a graphical user interface, where the content displayed by the graphical user interface at least partially includes a visual configuration scene, and the apparatus for migrating the inventory device further includes: the processing module 406 is configured to input a cloud gateway name in response to a first touch operation acting on the graphical user interface, where the cloud gateway corresponding to the cloud gateway name at least includes: a cloud gateway resolver and a cloud gateway controller; responding to a second touch operation acting on the graphical user interface, and selecting a preset equipment authentication mode; responding to a third touch operation acting on the graphical user interface, and carrying out parameter configuration on the cloud gateway analyzer and the cloud gateway controller to obtain a configuration result; and responding to a fourth touch operation acting on the graphical user interface, and creating the cloud gateway based on the cloud gateway name, a preset equipment authentication mode and a configuration result.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run by a processor.
Alternatively, in the present embodiment, the above-described storage medium may be further configured to store a computer program for performing the steps of:
step S1, a first connection request message from the stock equipment is received, wherein the firmware address of the stock equipment is changed from a first address to a second address, the first address is the address of an Internet of things transmission protocol server of a source Internet of things platform accessed by the stock equipment, the second address is the address of an Internet of things transmission protocol server of a target Internet of things platform accessed by the stock equipment, and the first connection request message is used for requesting the Internet of things transmission protocol server of the target Internet of things platform to carry out Internet of things platform migration on the stock equipment;
Step S2, responding to a first connection request message, and acquiring an authentication result from a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether to allow the stock equipment to access a target internet of things platform;
and step S3, responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
According to one embodiment of the present invention, there is also provided an internet of things transmission protocol server, including 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.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
step S1, a first connection request message from the stock equipment is received, wherein the firmware address of the stock equipment is changed from a first address to a second address, the first address is the address of an Internet of things transmission protocol server of a source Internet of things platform accessed by the stock equipment, the second address is the address of an Internet of things transmission protocol server of a target Internet of things platform accessed by the stock equipment, and the first connection request message is used for requesting the Internet of things transmission protocol server of the target Internet of things platform to carry out Internet of things platform migration on the stock equipment;
Step S2, responding to a first connection request message, and acquiring an authentication result from a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether to allow the stock equipment to access a target internet of things platform;
and step S3, responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
There is also provided, in accordance with an embodiment of the present application, a system for migrating inventory devices, including: stock equipment, target internet of things platform, cloud gateway, business cloud platform and above-mentioned internet of things transmission protocol server.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (12)

1. A method of migrating inventory devices, comprising:
receiving a first connection request message from an inventory device, wherein a firmware address of the inventory device is modified from a first address to a second address, the first address is an address of an internet of things transmission protocol server of a source internet of things platform accessed by the inventory device, the second address is an address of an internet of things transmission protocol server of a target internet of things platform accessed by the inventory device, and the first connection request message is used for requesting the internet of things transmission protocol server of the target internet of things platform to perform internet of things platform migration on the inventory device;
responding to the first connection request message, and acquiring an authentication result from a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether the stock equipment is allowed to access the target internet of things platform;
And responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
2. The method of claim 1, wherein obtaining the authentication result from the cloud gateway authenticator based on the preset device authentication manner comprises:
sending an authentication request message to the cloud gateway authenticator based on the preset equipment authentication mode, wherein the authentication request message is used for requesting the cloud gateway authenticator to verify whether the stock equipment is allowed to access the target internet of things platform;
and receiving the authentication result returned by the cloud gateway authenticator based on the authentication request message.
3. The method of claim 2, wherein sending the authentication request message to the cloud gateway authenticator based on the preset device authentication manner comprises:
sending the authentication request message to the cloud gateway authenticator based on the preset equipment authentication mode, wherein the information carried in the authentication request message comprises: and the cloud gateway authenticator is used for verifying whether the equipment authentication certificate is legal or not according to the preset equipment authentication mode, and the equipment authentication certificate is legal to indicate that the cloud gateway authenticator allows the stock equipment to access the target internet of things platform.
4. The method according to claim 1, wherein the method further comprises:
and responding to the authentication result to indicate that the stock equipment is allowed to access the target internet of things platform, and returning a notification message to the stock equipment, wherein the notification message is used for notifying the stock equipment to successfully access the target internet of things platform.
5. The method of claim 1, wherein requesting the target internet of things platform to configure the device state of the stock device comprises:
sending a second connection request message to the target internet of things platform, wherein information carried in the second connection request message comprises: and the client identifier, the user name information and the password information corresponding to the stock equipment are used for enabling the target internet of things platform to be added or updated with the equipment state of the stock equipment based on the client identifier, the user name information and the password information and synchronously updating the equipment state to a service cloud platform.
6. The method according to claim 1, wherein the method further comprises:
receiving uplink data from the stock equipment, wherein the uplink data is to-be-updated data of the stock equipment;
And sending the uplink data to a cloud gateway analyzer, wherein the cloud gateway analyzer is used for converting the data format of the uplink data from the data format adopted by the source internet of things platform to the data format adopted by the target internet of things platform, and sending the converted uplink data to the target internet of things platform so that the target internet of things platform synchronously updates the converted uplink data to a service cloud platform.
7. The method according to claim 1, wherein the method further comprises:
receiving downlink data from a cloud gateway controller through the target internet of things platform, wherein the downlink data is obtained by the cloud gateway controller through data format conversion of a control instruction issued by the service cloud platform, and the data format of the control instruction is converted from a data format adopted by the target internet of things platform to a data format adopted by the source internet of things platform;
and sending the downlink data to the stock equipment so as to remotely control the stock equipment.
8. The method of claim 1, wherein a graphical user interface is provided by the terminal device, the graphical user interface displaying content that at least partially includes a visual configuration scene, the method further comprising:
Responding to a first touch operation acting on the graphical user interface, and inputting a cloud gateway name, wherein the cloud gateway corresponding to the cloud gateway name at least comprises: a cloud gateway resolver and a cloud gateway controller;
responding to a second touch operation acting on the graphical user interface, and selecting the preset equipment authentication mode;
responding to a third touch operation acting on the graphical user interface, and carrying out parameter configuration on the cloud gateway analyzer and the cloud gateway controller to obtain a configuration result;
and responding to a fourth touch operation acting on the graphical user interface, and creating the cloud gateway based on the cloud gateway name, the preset equipment authentication mode and the configuration result.
9. An apparatus for migrating inventory devices, comprising:
the system comprises a receiving module, a storage device and a storage module, wherein the receiving module is used for receiving a first connection request message from the storage device, the firmware address of the storage device is changed from a first address to a second address, the first address is the address of an internet of things transmission protocol server of a source internet of things platform accessed by the storage device, the second address is the address of an internet of things transmission protocol server of a target internet of things platform accessed by the storage device, and the first connection request message is used for requesting the internet of things transmission protocol server of the target internet of things platform to carry out internet of things platform migration on the storage device;
The acquisition module is used for responding to the first connection request message, and acquiring an authentication result from a cloud gateway authenticator based on a preset equipment authentication mode, wherein the authentication result is used for indicating whether the stock equipment is allowed to access the target internet of things platform;
and the request module is used for responding to the authentication result to indicate that the stock equipment is allowed to be accessed to the target internet of things platform, and requesting the target internet of things platform to configure the equipment state of the stock equipment.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program is arranged to perform the method of migrating inventory devices according to any of claims 1 to 8 when being run by a processor.
11. An internet of things transport protocol server comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of migrating an inventory device according to any of claims 1 to 8.
12. A system for migrating inventory devices, comprising: the internet of things transmission protocol server of claim 11, a stock device, a target internet of things platform, a cloud gateway, a service cloud platform and the internet of things transmission protocol server.
CN202310989410.2A 2023-08-07 2023-08-07 Method, device, storage medium, server and system for migrating stock equipment Pending CN116886757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310989410.2A CN116886757A (en) 2023-08-07 2023-08-07 Method, device, storage medium, server and system for migrating stock equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310989410.2A CN116886757A (en) 2023-08-07 2023-08-07 Method, device, storage medium, server and system for migrating stock equipment

Publications (1)

Publication Number Publication Date
CN116886757A true CN116886757A (en) 2023-10-13

Family

ID=88254976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310989410.2A Pending CN116886757A (en) 2023-08-07 2023-08-07 Method, device, storage medium, server and system for migrating stock equipment

Country Status (1)

Country Link
CN (1) CN116886757A (en)

Similar Documents

Publication Publication Date Title
CN111580820B (en) Applet generation method and device
CN110851253B (en) Remote operation and maintenance method, system, storage medium and electronic equipment
CN103460723A (en) Push notifications for updating multiple dynamic icon panels
CN109491690A (en) Upgrade method, device and the household appliance of household appliance
CN103597860A (en) Selective linking of message accounts
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN105681173A (en) Creation method, device and system of conversation in instant communication
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
CN108337308A (en) LWM2M clients and host computer data communications method, device and its system
CN102984278A (en) System and method for realizing browser data synchronization
CN107770212A (en) Rich communication suite distribution platform, method for updating edition and system, mobile terminal
CN102271095A (en) Community platform-based batch processing transmission method and instant communication server
CN104767672A (en) Account relation establishing method and device
CN116886757A (en) Method, device, storage medium, server and system for migrating stock equipment
CN109698974A (en) A kind of method, apparatus, electronic equipment and the medium of display progress
CN112614049A (en) Image processing method, image processing device, storage medium and terminal
CN102244618A (en) Batch processing method and instant messaging server based on community platform
CN111010449B (en) Image information output method, system, device, medium, and electronic apparatus
CN103634348A (en) Terminal device and method for releasing information
CN102244617A (en) Batch processing notification method based on community platform and live communications server
CN102130852A (en) Batch processing and transmitting method for community platform and instant communication server
CN109698973A (en) A kind of progress update method, device, electronic equipment and medium
JP7117444B1 (en) Information processing device and information processing method
CN115835145B (en) Service management method, device and storage medium
CN102130849B (en) Method for transmitting file of community platform and instant communication server

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