CN116980286A - Device configuration method, device control method, storage medium, and terminal - Google Patents

Device configuration method, device control method, storage medium, and terminal Download PDF

Info

Publication number
CN116980286A
CN116980286A CN202210449252.7A CN202210449252A CN116980286A CN 116980286 A CN116980286 A CN 116980286A CN 202210449252 A CN202210449252 A CN 202210449252A CN 116980286 A CN116980286 A CN 116980286A
Authority
CN
China
Prior art keywords
target
collector
information
equipment
server
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
CN202210449252.7A
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.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen 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 Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202210449252.7A priority Critical patent/CN116980286A/en
Publication of CN116980286A publication Critical patent/CN116980286A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a device configuration method, a device control method, a storage medium and a terminal, wherein after receiving configuration information input by a user, connection is established with a target collector according to collector type information in the configuration information, device information of the target collector is acquired, and target collector registration is carried out in a first server according to the device information of the target collector; associating the target collector with the target service organization in the second server according to the registered collector equipment information; and according to the controlled equipment information input by the user, the target controlled equipment is associated with the target collector and the target service organization. The configuration of the collector, the controlled equipment and the service organization is automatically carried out, the operation flow of the user is simplified, and the collector and the controlled equipment under the organization are integrated through the service organization, so that the user can integrally control the controlled equipment without network access capability under the same organization through the corresponding collector of the organization.

Description

Device configuration method, device control method, storage medium, and terminal
Technical Field
The present application relates to the field of control technologies of devices of the internet of things, and in particular, to a device configuration method, a device control method, a storage medium, and a terminal.
Background
With the development of the Internet and telecommunication industry, centralized control of various terminal devices through the Internet of things is realized, so that all common terminal devices which can be independently addressed can be simultaneously controlled in the interconnection network. The implementation process is usually to network with each controlled terminal device by means of a control end, wherein the control end controls various terminal devices through network connection relation, and performs management and feedback control of the terminal devices.
Disclosure of Invention
The application provides a device configuration method, a device control method, a storage medium and a terminal, which can solve the technical problems that the device configuration is complex and remote control cannot be performed in the related technology.
In a first aspect, an embodiment of the present application provides a device configuration method, applied to a terminal, where the method includes:
in a first interactive application interface, receiving input configuration information, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information;
connecting a target collector according to the collector type information to acquire first equipment information of the target collector;
the first equipment information is sent to a first server, so that the first server registers the target collector according to the first equipment information and returns second equipment information generated after registering the target collector;
Receiving the second equipment information returned by the first server, and sending the second equipment information and the service organization configuration information to a second server, so that the second server determines a target service organization according to the service organization configuration information, and associates the target collector with the target service organization according to the second equipment information;
receiving third equipment information input aiming at the controlled equipment type information in a second interactive application interface;
and sending the third equipment information and the second equipment information to the second server so that the second server determines target controlled equipment according to the third equipment information and associates the target collector, the target controlled equipment and the target business organization according to the second equipment information.
In a second aspect, an embodiment of the present application provides an apparatus control method, applied to a first server, where the method includes:
receiving a first control instruction sent by a second server aiming at the association relationship among a target collector, target controlled equipment and target service organization;
forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sending the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
In a third aspect, an embodiment of the present application provides an apparatus configuration device, applied to a terminal, where the apparatus includes:
the information input module is used for receiving input configuration information in the first interactive application interface, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information;
the collector connecting module is used for connecting a target collector according to the collector type information so as to acquire first equipment information of the target collector;
the collector registration module is used for sending the first equipment information to a first server so that the first server registers the target collector according to the first equipment information and returns second equipment information generated after registering the target collector;
the collector association module is used for receiving the second equipment information returned by the first server, sending the second equipment information and the service organization configuration information to a second server, enabling the second server to determine a target service organization according to the service organization configuration information, and associating the target collector with the target service organization according to the second equipment information;
The controlled device setting module is used for receiving third device information input aiming at the controlled device type information in a second interactive application interface;
and the controlled device association module is used for sending the third device information and the second device information to the second server so that the second server determines a target controlled device according to the third device information and associates the target collector, the target controlled device and the target service organization according to the second device information.
In a fourth aspect, an embodiment of the present application provides an apparatus control device, applied to a first server, including:
the instruction receiving module is used for receiving a first control instruction sent by the second server aiming at the association relationship among the target collector, the target controlled equipment and the target service organization;
the instruction forwarding module is used for forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sends the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
In a fifth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method described above.
In a sixth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being adapted to be loaded by the processor and to perform the steps of the device configuration method described above.
In a seventh aspect, an embodiment of the present application provides a server including a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being adapted to be loaded by the processor and to perform the steps of the device control method described above.
The technical scheme provided by the embodiments of the application has the beneficial effects that at least:
the application provides a device configuration method, after receiving configuration information input by a user, establishing connection with a target collector according to collector type information in the configuration information, acquiring device information of the target collector, and registering the target collector in a first server according to the device information of the target collector; associating the target collector with the target service organization in the second server according to the registered collector equipment information; and according to the controlled equipment information input by the user, the target controlled equipment is associated with the target collector and the target service organization. The configuration of the collector, the controlled equipment and the service organization is automatically carried out, the operation flow of the user is simplified, and the collector and the controlled equipment under the organization are integrated through the service organization, so that the user can integrally control the controlled equipment without network access capability under the same organization through the corresponding collector of the organization.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application and that other drawings may be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is an exemplary system architecture diagram of a device configuration method according to an embodiment of the present application;
fig. 2 is a system interaction diagram of a device configuration method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a device configuration method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a configuration information filling interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a configuration interface of a collector according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a configuration interface of a controlled device according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a device configuration method according to an embodiment of the present application;
fig. 8 is a deployment connection diagram of a controlled device according to an embodiment of the present application;
fig. 9 is a schematic flow chart of a device control method according to an embodiment of the present application;
Fig. 10 is a system interaction diagram of a device control method according to an embodiment of the present application;
FIG. 11 is a block diagram of a device configuration apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of a device control apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the features and advantages of the present application more comprehensible, embodiments accompanied with figures in the present application are described in detail below, wherein the embodiments are described only in some but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application as detailed in the accompanying claims.
In recent years, internet technology is developed at a high speed, and meanwhile, the internet is based on the fact that various common devices without network access capability are connected to the internet of things of a control network, and various devices can be controlled in a centralized mode through the internet of things, so that all the common terminal devices capable of being addressed independently can be controlled simultaneously on the interconnection network. The implementation process is that each controlled terminal device is connected by means of a computer, so that each controlled terminal device can be networked, each terminal device is controlled in the computer through a network connection relationship, and the terminal devices are managed and feedback controlled.
However, most of the electrical devices only have serial interfaces and cannot be connected with the ethernet to realize network communication, while the network communication of the computer is performed based on TCP/IP protocol, which is the transmission control/network protocol, also called network communication protocol, which is the most basic communication protocol in network use, so when the computer controls the common terminal device, in order to control the conventional serial electrical devices to access the ethernet of the computer, a serial server can be used to connect the serial device and the computer, and provides serial port to network function, so that serial ports of different standards such as RS-232/485/422 can be converted into TCP/IP network interfaces, and data bidirectional transparent transmission between the RS-232/485/422 serial ports and the TCP/IP network interfaces can be realized. The serial port equipment can immediately have the TCP/IP network interface function, the connecting network is used for carrying out data communication, the communication distance of the serial port equipment is greatly expanded, the port of the computer server is connected with the serial port of the equipment, and the serial port equipment can be remotely controlled by the computer, so that the serial port equipment is more efficient, rapid, and has the advantages of improving the utilization rate and reasonable space, and saving resources.
In the existing electrical industry, a serial server is commonly used for connecting a computer with common serial electrical equipment, and is used for collecting data in the electrical equipment and transmitting the data to the computer so that the computer can perform unified management on the data, and therefore the serial server is also used as a data converter or a collector in a control system. Under the general condition, the collector needs to be configured according to computer network information, serial device information, collector attribute information and the like before use, so that a control system is in a usable state, the network availability of a computer is ensured in the control process, and a user can conveniently control the serial device through the computer network.
Because the configuration is required according to the attribute information of the related equipment before the collector is used, a technician with higher professional degree is generally required to perform manual configuration during the configuration, and the manual configuration of all users by the technician in the diversified collector application scene causes a great amount of waste of manpower and material resources, the control of the serial device is realized by depending on the network of the computer, and when the network of the computer is unavailable or the computer is shut down, the connected serial device cannot continuously receive the instruction, so the control method is relatively inflexible and wastes a great amount of resources.
The embodiment of the application provides a device configuration method, which can establish connection with a target collector according to collector type information in configuration information after configuration information is input by a user, acquire device information of the target collector, and register the target collector in a first server according to the device information; the target collector is associated with the target service organization in the second server according to the registration information; according to the controlled equipment information input by the user, the target controlled equipment is associated with the target collector and the target service organization so as to solve the technical problems that the equipment configuration is complex and remote control cannot be performed.
Referring to fig. 1, fig. 1 is an exemplary system architecture diagram of a device configuration method according to an embodiment of the present application.
As shown in fig. 1, the system architecture may include a terminal 101, a network 102, a first server 103, a second server 104, a collector 105, and a controlled device 106. The network 102 is used for media providing a communication link between the terminal 101 and the first server 103, the second server 104, the collector 105, and the controlled device 106, and media providing a communication link between the first server 103 and the second server 104, the collector 105, and media providing a communication link between the collector 105 and the controlled device 106. Network 102 may include various types of wired or wireless communication links, such as: the wired communication link includes an optical fiber, a twisted pair wire, or a coaxial cable, and the Wireless communication link includes a bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, a microwave communication link, or the like.
The terminal 101 may interact with the first server 103, the second server 104, the collector 105 and the controlled device 106 through the network 102 to receive messages from the first server 103, the second server 104, the collector 105 and the controlled device 106 or send messages to the first server 103, the second server 104, the collector 105 and the controlled device 106, or the terminal 101 may interact with the first server 103, the second server 104, the collector 105 and the controlled device 106 through the network 102 to receive messages or data sent by other users to the first server 103, the second server 104, the collector 105 and the controlled device 106. The terminal 101 may be hardware or software. When the terminal 101 is hardware, it may be various electronic devices including, but not limited to, a smart watch, a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the terminal 101 is software, it may be installed in the above-listed electronic device, and it may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, which is not specifically limited herein.
The first server 103, the second server 104, and the collector 105 may be business servers providing various services. The first server 103, the second server 104, and the collector 105 may be hardware or software. When the first server 103, the second server 104, and the collector 105 are hardware, they may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the first server 103, the second server 104, and the collector 105 are software, they may be implemented as a plurality of software or software modules (for example, to provide distributed services), or may be implemented as a single software or software module, which is not specifically limited herein.
It should be understood that the number of terminals, networks, first servers, second servers, collectors, and controlled terminals in fig. 1 is merely illustrative, and any number of terminals, networks, first servers, second servers, collectors, and controlled terminals may be used as desired for implementation.
Referring to fig. 2, fig. 2 is a system interaction diagram of a device configuration method according to an embodiment of the present application, and a system interaction procedure in the device configuration method will be described with reference to fig. 1 and fig. 2.
S201, in a first interactive application interface, the terminal receives input configuration information, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information.
S202, the terminal is connected with the target collector according to the collector type information so as to acquire first equipment information of the target collector.
Optionally, connecting the target collector according to collector type information, including: determining a communication protocol for connecting a target collector according to the collector type information, and carrying out network broadcasting based on the communication protocol; network broadcast-based result connection target collector
Optionally, the configuration information further includes collector network mode information, and the network broadcasting based on the communication protocol includes: and determining a preset network mode corresponding to the network mode information of the collector, and carrying out network broadcasting in the preset network mode based on a communication protocol.
And S203, the terminal sends the first device information to the first server.
S204, the first server registers the target collector according to the first device information and returns the second device information generated after registering the target collector.
S205, the terminal receives the second equipment information returned by the first server and sends the second equipment information and the service organization configuration information to the second server.
Optionally, the second device information at least includes registration parameter information of the target collector in the first server, and after receiving the second device information returned by the first server, the method further includes: and configuring the target collector according to the registration parameter information in the second equipment information.
S206, the second server determines a target service organization according to the service organization configuration information, and associates the target collector with the target service organization according to the second equipment information.
Optionally, the second device information at least includes an identity of the target collector calculated by the first server according to the first device information, and the associating the target collector with the target service organization according to the second device information includes: and associating the identity of the target collector in the second equipment information with the target service organization.
S207, in the second interactive application interface, the terminal receives third device information input for the controlled device type information and sends the third device information and the second device information to the second server.
And S208, the second server determines target controlled equipment according to the third equipment information, and associates the target collector, the target controlled equipment and the target business organization according to the second equipment information.
In the embodiment of the application, after receiving configuration information input by a user, connection is established with a target collector according to collector type information in the configuration information, equipment information of the target collector is acquired, and target collector registration is carried out in a first server according to the equipment information of the target collector; associating the target collector with the target service organization in the second server according to the registered collector equipment information; and according to the controlled equipment information input by the user, the target controlled equipment is associated with the target collector and the target service organization. The configuration of the collector, the controlled equipment and the service organization is automatically carried out, the operation flow of the user is simplified, and the collector and the controlled equipment under the organization are integrated through the service organization, so that the user can integrally control the controlled equipment without network access capability under the same organization through the corresponding collector of the organization.
Optionally, associating the target collector, the target controlled device and the target service organization according to the second device information includes: associating the target collector with the target controlled device according to the second device information; and according to the association relation between the target collector and the target service organization and the association relation between the target collector and the target controlled equipment, associating the target collector, the target controlled equipment and the target service organization.
Optionally, the third device information at least includes a gateway address of the target controlled device, and associating the target collector with the target controlled device according to the second device information includes: and associating the gateway address of the target controlled device with the identity of the target collector.
Optionally, after the third device information and the second device information are sent to the second server, so that the second server associates the target collector, the target controlled device and the target service organization, the method further includes: and sending a verification request to the target controlled device, and if a verification signal sent by the controlled device after responding to the verification request is received, determining that the target controlled device is successfully configured.
Optionally, after sending the third device information and the second device information to the second server, so that the second server associates the target collector, the target controlled device and the target service organization, the method further includes: responding to an instruction of adding the controlled equipment, and searching the controlled equipment to be added and the configured collector in the current network mode; in a third interactive application interface, receiving fourth equipment information input for equipment to be added and obtaining fifth equipment information of the configured collector; and sending the fourth equipment information and the fifth equipment information to a second server so that the second server determines the controlled equipment to be added corresponding to the fourth equipment information, and associating the controlled equipment to be added with the configured collector according to the fifth equipment information.
In the embodiment of the application, the first server calculates the identity of the target collector according to the address information of the target collector, and the second server carries out the association between the target collector and the target service organization according to the identity, so that the unique property of the identity can ensure the accurate control of the target collector; then, according to the gateway address of the target controlled device included in the third device information of the controlled device, the second server can associate the target controlled device with the target collector, so that the target controlled device, the target collector and the target service organization are integrally associated; and after the collector is successfully configured for the first time, the new controlled equipment can be directly added under the corresponding service organization and the collector without reconfiguration deployment. The complex configuration can be accurately completed through simple input, so that the time and energy of user configuration are saved, and one-key deployment of the collector control environment and accurate control of the controlled equipment are realized for the user.
Referring to fig. 3, fig. 3 is a flow chart of a device configuration method according to an embodiment of the application. The execution body of the embodiment of the application can be a terminal for executing equipment configuration, a processor in the terminal for executing the equipment configuration method, and an equipment configuration service in the terminal for executing the equipment configuration method. For convenience of description, a specific implementation procedure of the device configuration method will be described below taking an example in which the execution subject is a processor in the terminal.
As shown in fig. 3, the device configuration method is applied to the terminal, and the device configuration method at least may include:
s301, in a first interactive application interface, receiving input configuration information, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information.
Optionally, when controlling a serial device without network access capability, data transmission between a TCP/IP network communication protocol and a serial protocol of an ethernet needs to be implemented through a collector, so that manual configuration needs to be performed on the collector and the controlled device based on information such as different serial controlled device attributes, different collector types, different network connection modes and the like, and a manual configuration process is generally complex and has high requirements on professional properties, has weak universality on users, and is inconvenient for the users to perform daily use. Therefore, in order to facilitate the control of the controlled device by the collector, the complete configuration flow can be preset, and the collector and the controlled device can be directly configured according to the device information only by directly inputting simple device information by the user.
Optionally, the different collector types determine various properties such as a communication protocol used by the collector type, a serial port link connected with the controlled device, and the like, and the different controlled device types also correspond to a command which the controlled device can receive, a control effect which can be achieved, and the like, so that a first interactive application interface can be provided for a user, the first interactive application interface is used for inputting collector type information and controlled device type information which need to be configured by the user, the target collector and the target controlled device can be controlled directly according to the collector type information conveniently, the configuration time of the user is saved by the automatic collector and the controlled device configuration flow, and the user can control the controlled device directly and simply.
Further, when the controlled device is controlled by the collector, there may be a plurality of controlled devices that need to be controlled simultaneously or uniformly, for example, all air conditioners in a building, all electric meters in a building, etc., and when there is a need to perform uniform data transmission and command control in a space area, the area may be connected under a local area network as a service organization, and all collectors and controlled devices under the service organization are managed by the association of spaces. In order to enable a user to use the service organization according to the own requirement, the user can register the service organization according to the local area network by himself and acquire the service organization code corresponding to the service organization.
Optionally, when registering the service organization, the user can customize the organization name, which can include the location information of the organization, the use of the equipment under the organization, etc., so that the user can recognize the characteristics thereof, and the subsequent operations such as control and maintenance are convenient. And when the user configures the collector and the controlled device through the first interactive application interface, the user can input the service organization configuration information comprising the service organization code at the same time so as to configure the collector and the controlled device under the service organization.
For convenience of description, please refer to fig. 4, fig. 4 is a schematic diagram of a configuration information filling interface according to an embodiment of the present application. As shown in fig. 4, in the configuration information filling interface 400, a service organization configuration information field 410, a collector type information field 420, and a controlled device information field 430 are included, where a user may input service organization configuration information, such as a service organization code "AAA", in the service organization configuration information field 410, click a "query" key beside the service organization configuration information field to query whether the service organization is available, and when the service organization is available, display a corresponding service organization name, such as "test organization", under the service organization configuration information field 410; meanwhile, the user may directly input the collector type, e.g., "XXX", in the collector type information field 420 and input the controlled device type, e.g., "yyyy", in the controlled device type information field 430. It should be noted that, when no available service organization corresponding to the service organization code input by the user is queried, a reminding word "please fill in the correct organization code" may also be displayed directly below the service organization configuration information field 410.
S302, connecting the target collector according to the collector type information to acquire first equipment information of the target collector.
Optionally, after receiving the configuration information input by the user, the collector and the controlled device may be configured, and since the collector is a hub for controlling the controlled device and is also a key node for issuing the instruction, the target collector needs to be configured first, that is, the target collector needs to be connected first. It can be known from the description of the above embodiment that different collector types determine various attributes such as a communication protocol used by the target collector and a serial port link connected with the controlled device, so that the target collector can be connected according to the collector type information, and after the target collector detects that the target collector is connected with the computer, the target collector returns corresponding first device information, where the first device information includes a network identifier of the target collector, so that the computer is informed of the network location of the target collector, and is convenient for the computer to configure and control the target collector.
Optionally, after the collector type information is successfully connected with the target collector, a prompt word of "the successful connection of the collector" can be displayed in the interactive interface, the type of the target collector and the acquired first equipment information are displayed, so that a user can confirm the target collector information without errors, and the user can automatically transfer to the collector configuration interface to perform subsequent configuration.
S303, the first device information is sent to the first server, so that the first server registers the target collector according to the first device information and returns the second device information generated after registering the target collector.
Optionally, after the first device information of the target collector is obtained, the target collector may be further configured, where it is first required to confirm whether a data transmission network of the target collector is available, and connection with the target collector has been established before, at this time, a communication request may be directly sent to the target collector, and a communication result returned by the target collector is received, and when the communication data is correct, it is determined that the network communication environment of the target collector is good at this time, and configuration or control may be performed.
Optionally, when the user controls the controlled device, the sending and executing of the control instruction and the processing of the feedback information may involve a series of data transmission protocols and data transmission methods of the internet of things, and the data and the information need to be managed, so the control instruction of the user is usually dependent on an IOT (Internet of Things, internet of things, IOT) platform, and the issuing and the feedback of the control instruction are implemented through a server of the IOT platform, which can enable the target collector to control different types of controlled devices. In the embodiment of the application, the IOT platform can be used as the first server, the control instruction is sent through the first server, and in consideration of the fact that a plurality of collectors can exist in the same local area network, network identifiers of the collectors are the same, in order to enable the IOT platform, namely the first server, to accurately send the instruction to the corresponding target collector, the target collector needs to be registered to the first server, the target collector can acquire the special identifier of the target collector, and the first server can conveniently determine the corresponding target collector according to the special identifier.
Further, after the first device information of the target collector is acquired, the first device information may be sent to the first server, so that the first server registers the target collector according to the first device information, and generates second device information of the target collector, where the second device information includes information newly generated by the first server for the target collector, and the second device information may be used for subsequent configuration of the target collector and associated with the target controlled device and the service organization, so that the first server returns the generated second device information to the terminal after registering the target collector, so that the second device information of the target collector can be used for subsequent configuration.
S304, receiving second equipment information returned by the first server, and sending the second equipment information and the service organization configuration information to the second server, so that the second server determines a target service organization according to the service organization configuration information, and associates the target collector with the target service organization according to the second equipment information.
Optionally, after the target collector is registered in the first server, the second device information generated and returned by the first server may include the specific identifier of the target collector, so that the target collector may be associated with the service organization corresponding to the service organization configuration information based on the second device information. Considering that the IOT platform provides a control instruction forwarding operation as a first server, and can not perform a storage and calling operation of a large amount of data, when a user controls a controlled device, the association relationship between a service organization and a collector and the controlled device and a issuing instruction need to be saved through a background interface, and further, the service interface for the user to send instructions can be provided through a second server, and the association relationship among the collector, the controlled device and the service organization is saved. One possible implementation manner is that a service background can be provided as a second server, and the service background can be used for providing a service interface, accessing an IOT platform, providing a user operation interface, and storing and extracting association relations among collectors, controlled devices and service organizations.
Optionally, the first server may send the second device information and the service organization configuration information to the second server after receiving the second device information according to the generation of the target collector and returning the second device information. The second server can determine the target service organization to be bound by the user at the moment according to the service organization configuration information, and determine the special identification of the target collector according to the second equipment information, so that the second server can correlate the target collector with the target service organization and store the correlation relationship into the database, and the user can conveniently and rapidly determine the corresponding collector under the service organization when sending the control instruction, thereby realizing rapid and accurate equipment control.
Referring to fig. 5, fig. 5 is a schematic diagram of a collector configuration interface according to an embodiment of the present application. For convenience of description, the description of the drawings is given by taking the IOT platform as an example of the first server in fig. 5, and the IOT platform is not the only choice of the first server in the embodiment of the present application. When the communication configuration, server registration and organization association are all successful, as shown in fig. 5 (a), when the communication data is correct and correct, and it is determined that the network communication environment of the target collector is good, a prompt word of "configuration success" is directly displayed in the collector configuration interface 500 at the communication configuration column 510; when the target collector is successfully registered in the first server, after receiving the second device information returned by the first server, a prompt word of "registration success" can be displayed at the IOT platform registration column 520 in the collector configuration interface 500; when the association between the target collector and the target service organization in the second server is successful, a prompt word of "successful binding" may be displayed in the collector configuration interface 500 at the organization binding column 530, at this time, the configuration of the target collector is proved to be successful, and the user may click a "next" button below the interface in the collector configuration interface 500 to perform the configuration of the subsequent controlled device.
However, due to uncontrollable reasons such as network environment, in the configuration process of the target collector, a certain step may not succeed in communication configuration, server registration and organization association, as shown in fig. 5 (B), in the collector configuration interface 500, taking the IOT platform registration failure as an example, a notification of "registration failure" may be displayed at a position corresponding to the IOT platform registration column 520, and a configuration suggestion of "please detect a network" may be displayed at the same time, and a "retry" button may appear on the right side of the configuration suggestion, so that the user may retry the step by clicking the "retry" button; in addition, in the lower part of the collector configuration interface 500, a "reconfigure" button may be displayed, and after clicking, the user may reconfigure all the properties and settings of the configuration directly.
S305, in the second interactive application interface, third device information input aiming at the controlled device type information is received.
Optionally, after registering the target collector in the first server and associating the target collector with the target service organization in the second server, the target collector is successfully configured, and in order to send the instruction to the corresponding controlled device through the target collector, the target controlled device needs to be configured under the target collector and under the target service organization, so that the target collector can correctly distribute the control instruction. When the controlled device is configured, the target controlled device corresponding to the controlled device type information needs to be determined first, and the target controlled device can be determined by the known device attribute of the user, so that the user can directly input the known device attribute to enable the terminal to directly determine the target controlled device, and then the second interactive application interface can be provided for the user to receive third device information input by the user aiming at the controlled device type information, namely, the device attribute information of the target controlled device.
Optionally, referring to fig. 6, fig. 6 is a schematic diagram of a configuration interface of a controlled device according to an embodiment of the present application. As shown in fig. 6, in the controlled device configuration interface 600, the type of the current controlled device, for example, "YYY", and the name of the current target service organization, for example, "test organization", may be displayed above the interface, so that the user can confirm whether the current configuration meets the expected requirement, and in addition, a filling frame of the third device information of the controlled device may be displayed in the interface, for the user to input the third device information.
And S306, transmitting the third equipment information and the second equipment information to the second server, so that the second server determines target controlled equipment according to the third equipment information, and associating the target collector, the target controlled equipment and the target business organization according to the second equipment information.
Optionally, after the user inputs the third device information, the target controlled device needs to be associated with the target collector in the middle of the second server, and then the third device information and the second device information need to be sent to the second server, so that the second server can determine the target controlled device according to the attribute information of the target controlled device in the third device information, and associate the target collector, the target controlled device and the target business organization uniformly according to the special identifier of the collector in the second device information, the automatic configuration process realizes one-key deployment of the collector, the controlled device and the organization, saves the configuration time of the user, and enables the user to directly and simply control the controlled device.
In the embodiment of the application, after receiving configuration information input by a user, establishing connection with a target collector according to collector type information in the configuration information, acquiring equipment information of the target collector, and registering the target collector in a first server according to the equipment information of the target collector; associating the target collector with the target service organization in the second server according to the registered collector equipment information; and according to the controlled equipment information input by the user, the target controlled equipment is associated with the target collector and the target service organization. The configuration of the collector, the controlled equipment and the service organization is automatically carried out, the operation flow of the user is simplified, and the collector and the controlled equipment under the organization are integrated through the service organization, so that the user can integrally control the controlled equipment without network access capability under the same organization through the corresponding collector of the organization.
Referring to fig. 7, fig. 7 is a flowchart of a device configuration method according to an embodiment of the present application.
As shown in fig. 7, the device configuration method is applied to the terminal, and the device configuration method at least may include:
S701, in a first interactive application interface, input configuration information is received, wherein the configuration information at least comprises service organization configuration information, collector type information, collector network mode information and controlled equipment type information.
Optionally, the device configuration method may be optimized and updated continuously by a technician, so before implementing the device configuration method in the embodiment of the present application, the terminal may first check whether the execution version of the current device configuration method is the latest version, and if so, enter the configuration information filling interface; if the latest version is not the latest version, the latest version information is actively acquired and the existing version is updated and covered, so that the terminal executes the equipment configuration method in the latest version each time, and the collector, the organization and the controlled equipment are configured by using the latest optimized configuration method.
Optionally, it may be known from the foregoing embodiment that, when a control instruction is sent to the controlled device by using the collector, the collector and the controlled device need to be configured first, so in the first interactive application interface, the user may input known collector type information to be configured, controlled device type information and service organization configuration information, so that the target collector may be configured directly according to the collector type information, the target collector may be associated with the target service organization according to the service organization configuration information, and the target controlled device may be configured according to the controlled device type information and associated with the target collector.
Furthermore, before configuring the collector, the connection with the target collector is required to be established, and the user can select whether the network access mode of the target collector uses wireless network connection or wired network connection according to the requirement, and the network connection configuration of the collector when using different network connection modes is different, so that the configuration information input by the user can also include collector network mode information, a preset network mode in the collector network mode information represents a network mode of network communication of the target collector, and after the user inputs the collector network mode, the terminal can attempt to connect with the target collector and perform data transmission based on the preset network mode.
Optionally, in the corresponding configuration information filling interface, the user may select a wired mode or a wireless mode according to an actual network mode of the target collector. Referring to fig. 4, taking the network mode of the target collector as the wired mode as an example, in the configuration information filling interface 400, after filling in the service organization configuration information, the collector type information and the controlled device type information, the user can directly select "wired mode" in the network mode field 440. It should be noted that if the network mode corresponding to the target collector is a wireless mode, basic information of the wireless network to be accessed by the target collector needs to be filled in, including a network name, a network password, an encryption mode, an encryption algorithm, and the like, wherein each piece of basic information is known information of a user, and filling rules among each piece of basic information are also known by the user, so specific setting and examples of the wireless network mode are not repeated in the embodiment of the application.
S702, determining a communication protocol for connecting the target collector according to the collector type information, and carrying out network broadcasting based on the communication protocol.
Optionally, before the target collector is configured, the target collector needs to be connected first, at this time, the target collector is already accessed into the local area network where the terminal is located, and in this network environment, the network broadcast can be performed to find the collector available under the current network, and the network communication protocols used by the collectors of different types are different, so that the communication protocol for connecting the target collector can be determined according to the collector type information, and then the network broadcast can be performed based on the communication protocol to find the target collector.
Specifically, the target collector is accessed into the network in a network mode input by a user, so that a preset network mode corresponding to the network mode information of the collector can be determined according to the network mode information in the configuration information input by the user, and when network broadcasting is performed based on a communication protocol, the corresponding target collector needs to be searched in the preset network mode.
S703, connecting the target collector based on the result of the network broadcasting to acquire the first equipment information of the target collector.
Optionally, after the network broadcasting is performed in the current network environment in the preset network mode based on the communication protocol of the target collector, the target collector may be connected to the target collector based on the network broadcasting result, that is, the target collector may acquire corresponding first device information from the target collector after being connected, where the first device information includes a network identifier of the target collector to inform the computer of its network location, so as to facilitate the computer to configure and control the network location, and specifically, the first device information includes a MAC address (Media Access Control Address) and an IP address (Internet Protocol Address) of the target collector, where the MAC address is an address for identifying the location of the network device and is used to uniquely identify a network card in the network; the IP address is a unified address format provided by the IP protocol, which allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses. After the first device information of the target collector is acquired, the target collector can be configured according to the first device information.
Optionally, after the connection between the collector type information and the target collector is successful and the first equipment information of the target collector is obtained, the MAC address and the IP address in the first equipment information can be displayed in the interactive interface, so that the user can confirm the network address information of the target collector without errors, and the user can automatically transfer to the collector configuration interface to perform subsequent configuration.
And S704, the first device information is sent to the first server, so that the first server registers the target collector according to the first device information and returns the second device information generated after registering the target collector.
Optionally, after the first device information of the target collector is acquired, the first device information is sent to a first server, for example, an IOT platform, so that the first server can register the target collector according to the first device information and generate second device information, record the target collector in a collector list, and facilitate the first server to accurately forward the relevant information to the target collector according to the second device information when receiving a relevant instruction of the target collector.
Optionally, in order to accurately forward the control instruction and perform subsequent operations such as binding of the organization service, the target collector needs to be represented according to its unique identity when being configured, so when registering the target collector in the first server, the first server can calculate the identity of the target collector according to the MAC address in the first device information, where the identity is the unique identity of the target collector, that is, the device ID of the target collector is used as the information in the second device information, and then the target collector can be accurately located according to the unique identity and perform data interaction with the target collector, thereby avoiding the condition of confusion or failure of data transmission.
S705, receiving second equipment information returned by the first server, and configuring a target collector according to registration parameter information in the second equipment information.
Optionally, in the configuration process of the target collector, not only the first server generates the identity identifier thereof and records the identity identifier, but also the target collector needs to configure own control information, including but not limited to source information of a received control instruction, namely, first server information, an instruction transmission link, and the like, which are required to be known and stored by the target collector as registration parameter information of the target collector, so that when the first server registers the target collector, the generated and returned second device information also includes registration parameter information of the target collector in the first server. After receiving the second device information returned by the first server, the target collector can be configured according to the registration parameter information in the second device information, so that the target collector can acquire the controlled condition of the target collector, and is convenient for subsequent receiving and responding to the control instruction forwarded by the first server.
Further, when the first server registers the target collector, the generated and returned second device information can also include a product identifier and a device key of the target collector, wherein the product identifier is a product classification of the target collector; the device key is a network traffic key that can be used according to the target collector.
S706, the second equipment information and the service organization configuration information are sent to the second server, so that the second server determines a target service organization according to the service organization configuration information, and the identity of the target collector in the second equipment information is associated with the target service organization.
Optionally, in order to correlate the target collector with the target service organization, after receiving the second device information of the target collector, the second device information and the service organization configuration information need to be sent to the second server, so that the second server can determine the target service organization to be bound by the user at the moment according to the service organization configuration information, correlate the identity of the target collector with the target service organization according to the identity of the target collector in the second device information, and store the association relationship of the identity of the target collector with the target service organization in a database, thereby being convenient for the user to quickly determine the corresponding collector under the service organization when sending a control instruction, and realizing quick and accurate device control.
Further, after the configuration of the collector is successful, version information of the collector is recorded in the second server, and along with the updating and optimization of technicians on the collector, updated version information is synchronized to all the collectors working on the second server, and the target collector can automatically update the firmware version according to the synchronized version information without manual updating operation of the technicians or users, so that the target collector is ensured to operate as the latest functional version.
And S707, in the second interactive application interface, receiving third device information input for the type information of the controlled device, wherein the third device information at least comprises a gateway address of the target controlled device.
Optionally, since the controlled device needs to be controlled by the collector, after the collector is configured, the controlled device needs to be configured, and in the second interactive application interface, that is, the controlled device configuration interface, the user needs third device information input for the type of the controlled device selected in the first interactive application interface, where the third device information is related information of the target controlled device. In the subsequent configuration process and the control process, the controlled equipment pointed by the instruction is required to be determined according to the identification of the controlled equipment, so that the third equipment information at least comprises the gateway address of the target controlled equipment, wherein the gateway address is a unique position identification which can be searched by a user and is used for indicating the corresponding target controlled equipment; secondly, the user can also customize the equipment name of the target controlled equipment, and the equipment name can comprise the actual space position of the target controlled equipment and is used for being displayed to the user in a control interface, so that the user can conveniently and accurately control the controlled equipment and check the controlled equipment; in addition, the user can fill in a self-defined device label, and the content of the device label can comprise an identification label of the target controlled device, so that the user can mark the target controlled device conveniently. It should be noted that the gateway address and the device name must be filled in, so that subsequent device control and problem investigation are facilitated, and the device tag may be selected to be filled in or not by the user.
As shown in fig. 6, a filling frame of third device information of the controlled device is displayed in the controlled device configuration interface 600, and is used for a user to input the third device information, so that the user can specifically fill in a gateway address, a device name and a user-defined device tag of the target controlled device.
And S708, transmitting the third equipment information and the second equipment information to a second server, so that the second server determines the target controlled equipment according to the third equipment information, and associating the gateway address of the target controlled equipment with the identity of the target collector.
Optionally, in order to control the controlled device through the collector under the service organization, the target controlled device, the target collector and the target service organization are associated when the target controlled device is also required to be configured under the service organization. The target collector and the target service organization have an association relation, and the target collector and the target controlled device have a control relation, so that the target controlled device and the target collector can be associated, and further the association of the target controlled device and the target collector with the target service organization is realized.
Optionally, when the target collector and the target controlled device are associated, the currently available target controlled device needs to be determined first, and the third device information includes a gateway address for identifying the communication position of the target controlled device, then the second device information and the third device information are sent to the second server, so that the second server can determine the target controlled device according to the third device information, and associate the gateway address of the target controlled device with the identity of the target collector, to obtain the association relationship between the target collector and the target controlled device.
S709, associating the target collector, the target controlled device and the target service organization according to the association relationship between the target collector and the target service organization and the association relationship between the target collector and the target controlled device.
Optionally, when the target collector is configured, the identity of the target collector is associated with the target service organization according to the second equipment information of the target collector and the service organization configuration information, so as to obtain an association relationship between the target collector and the target service organization; when the target controlled equipment is configured, according to second equipment information of the target collector and third equipment information of the target controlled equipment, the identity of the target collector is associated with a gateway address of the target controlled equipment, so that an association relation between the target collector and the target controlled equipment is obtained; and then according to the association relation between the target collector and the target service organization and the association relation between the target collector and the target controlled equipment, the target collector, the target controlled equipment and the target service organization can be associated, so that the integral association of the target collector and the target controlled equipment under the same service organization is realized, and the simultaneous control of a plurality of controlled equipment based on the service organization is realized. The method is convenient for a user to directly position the controlled equipment under the service organization and control the controlled equipment through the corresponding collector, and greatly saves manpower and material resources during equipment configuration and control due to the integration capability of the service organization and the simplified deployment flow.
S7010, sending a verification request to target controlled equipment, and if a verification signal sent by the controlled equipment after responding to the verification request is received, determining that the target controlled equipment is successfully configured.
Optionally, after associating the target collector, the target controlled device and the target service organization, in order to ensure that the target controlled device can already implement instruction control, the configuration result may be checked, that is, whether the target controlled device can be normally used is checked. At this time, the heartbeat request can be sent to the target controlled device as a verification request, the heartbeat request is used for requesting the target controlled device to return a heartbeat signal, and if the target controlled device receives the heartbeat request and responds to the heartbeat signal and returns the heartbeat signal as the verification signal, the successful configuration of the target controlled device can be determined and the target controlled device can be put into use.
It should be noted that, after the target service organization, the target collector and the target controlled device are configured successfully, the target collector needs to be restarted to be able to be used. When the user restarts the collector, the user can exit the current equipment configuration method through the equipment configuration interface, and can directly power off the collector and reconnect the collector to restart.
Further, when a user needs to add a new controlled device under the collector, the service organization performs unified regulation and control on the corresponding collector and the controlled device, and the gateway address of the controlled device can realize serial connection, so that when the new controlled device is added, the new controlled device can be directly connected to the last position of the existing controlled device, and then the hand connection between the controlled devices is realized, and the controlled devices are configured on the basis.
Optionally, when the user opens the third interactive application interface, the instruction of adding the controlled device sent by the user may be received and responded, and the controlled device to be added in the current network mode and the configured collector in the current network are searched, and the collector is used as the collector for controlling the controlled device to be added, where the user may receive fourth device information input for the controlled device to be added in the third interactive application interface, where the fourth device information includes at least a gateway address of the controlled device to be added, and obtains fifth device information of the configured collector, and the fifth device information includes at least an identity identifier of the configured collector; and the fourth equipment information and the fifth equipment information are sent to the second server, so that the second server directly associates the controlled equipment to be added with the configured collector according to the fifth equipment information, one-key deployment of the controlled equipment to be added is realized, and the control structures of the collector and the service organization do not need to be reconfigured.
Optionally, in order to simplify the deployment flow of multiple controlled devices, gateways of multiple controlled devices may be connected in series, and multiple controlled devices with the same gateway are connected under each gateway, referring to fig. 8, fig. 8 is a deployment connection diagram of a controlled device provided by an embodiment of the present application. As shown in fig. 8, in the current service organization scenario 800, from one collector 820 under control of the first server 810, a plurality of controlled device gateways 830 may be controlled in series, and a plurality of controlled devices 840 may be connected in series or in parallel under each controlled device gateway. The gateway equipment connected in series in this way is convenient for directly adding new gateway and controlled equipment in the collector in the subsequent process, without redeploying the collector, and realizes the compatible deployment and access of multiple gateways and multiple controlled equipment.
In the embodiment of the application, after the equipment configuration method is connected to the target collector, the first server calculates the identity of the target collector according to the address information of the target collector, and the second server realizes the association of the target collector and the target service organization according to the identity, so that the unique property of the identity can ensure the accurate control of the target collector; then, according to the gateway address of the target controlled device included in the third device information of the controlled device, the second server can associate the target controlled device with the target collector, so that the target controlled device, the target collector and the target service organization are integrally associated; and after the collector is successfully configured for the first time, the new controlled equipment can be directly added under the corresponding service organization and the collector without reconfiguration deployment. The complex configuration can be accurately completed through simple input, so that the time and energy of user configuration are saved, and one-key deployment of the collector control environment and accurate control of the controlled equipment are realized for the user.
Referring to fig. 9, fig. 9 is a flow chart of a device control method according to an embodiment of the application. The execution body of the embodiment of the application can be a server for executing equipment control, a processor in the server for executing the equipment control method, and an equipment control service in the server for executing the equipment control method. For convenience of description, a specific implementation procedure of the device control method will be described below taking an example in which the execution subject is a processor in a server.
As shown in fig. 9, the device control method is applied to the first server in the above embodiment, and the device control method may include at least:
s901, receiving a first control instruction sent by a second server aiming at the association relationship among a target collector, target controlled equipment and target service organization.
Optionally, after the collector, the controlled device and the service organization are configured, the user may directly send a first control instruction to the controlled device through a service interface provided by the second server, specifically, the user may find a target controlled device under the target service organization in the interactive application interface, send a control action to the target controlled device by clicking, and the second server may directly call, according to clicking of the user, an identity of a target collector corresponding to the current target service organization and the target controlled device based on an association relationship between the target collector, the target controlled device and the target service organization, where the first control instruction includes at least the collector identity, a gateway address of the controlled device and a control action to the controlled device, and the service backend serving as the second server may directly send the first control instruction to the first server, so that the first server may send the first control instruction to the corresponding target collector according to the collector identity in the first control instruction.
S902, forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sending the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
Optionally, after receiving the first control instruction, the first server forwards the first control instruction to a target collector corresponding to the identity according to the identity in the first control instruction, the first control instruction is issued in a form of a computer language, the first control instruction needs to be converted into an instruction language which can be identified by the controlled equipment so as to control the controlled equipment, the target collector can process the first control instruction into an instruction which can be identified by the controlled equipment and responded, and forwards the instruction to the controlled equipment through an RS-499 communication link or an RS-232 communication link, and then after analyzing the instruction information in the first control instruction to obtain a second control instruction, the target collector can send the second control instruction to a target controlled equipment corresponding to a gateway address included in the first control instruction; and the target collector can convert the response result data of the controlled device to the second control instruction into MQTT (Message Queuing Telemetry Transport, message queue telemetry transport protocol) data feedback to be sent to the first server, and the data feedback is forwarded to the second server by the first server to display the control result to the user.
Specifically, referring to fig. 10, fig. 10 is a system interaction diagram of a device control method according to an embodiment of the present application. FIG. 10 illustrates a system interaction process in a device control method, as shown in FIG. 10, in which when a target controlled device is controlled, an MQTT data connection is established with a first server under the condition that a target collector is powered on and accesses a network; at the moment, the first server receives a first control instruction sent by the second server; firstly, inquiring the state of target controlled equipment; if the condition of the target controlled equipment is normal, a first control instruction is sent to a target collector; the target collector carries out escape processing on the first control instruction to obtain a second control instruction, and the target collector forwards the second control instruction to target controlled equipment; the target controlled device executes the second control instruction and feeds back an instruction execution result to the target collector; the target collector sends the instruction execution result to the first server. Thus, a complete control flow of the controlled equipment is realized from the cloud, so that the controlled equipment has network access capability and can be supported to remotely control the controlled equipment.
In the embodiment of the application, a device control method is provided, a first server can directly forward a control instruction sent by a second server to a target collector according to an identity of the collector, so that the target collector sends the instruction to a corresponding controlled device according to a gateway address of the controlled device after the instruction is subjected to escape processing, the controlled device without network access capability is networked, the devices are equivalent to the devices with the network access capability through the connection of the collector and serial ports of the devices, the instruction issued by a user from a cloud of the first server is executed, an execution result is fed back, and the controlled device under the same organization is remotely controlled.
In another embodiment of the present application, when the number of the target controlled devices is plural, the connection manner between the target controlled devices is serial. When a plurality of controlled devices exist, the service organization regulates and controls the corresponding collectors and the controlled devices uniformly, and the gateway addresses of the controlled devices can realize serial connection, so that when a new controlled device is added, the new controlled device can be directly connected with the last position of the existing controlled device, then the hand-held connection between the controlled devices is realized, and the controlled devices are configured on the basis.
Optionally, in a business organization, only one collector can be used for controlling a plurality of different types of controlled devices in batches, wherein the collector is connected with one controlled device gateway, other controlled device gateways can be sequentially connected in series, a plurality of controlled devices can be controlled under the same controlled device gateway, the controlled devices can be connected under the corresponding controlled device gateway in a plurality of modes such as series connection or parallel connection, and the like, so that the compatibility deployment and access of multiple gateways and multiple controlled devices are realized, and when a user controls instructions of the controlled devices, the control of all the controlled devices can be directly realized by one collector.
In another embodiment of the present application, when the first control instruction is a fault location instruction, response information returned by the target controlled device for the second control instruction is received; and determining the equipment information of the fault target controlled equipment in the target controlled equipment according to the number of the response information and the total number of the target controlled equipment.
Optionally, when the controlled device fails, the user may send a first control instruction sent for the association relationship among the collector, the controlled device and the service organization through the service platform of the second server, where the first control instruction is a failure positioning instruction, and after receiving the first control instruction sent by the second server, the first server forwards the first control instruction to all collectors or designated collectors, so that the collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sends the second control instruction to the controlled device corresponding to the gateway address included in the first control instruction.
Because the controlled equipment without faults responds to the second control instruction and returns response information, the controlled equipment without faults cannot respond to the second control instruction, namely cannot return response information, and the controlled equipment connected in series behind the controlled equipment cannot return response information, the returned quantity of the response information is compared with the total quantity of the controlled equipment, the node position of the control network where the controlled equipment with faults is located can be determined, and further the specific controlled equipment with faults is determined.
In another embodiment of the present application, when the first control instruction includes a plurality of target controlled devices corresponding to a plurality of gateway addresses, the first control instruction is forwarded to a target collector corresponding to an identity in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a plurality of second control instructions, determines each gateway address corresponding to each second control instruction, and sends each second control instruction to each target controlled device corresponding to each gateway address.
Specifically, under yet another service organization, one controlled device gateway can be connected only through one collector, other controlled device gateways can be sequentially connected in series, multiple controlled devices can be controlled under the same controlled device gateway, and the controlled devices can be connected under the corresponding controlled device gateway in various modes such as series connection or parallel connection. When the user performs instruction control on a plurality of controlled devices, the first server forwards the first control instruction to a target collector corresponding to the identity mark in the first control instruction, the target collector analyzes the instruction information in the first control instruction to obtain a plurality of second control instructions, determines each gateway address corresponding to each second control instruction, and sends each second control instruction to each target controlled device corresponding to each gateway address, so that the control on all the controlled devices can be directly realized by one collector.
Referring to fig. 11, fig. 11 is a block diagram illustrating a device configuration apparatus according to an embodiment of the present application. As shown in fig. 11, applied to a terminal, a device configuration apparatus 1100 includes:
the information input module 1110 is configured to receive, in the first interactive application interface, input configuration information, where the configuration information includes at least service organization configuration information, collector type information, and controlled device type information;
the collector connection module 1120 is used for connecting the target collector according to the collector type information so as to acquire first equipment information of the target collector;
the collector registration module 1130 is configured to send the first device information to the first server, so that the first server registers the target collector according to the first device information and returns the second device information generated after registering the target collector;
the collector association module 1140 is configured to receive second device information returned by the first server, and send the second device information and service organization configuration information to the second server, so that the second server determines a target service organization according to the service organization configuration information, and associates the target collector with the target service organization according to the second device information;
The controlled device setting module 1150 is configured to receive, in the second interactive application interface, third device information input for the controlled device type information;
and the controlled device association module 1160 is configured to send the third device information and the second device information to the second server, so that the second server determines the target controlled device according to the third device information, and associates the target collector, the target controlled device and the target service organization according to the second device information.
Optionally, the controlled device association module 1160 is further configured to associate the target collector with the target controlled device according to the second device information; and according to the association relation between the target collector and the target service organization and the association relation between the target collector and the target controlled equipment, associating the target collector, the target controlled equipment and the target service organization.
Optionally, the second device information includes at least an identity of the target collector calculated by the first server according to the first device information, and the collector association module 1140 is further configured to enable the second server to associate the identity of the target collector in the second device information with the target service organization.
Optionally, the third device information includes at least a gateway address of the target controlled device, and the controlled device association module 1160 is further configured to associate the gateway address of the target controlled device with the identity of the target collector.
Optionally, the collector connection module 1120 is further configured to determine a communication protocol for connecting to the target collector according to the collector type information, and perform network broadcasting based on the communication protocol; and connecting the target collector based on the result of the network broadcasting.
Optionally, the collector connection module 1120 is further configured to determine a preset network mode corresponding to the collector network mode information, and perform network broadcasting in the preset network mode based on the communication protocol.
Optionally, the second device information includes at least registration parameter information of the target collector in the first server, and the device configuration apparatus 1100 further includes: and the collector configuration module is used for configuring the target collector according to the registration parameter information in the second equipment information.
Optionally, the device configuration apparatus 1100 further includes: and the controlled device verification module is used for sending a verification request to the target controlled device, and if the verification signal sent by the controlled device after responding to the verification request is received, the target controlled device is determined to be successfully configured.
Optionally, the device configuration apparatus 1100 further includes: the controlled device adding module is used for responding to the instruction of adding the controlled device and searching the controlled device to be added and the configured collector in the current network mode; in a third interactive application interface, receiving fourth equipment information input for equipment to be added and obtaining fifth equipment information of the configured collector; and sending the fourth equipment information and the fifth equipment information to a second server so that the second server determines the controlled equipment to be added corresponding to the fourth equipment information, and associating the controlled equipment to be added with the configured collector according to the fifth equipment information.
In an embodiment of the present application, an apparatus configuration device is provided, where an information input module is configured to receive configuration information input by a user; the collector connection module is used for establishing connection with the target collector according to the collector type information in the configuration information and acquiring the equipment information of the target collector; the collector registration module is used for registering the target collector in the first server according to the equipment information of the target collector; the collector association module is used for associating the target collector with the target service organization in the second server according to the registered collector equipment information; and the controlled equipment association module is used for associating the target controlled equipment with the target collector and the target service organization according to the controlled equipment information input by the user. The configuration of the collector, the controlled equipment and the service organization is automatically carried out, the operation flow of the user is simplified, and the collector and the controlled equipment under the organization are integrated through the service organization, so that the user can integrally control the controlled equipment without network access capability under the same organization through the corresponding collector of the organization.
Referring to fig. 12, fig. 12 is a block diagram illustrating a device control apparatus according to an embodiment of the present application. As shown in fig. 12, applied to the first server, the device control apparatus 1200 includes:
the instruction receiving module 1210 is configured to receive a first control instruction sent by the second server for an association relationship between the target collector, the target controlled device, and the target service organization;
the instruction forwarding module 1220 is configured to forward the first control instruction to a target collector corresponding to the identity in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sends the second control instruction to a target controlled device corresponding to the gateway address included in the first control instruction.
Optionally, when the number of the target controlled devices is plural, the connection manner between the target controlled devices is serial.
Optionally, the device control apparatus 1200 further includes a fault location module, configured to receive response information returned by the target controlled device for the second control instruction when the first control instruction is the fault location instruction; and determining the equipment information of the fault target controlled equipment in the target controlled equipment according to the number of the response information and the total number of the target controlled equipment.
Optionally, the instruction forwarding module 1220 is further configured to, when the first control instruction includes a plurality of target controlled devices corresponding to a plurality of gateway addresses, forward the first control instruction to a target collector corresponding to an identity in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a plurality of second control instructions, determine each gateway address corresponding to each second control instruction, and send each second control instruction to each target controlled device corresponding to each gateway address.
In an embodiment of the present application, an apparatus control device is provided, where an instruction receiving module is configured to receive a control instruction sent by a second server; the command forwarding module is used for directly forwarding the control command sent by the second server to the target collector according to the identity of the collector, so that the target collector sends the command to the corresponding controlled device according to the gateway address of the controlled device after the command is converted, the controlled device without network access capability is networked, the devices are equivalent to the devices with network access capability through the connection of the collector and the serial ports of the devices, the command issued by a user from the cloud of the first server is executed, the execution result is fed back, and the controlled device under the same organization is remotely controlled
Embodiments of the present application also provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any of the embodiments described above.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 13, the terminal 1300 may include: at least one terminal processor 1301, at least one network interface 1304, a user interface 1303, a memory 1305, at least one communication bus 1302.
Wherein a communication bus 1302 is used to enable connected communications between these components.
The user interface 1303 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1303 may further include a standard wired interface and a standard wireless interface.
The network interface 1304 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The terminal processor 1301 may include one or more processing cores, among others. The terminal processor 1301 connects various parts within the entire terminal 1300 using various interfaces and lines, and performs various functions of the terminal 1300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1305, and calling data stored in the memory 1305. Alternatively, the terminal processor 1301 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The terminal processor 1301 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the terminal processor 1301 and may be implemented by a single chip.
The Memory 1305 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 1305 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1305 may be used to store instructions, programs, code sets, or instruction sets. The memory 1305 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 1305 may also optionally be at least one storage device located remotely from the aforementioned terminal processor 1301. As shown in fig. 13, an operating system, a network communication module, a user interface module, and a device configuration program may be included in the memory 1305, which is one type of computer storage medium.
In the terminal 1300 shown in fig. 13, the user interface 1303 is mainly used for providing an input interface for a user, and acquiring data input by the user; and terminal processor 1301 may be configured to invoke the device configuration program stored in memory 1305 and specifically perform the following operations:
In a first interactive application interface, receiving input configuration information, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information;
connecting a target collector according to collector type information to acquire first equipment information of the target collector;
the first equipment information is sent to a first server, so that the first server registers a target collector according to the first equipment information and returns second equipment information generated after registering the target collector;
receiving second equipment information returned by the first server, and sending the second equipment information and the service organization configuration information to the second server, so that the second server determines a target service organization according to the service organization configuration information, and associates a target collector with the target service organization according to the second equipment information;
in the second interactive application interface, receiving third device information input aiming at the type information of the controlled device;
and sending the third equipment information and the second equipment information to a second server so that the second server determines target controlled equipment according to the third equipment information and associates the target collector, the target controlled equipment and the target business organization according to the second equipment information.
In some embodiments, when executing the method for associating the target collector, the target controlled device, and the target service organization by the second server according to the second device information, the terminal processor 1301 specifically executes the following steps: the second server associates the target collector with the target controlled device according to the second device information; and according to the association relation between the target collector and the target service organization and the association relation between the target collector and the target controlled equipment, associating the target collector, the target controlled equipment and the target service organization. .
In some embodiments, the second device information includes at least an identity of the target collector calculated by the first server according to the first device information, and when the terminal processor 1301 performs the step of making the second server associate the target collector with the target service organization according to the second device information, the terminal processor specifically performs the following steps: and associating the identity of the target collector in the second equipment information with the target service organization.
In some embodiments, the third device information includes at least a gateway address of the target controlled device, and the terminal processor 1301, when executing the step of causing the second server to associate the target collector with the target service organization according to the second device information, specifically executes the following steps: and associating the gateway address of the target controlled device with the identity of the target collector.
In some embodiments, the terminal processor 1301, when executing the connection of the target collector according to the collector type information, specifically executes the following steps: determining a communication protocol for connecting a target collector according to the collector type information, and carrying out network broadcasting based on the communication protocol; and connecting the target collector based on the result of the network broadcasting.
In some embodiments, when executing the configuration information further includes collector network mode information, the terminal processor 1301 specifically performs the following steps when performing network broadcasting based on a communication protocol: and determining a preset network mode corresponding to the network mode information of the collector, and carrying out network broadcasting in the preset network mode based on a communication protocol.
In some embodiments, the second device information includes at least registration parameter information of the target collector in the first server, and after executing receiving the second device information returned by the first server, the terminal processor 1301 further specifically executes the following steps: and configuring the target collector according to the registration parameter information in the second equipment information.
In some embodiments, after performing sending the third device information and the second device information to the second server, the terminal processor 1301 further specifically performs the following steps, where the second server associates the target collector, the target controlled device, and the target service organization: and sending a verification request to the target controlled device, and if a verification signal sent by the controlled device after responding to the verification request is received, determining that the target controlled device is successfully configured.
In some embodiments, after performing sending the third device information and the second device information to the second server, the terminal processor 1301 further specifically performs the following steps, where the second server associates the target collector, the target controlled device, and the target service organization: responding to an instruction of adding the controlled equipment, and searching the controlled equipment to be added and the configured collector in the current network mode; in a third interactive application interface, receiving fourth equipment information input for equipment to be added and obtaining fifth equipment information of the configured collector; and sending the fourth equipment information and the fifth equipment information to a second server so that the second server determines the controlled equipment to be added corresponding to the fourth equipment information, and associating the controlled equipment to be added with the configured collector according to the fifth equipment information.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 14, the server 1400 may include: at least one server processor 1401, at least one network interface 1404, a user interface 1403, a memory 1405, at least one communication bus 1402. Wherein a communication bus 1402 is used to enable connected communication among the components. The user interface 1403 may include a standard wired interface, a wireless interface, among others. The network interface 1404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the server processor 1401 may include one or more processing cores. The server processor 1401 connects various portions of the overall server 1400 using various interfaces and lines, and performs various functions of the server 1400 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1405, and invoking data stored in the memory 1405. Alternatively, the server processor 1401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The server processor 1401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the server processor 1401 and may be implemented as a single chip.
The Memory 1405 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (ROM). Optionally, the memory 1405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 1405 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, and the like; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 1405 may also optionally be at least one storage device located remotely from the aforementioned server processor 1401. As shown in fig. 14, an operating system, a network communication module, a user interface module, and a device control program may be included in the memory 1405 as one type of computer storage medium.
In the server 1400 shown in fig. 14, the user interface 1403 is mainly used as an interface for providing input for a user, and acquires data input by the user; and the server processor 1401 may be configured to call a device control program stored in the memory 1405, and specifically perform the following operations:
Receiving a first control instruction sent by a second server aiming at the association relationship among a target collector, target controlled equipment and target service organization;
forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sending the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
In some embodiments, when the number of target controlled devices is plural, the connection manner between the target controlled devices is serial.
In some embodiments, after executing the sending of the second control instruction to the target controlled device corresponding to the gateway address included in the first control instruction, the server processor 1401 further specifically executes the following steps: when the first control instruction is a fault locating instruction, response information returned by the target controlled equipment aiming at the second control instruction is received; and determining the equipment information of the fault target controlled equipment in the target controlled equipment according to the number of the response information and the total number of the target controlled equipment.
In some embodiments, the server processor 1401 specifically performs the following steps when executing the forwarding the first control instruction to the target collector corresponding to the identity in the first control instruction: when the first control instruction comprises a plurality of target controlled devices corresponding to a plurality of gateway addresses, the first control instruction is forwarded to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a plurality of second control instructions, each gateway address corresponding to each second control instruction is determined, and each second control instruction is respectively sent to each target controlled device corresponding to each gateway address.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or 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 an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several 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 methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing describes a device configuration method, a device control method, a storage medium, and a terminal provided by the present application, and those skilled in the art should not understand the present application to limit the scope of the present application in view of the foregoing description of the embodiment of the present application.

Claims (18)

1. A device configuration method, applied to a terminal, the method comprising:
in a first interactive application interface, receiving input configuration information, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information;
connecting a target collector according to the collector type information to acquire first equipment information of the target collector;
the first equipment information is sent to a first server, so that the first server registers the target collector according to the first equipment information and returns second equipment information generated after registering the target collector;
Receiving the second equipment information returned by the first server, and sending the second equipment information and the service organization configuration information to a second server, so that the second server determines a target service organization according to the service organization configuration information, and associates the target collector with the target service organization according to the second equipment information;
receiving third equipment information input aiming at the controlled equipment type information in a second interactive application interface;
and sending the third equipment information and the second equipment information to the second server so that the second server determines target controlled equipment according to the third equipment information and associates the target collector, the target controlled equipment and the target business organization according to the second equipment information.
2. The method of claim 1, wherein the associating the target collector, the target controlled device, and the target business organization according to second device information comprises:
the target collector is associated with the target controlled device according to second device information;
And according to the association relation between the target collector and the target service organization and the association relation between the target collector and the target controlled equipment, associating the target collector, the target controlled equipment and the target service organization.
3. The method according to claim 2, wherein the second device information at least includes an identity of the target collector calculated by the first server according to the first device information, and the associating the target collector with the target service organization according to the second device information includes:
and associating the identity of the target collector in the second equipment information with the target service organization.
4. A method according to claim 3, wherein the third device information includes at least a gateway address of the target controlled device, and wherein associating the target collector with the target controlled device according to the second device information includes:
and associating the gateway address of the target controlled device with the identity of the target collector.
5. The method of claim 1, wherein said connecting a target collector according to said collector type information comprises:
Determining a communication protocol for connecting a target collector according to the collector type information, and carrying out network broadcasting based on the communication protocol;
and connecting the target collector based on the network broadcast result.
6. The method of claim 5, wherein the configuration information further comprises collector network mode information, the network broadcasting based on the communication protocol comprising:
and determining a preset network mode corresponding to the collector network mode information, and carrying out network broadcasting in the preset network mode based on the communication protocol.
7. The method according to claim 1, wherein the second device information includes at least registration parameter information of the target collector in the first server, and after receiving the second device information returned by the first server, the method further includes:
and configuring the target collector according to the registration parameter information in the second equipment information.
8. The method of claim 1, wherein the sending the third device information and the second device information to the second server, such that after the second server associates the target collector, the target controlled device, and a target business organization, further comprises:
And sending a verification request to the target controlled device, and if a verification signal sent by the controlled device after responding to the verification request is received, determining that the target controlled device is successfully configured.
9. The method of claim 1, wherein the sending the third device information and the second device information to the second server, such that after the second server associates the target collector, the target controlled device, and a target business organization, further comprises:
responding to an instruction of adding the controlled equipment, and searching the controlled equipment to be added and the configured collector in the current network mode;
in a third interactive application interface, receiving fourth equipment information input for the controlled equipment to be added, and acquiring fifth equipment information of the configured collector;
and sending the fourth equipment information and the fifth equipment information to the second server so that the second server determines the controlled equipment to be added corresponding to the fourth equipment information, and associates the controlled equipment to be added with the configured collector according to the fifth equipment information.
10. A device control method, applied to a first server, the method comprising:
receiving a first control instruction sent by a second server aiming at the association relationship among a target collector, target controlled equipment and target service organization;
forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sending the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
11. The method according to claim 10, wherein when the number of the target controlled devices is plural, the connection manner between the target controlled devices is serial.
12. The method according to claim 11, wherein when the first control instruction is a fault location instruction, after the sending the second control instruction to the target controlled device corresponding to the gateway address included in the first control instruction, the method further includes:
receiving response information returned by the target controlled device for the second control instruction;
And determining the equipment information of the fault target controlled equipment in the target controlled equipment according to the number of the response information and the total number of the target controlled equipment.
13. The method of claim 10, wherein when the first control instruction includes a plurality of target controlled devices corresponding to a plurality of gateway addresses, the forwarding the first control instruction to a target collector corresponding to an identity in the first control instruction includes:
forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a plurality of second control instructions, determining each gateway address corresponding to each second control instruction, and respectively sending each second control instruction to each target controlled device corresponding to each gateway address.
14. A device configuration apparatus, characterized by being applied to a terminal, the apparatus comprising:
the information input module is used for receiving input configuration information in the first interactive application interface, wherein the configuration information at least comprises service organization configuration information, collector type information and controlled equipment type information;
The collector connecting module is used for connecting a target collector according to the collector type information so as to acquire first equipment information of the target collector;
the collector registration module is used for sending the first equipment information to a first server so that the first server registers the target collector according to the first equipment information and returns second equipment information generated after registering the target collector;
the collector association module is used for receiving the second equipment information returned by the first server, sending the second equipment information and the service organization configuration information to a second server, enabling the second server to determine a target service organization according to the service organization configuration information, and associating the target collector with the target service organization according to the second equipment information;
the controlled device setting module is used for receiving third device information input aiming at the controlled device type information in a second interactive application interface;
and the controlled device association module is used for sending the third device information and the second device information to the second server so that the second server determines a target controlled device according to the third device information and associates the target collector, the target controlled device and the target service organization according to the second device information.
15. A device control apparatus, applied to a first server, comprising:
the instruction receiving module is used for receiving a first control instruction sent by the second server aiming at the association relationship among the target collector, the target controlled equipment and the target service organization;
the instruction forwarding module is used for forwarding the first control instruction to a target collector corresponding to the identity mark in the first control instruction, so that the target collector analyzes the instruction information in the first control instruction to obtain a second control instruction, and sends the second control instruction to target controlled equipment corresponding to the gateway address included in the first control instruction.
16. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any one of claims 1 to 9 or 10 to 13.
17. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to any one of claims 1 to 9 when the program is executed.
18. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method according to claims 10 to 13 when the program is executed.
CN202210449252.7A 2022-04-24 2022-04-24 Device configuration method, device control method, storage medium, and terminal Pending CN116980286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210449252.7A CN116980286A (en) 2022-04-24 2022-04-24 Device configuration method, device control method, storage medium, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210449252.7A CN116980286A (en) 2022-04-24 2022-04-24 Device configuration method, device control method, storage medium, and terminal

Publications (1)

Publication Number Publication Date
CN116980286A true CN116980286A (en) 2023-10-31

Family

ID=88481965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210449252.7A Pending CN116980286A (en) 2022-04-24 2022-04-24 Device configuration method, device control method, storage medium, and terminal

Country Status (1)

Country Link
CN (1) CN116980286A (en)

Similar Documents

Publication Publication Date Title
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
JP2020536434A (en) Network slice management method and equipment
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CA2549223A1 (en) Wireless classroom response system
EP3057281A1 (en) M2m application remote registration method, device, system and storage medium
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
JP2015079521A (en) Device management server, device management client, and position specification method for target operation object
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
US11838381B2 (en) Device cross-area access method, electronic device, and non-transitory computer-readable storage medium
CN111416723A (en) Equipment management method and related equipment
CN112511343B (en) Configuration method, device and equipment of forward interface and storage medium
CN115134236A (en) Intelligent network card management method, device, equipment and readable medium
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN105323128B (en) method, device and system for accessing front-end equipment to server
KR20220006605A (en) Cloud communication method and device, user device, network device
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
US8456671B2 (en) Communication system, information storage device, management device, and terminal device
CN112788576A (en) Equipment offline processing method and system, storage medium and electronic device
CN110505075B (en) Device management method and related device
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN116980286A (en) Device configuration method, device control method, storage medium, and terminal
CN105052207B (en) Information query method, equipment and system
CN115604095A (en) Network equipment configuration method and system
JP2024523633A (en) Communication method, device, electronic device, and storage medium for externally connected devices

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