CN114268650A - Configuration method and system for establishing communication connection - Google Patents

Configuration method and system for establishing communication connection Download PDF

Info

Publication number
CN114268650A
CN114268650A CN202111575435.5A CN202111575435A CN114268650A CN 114268650 A CN114268650 A CN 114268650A CN 202111575435 A CN202111575435 A CN 202111575435A CN 114268650 A CN114268650 A CN 114268650A
Authority
CN
China
Prior art keywords
terminal sensor
sensor
configuration data
terminal
configuration
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.)
Granted
Application number
CN202111575435.5A
Other languages
Chinese (zh)
Other versions
CN114268650B (en
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111575435.5A priority Critical patent/CN114268650B/en
Priority claimed from CN202111575435.5A external-priority patent/CN114268650B/en
Publication of CN114268650A publication Critical patent/CN114268650A/en
Application granted granted Critical
Publication of CN114268650B publication Critical patent/CN114268650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application provides a configuration method and a configuration system for establishing communication connection, wherein the established communication connection is the communication connection between gateway equipment and a terminal sensor, the gateway equipment is connected with the terminal sensor through a network cable or a serial bus, and the method comprises the following steps: acquiring a plurality of candidate sensor parameters, and respectively sending test instructions to the terminal sensors according to the candidate sensor parameters; acquiring and analyzing the response of the terminal sensor to the test instruction, and identifying the terminal sensor according to the response; generating configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor according to the identified terminal sensor; and configuring the gateway equipment by using the configuration data corresponding to the gateway equipment, and configuring the terminal sensor by using the configuration data corresponding to the terminal sensor so as to establish communication connection between the gateway equipment and the terminal sensor. The technical scheme of the application can improve the configuration efficiency of the gateway equipment and the terminal sensor.

Description

Configuration method and system for establishing communication connection
Technical Field
The application belongs to the technical field of internet of things, and particularly relates to a configuration method for establishing communication connection and a configuration system for establishing communication connection.
Background
At present, the development of industrial internet of things is rapid, and all industries and all trades widely utilize the technology of internet of things to improve efficiency, wherein gateway equipment belongs to indispensable equipment in the application of industrial internet of things, and functions such as information collection, report, control instruction issue and the like of each sensor and each controller are realized. Therefore, a great demand is placed on data configuration of the gateway device, and meanwhile, to achieve information acquisition and configuration of various sensors by the gateway device, configuration personnel need to be familiar with parameter configuration requirements of various sensors, the workload of the familiarity process is high, the difficulty and the cost for completing data configuration of the gateway device are high, and large-scale development of the industrial internet of things is not facilitated. If the configuration efficiency of the gateway equipment and the terminal sensor can be improved and the technical requirements on configuration personnel can be reduced, the configuration cost of the equipment in the Internet of things can be greatly reduced, and the development of the industrial Internet of things is powerfully promoted.
Therefore, there is a need for a way to improve the efficiency of the configuration of the gateway device and the terminal sensors.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present application and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The present application aims to provide a configuration method for establishing a communication connection, which at least to some extent overcomes the technical problems of the related art, such as low efficiency of configuring gateway devices and terminal sensors.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of the embodiments of the present application, there is provided a configuration method for establishing a communication connection, wherein the established communication connection is a communication connection between a gateway device and a terminal sensor; the gateway equipment is connected with the terminal sensor through a network cable or a serial bus, and the method comprises the following steps: acquiring a plurality of candidate sensor parameters, and respectively sending test instructions to the terminal sensors according to the candidate sensor parameters; acquiring and analyzing the response of the terminal sensor to the test instruction, and identifying the terminal sensor according to the response; generating configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor according to the identified terminal sensor; and configuring the gateway equipment by using the configuration data corresponding to the gateway equipment, and configuring the terminal sensor by using the configuration data corresponding to the terminal sensor so as to establish communication connection between the gateway equipment and the terminal sensor.
In some embodiments, generating configuration data corresponding to the gateway device and generating configuration data corresponding to the terminal sensor according to the terminal sensor that has been identified includes: acquiring configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor from a standard configuration database according to the identified terminal sensor, wherein the standard configuration database has a mapping relation between the terminal sensor and the configuration data corresponding to the gateway equipment and the configuration data corresponding to the terminal sensor; and sending a configuration suggestion corresponding to the configuration data to the user terminal, so that the gateway device is configured by the configuration data corresponding to the gateway device and the terminal sensor is configured by the configuration data corresponding to the terminal sensor under the condition that the user accepts the configuration suggestion.
In some embodiments, before obtaining the configuration data corresponding to the gateway device and the configuration data corresponding to the terminal sensor from the standard configuration database according to the identified terminal sensor, the method further includes: acquiring various sensors and configuration data corresponding to the sensors respectively, wherein the configuration data comprises configuration data corresponding to gateway equipment and configuration data corresponding to terminal sensors; training the initial model according to the sensor, the configuration data and the corresponding relation between the sensor and the configuration data to generate a target configuration model; and generating a standard configuration database according to the target configuration model.
In some embodiments, obtaining a plurality of candidate sensor parameters comprises: acquiring an application scene of gateway equipment; determining a plurality of candidate sensors capable of being applied to the application scene according to the application scene; a plurality of candidate sensor parameters are obtained according to the plurality of candidate sensors. In some embodiments, obtaining an application scenario of a gateway device includes: acquiring scene information of gateway equipment, wherein the scene information comprises external environment information and/or demand information; and generating an application scene of the gateway equipment according to the external environment information and/or the requirement information.
In some embodiments, the method further comprises: acquiring connection change information of a terminal sensor connected to gateway equipment; and updating the configuration data according to the connection change information.
In some embodiments, generating configuration data for establishing a communication connection based on the identified end sensor comprises: acquiring and storing a control instruction corresponding to the terminal sensor according to the identified terminal sensor; and controlling the terminal sensor according to the control instruction.
According to an aspect of the embodiments of the present application, there is provided a configuration system for establishing a communication connection between a gateway device and a terminal sensor, the system including: the gateway equipment is connected with the terminal sensor through a network cable or a serial bus; the system comprises a user terminal, a gateway device and a configuration platform, wherein the user terminal is connected with the gateway device through a cloud server, the user terminal or the cloud server is configured with the configuration platform, and the configuration platform is used for simulating the gateway device to send a test instruction to a terminal sensor; acquiring and analyzing the response of the terminal sensor to the test instruction; identifying the terminal sensor according to the response; generating configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor according to the identified terminal sensor; and configuring the gateway equipment by using the configuration data corresponding to the gateway equipment, and configuring the terminal sensor by using the configuration data corresponding to the terminal sensor so as to establish communication connection between the gateway equipment and the terminal sensor.
In some embodiments, the system further comprises: the interface device is used for connecting the terminal sensor; the interface device comprises a communication module, and the communication module is used for acquiring the response of the terminal sensor to the test instruction and sending the response to the configuration platform.
In some embodiments, the interface device further includes an instruction identification module, and the instruction identification module is configured to receive the control instruction and send the control instruction to the terminal sensor corresponding to the control instruction.
In some embodiments of the present application, based on the above technical solutions, there is also provided a computer readable medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the configuration method for establishing a communication connection as in the above technical solutions.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the configuration method for establishing a communication connection as in the above technical solution via executing the executable instructions.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the configuration method for establishing the communication connection as in the above technical solution.
According to the technical scheme provided by the embodiment of the application, the test instruction is sent to the terminal sensor according to various sensor parameters, the terminal sensor is identified according to the response of the terminal sensor to the test instruction, then automatic configuration is completed on gateway equipment according to the identified terminal sensor, the configuration efficiency for establishing communication connection is improved, and the configuration cost of the industrial gateway and the terminal sensor is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 schematically shows a block diagram of an exemplary system architecture to which the solution of the present application applies.
Fig. 2 is a flow chart illustrating a configuration method for establishing a communication connection according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram illustrating a configuration system for establishing a communication connection according to an embodiment of the present application.
Fig. 4 schematically shows a block diagram of a configuration apparatus for establishing a communication connection according to an embodiment of the present application.
Fig. 5 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 schematically shows a block diagram of an exemplary system architecture to which the solution of the present application applies.
As shown in fig. 1, system architecture 100 may include a terminal device 110, a network 120, and a server 130. The terminal device 110 may include various electronic devices such as a smart phone, a tablet computer, a notebook computer, and a desktop computer. The server 130 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services. Network 120 may be a communication medium of various connection types capable of providing a communication link between terminal device 110 and server 130, such as a wired communication link or a wireless communication link.
The system architecture in the embodiments of the present application may have any number of terminal devices, networks, and servers, according to implementation needs. For example, the server 130 may be a server group composed of a plurality of server devices. In addition, the technical solution provided in the embodiment of the present application may be applied to the terminal device 110, or may be applied to the server 130, or may be implemented by both the terminal device 110 and the server 130, which is not particularly limited in this application.
For example, the configuration method for establishing the communication connection according to the embodiment of the present application may be executed by the terminal device 110, or may be executed by the server 130. When the terminal device 110 executes the configuration method for establishing the communication connection according to the embodiment of the present application, the terminal device 110 acquires a plurality of candidate sensor parameters to respectively send a test instruction to the terminal sensor according to the candidate sensor parameters, and the terminal device 110 acquires and analyzes a response of the terminal sensor to the test instruction to identify the terminal sensor according to the response; and generating configuration data for establishing communication connection according to the identified terminal sensor, and configuring the gateway device with the configuration data so that the gateway device establishes communication connection with the terminal sensor. When the server 130 executes the configuration method for establishing the communication connection according to the embodiment of the present application, the server 130 remotely obtains a plurality of candidate sensor parameters to respectively send test instructions to the terminal sensors according to the candidate sensor parameters, and the server 130 obtains and analyzes the responses of the terminal sensors to the test instructions to identify the terminal sensors according to the responses; and generating configuration data for establishing communication connection according to the identified terminal sensor, and configuring the gateway device with the configuration data so that the gateway device establishes communication connection with the terminal sensor.
In the related art of the application, in an industrial internet of things communication terminal, 485 devices such as sensors need to be accessed, and the 485 sensor devices and an industrial gateway connected to the 485 sensor devices need to be configured when the 485 sensor devices are tested or debugged for the first time. The traditional configuration method is that the 485 sensor device is connected to a PC (personal computer) end by using a USB (universal serial bus), and after a driving program is installed, sensor parameters on the outer surface of the 485 sensor device are input so as to carry out related configuration on the 485 sensor device and the industrial gateway. Even PC networking online downloads are required if there is no driver, which further reduces the efficiency of the configuration. The industrial gateway is an industrial computer deployed in a local place and is used for collecting, storing, processing and analyzing data at the edge of the network, and the pressure on the cloud and the data center is relieved. The industrial internet of things is an internet of things which integrates various acquisition or control sensors or controllers with sensing and monitoring capabilities, ubiquitous technologies, mobile communication, intelligent analysis and other technologies into all links of an industrial production process, so that the manufacturing efficiency is improved.
The following describes a configuration method for establishing a communication connection provided by the present application in detail with reference to specific embodiments. The configuration method for establishing the communication connection can improve the configuration efficiency of 485 sensor devices and industrial gateways.
Fig. 2 is a flow chart illustrating a configuration method for establishing a communication connection according to an embodiment of the present application. The method for establishing the communication connection is used for establishing the communication connection between the gateway device and the terminal sensor, so that the sensor can be a node in a network, and the information can be conveniently received and reported. As shown in fig. 2, the configuration method for establishing a communication connection may include at least the following steps S210 to S240.
Step S210, obtaining a plurality of candidate sensor parameters, and respectively sending a test instruction to the terminal sensor according to the candidate sensor parameters.
The terminal sensor can be an intelligent sensor, and the intelligent sensor is provided with an intelligent processing unit on the basis of the traditional sensor. And the gateway equipment of the industrial Internet of things is used for realizing information reporting and control instruction issuing of each sensor and/or controller. The gateway device of the industrial internet of things is generally applied to a production environment. According to the production environment, a hardware matching scheme of the gateway equipment and the sensor corresponding to the production environment can be provided.
Therefore, in an embodiment, a hardware matching scheme capable of being applied to an application scene may be acquired according to the application scene of the gateway device, and then a plurality of candidate sensors may be acquired according to the hardware matching scheme, and then a plurality of candidate sensor parameters may be acquired according to the candidate sensors, so as to send test instructions to the terminal sensors respectively by using the acquired candidate sensor parameters. Illustratively, the application scenario may be a boiler temperature test scenario, and the corresponding candidate sensor includes a plurality of temperature-sensitive sensors. The application scenario may be a bridge vibration test scenario, and the corresponding candidate sensors may be a variety of vibration sensors.
In further embodiments, the utilization of various sensors may also be obtained. The higher the application rate, the greater the probability of being applied. Specifically, a plurality of candidate sensors with application rates larger than a preset threshold value can be obtained, and then parameters of the plurality of candidate sensors are obtained according to the candidate sensors so as to carry out testing, and therefore the sensors in the application scene are identified in a trial and error mode.
And S220, acquiring and analyzing the response of the terminal sensor to the test instruction, so as to identify the terminal sensor according to the response.
Wherein the response includes whether to respond or not and a response signal generated if to respond. This step is used to identify the end sensor. Specifically, the interface of the terminal sensor may be connected to the gateway device through an interface circuit. Illustratively, when the terminal sensor is a 485 sensor device, the terminal sensor can be connected to the gateway device through a 485 interface circuit, so as to communicate by using various protocols specified by the 485 interface standard. When the terminal device 110 executes the configuration method for establishing the communication connection according to the embodiment of the present application, the terminal device 110 may simulate a gateway device and respectively send a parameter test instruction corresponding to each candidate sensor to the terminal sensor. Under the condition that the sent candidate sensor parameters are matched with the terminal sensor receiving the test instruction, the terminal sensor generates a response, the 485 interface circuit can acquire the response and send the response to the terminal device 110, and the terminal device 110 acquires and analyzes different responses so as to identify the terminal sensor according to the different responses.
Step S230, generating configuration data for establishing a communication connection according to the identified terminal sensor, and generating configuration data corresponding to the terminal sensor.
The configuration data is used for configuring the gateway equipment and the terminal sensor, and the configuration data comprises slave addresses of the terminal sensor, baud rates of the sensor and other data, so that the gateway equipment can report information of each sensor and issue control instructions.
In some embodiments, generating configuration data for establishing a communication connection based on the identified end sensor and generating corresponding configuration data for the end sensor comprises: acquiring configuration data used for establishing communication connection and configuration data corresponding to a terminal sensor from a standard configuration database according to the identified terminal sensor, wherein the standard configuration database has the mapping relation between the configuration data corresponding to the terminal sensor and the gateway equipment and the configuration data corresponding to the terminal sensor; and sending a configuration suggestion corresponding to the configuration data to the user terminal, so as to configure the gateway equipment with the configuration data and configure the terminal sensor with the configuration data corresponding to the terminal sensor under the condition that the user accepts the configuration suggestion.
Specifically, the standard configuration database is used for storing the terminal sensor and the configuration data thereof. The standard configuration database establishing method can comprise the following steps: acquiring various sensors and configuration data corresponding to the sensors respectively, wherein the configuration data comprises configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor; training the initial model according to the sensor, the configuration data and the corresponding relation between the sensor and the configuration data to generate a target configuration model; and generating a standard configuration database according to the target configuration model.
It should be noted that the various sensors and the configuration data respectively corresponding to the sensors may be classic and common sensors and the configuration data corresponding to the sensors that are artificially screened, so that a target configuration model is generated by training the initial model for the various classic and common sensors and the configuration data respectively corresponding to the sensors, a standard configuration database is generated according to the target configuration model, the number of data pairs of the terminal sensors and the configuration data can be enriched, and the success rate of acquiring the configuration data from the standard configuration database is improved.
In one embodiment, a configuration script may be further invoked to generate configuration data, specifically, in different configuration data files, programs are usually different in size, and after a sensor is identified, sensor parameters may be input into a portal reserved in the configuration script for inputting sensor parameters, so as to generate configuration data for establishing a communication connection and configuration data of a terminal sensor, thereby enabling a communication connection to be automatically established between a gateway device and the terminal sensor.
In some embodiments, based on the configuration data, intuitive configuration data suggestions may be generated at terminal device 110. Specifically, after the terminal device 110 inputs the IP address of the service platform, the configuration platform automatically simulates the gateway device to send simulation report messages of various protocols such as MQTT to the service platform, analyzes the received response message, generates configuration data suggestions of the corresponding protocols such as MQTT of the gateway, and performs corresponding data configuration on the gateway through the configuration system for establishing communication connection. The service platform is a management platform corresponding to the terminal sensor and is used for carrying out centralized management on the terminal sensor.
Step S240, configuring the gateway device with the configuration data corresponding to the gateway device, and configuring the terminal sensor with the configuration data corresponding to the terminal sensor, so that the gateway device and the terminal sensor establish a communication connection.
Configuration data may be generated by the terminal device 110 to configure the gateway device and the terminal sensor, so that the gateway device may issue a control instruction corresponding to the identified sensor according to the sensor, and the gateway device and the terminal sensor may successfully establish a communication connection.
Therefore, in the application, the test instruction is sent to the terminal sensor according to various sensor parameters, the terminal sensor is identified according to the response of the terminal sensor to the test instruction, and then automatic configuration is completed on the gateway device and the terminal sensor according to the identified terminal sensor, so that the configuration efficiency of the gateway device and the terminal sensor is improved, and the configuration cost of the Internet of things is reduced.
In some embodiments, obtaining an application scenario of a gateway device includes: acquiring scene information of gateway equipment, wherein the scene information comprises external environment information and/or demand information; and generating an application scene of the gateway equipment according to the external environment information and/or the requirement information.
Illustratively, the external environment information of the gateway device may be acquired by a camera. Thereby presuming the application scenario according to the device in the external environment information. And the method can also receive demand information input by a user, so that an application scene is determined according to the demand information, and a sensor correspondingly used in the scene is further determined. Illustratively, if the application scene external environment information of the gateway device is indoor, the demand information includes humidity temperature detection and air quality detection, and the inferred application scene is an intelligent sensing indoor humidity temperature and control quality detection scene, the corresponding sensors in the application scene may be a humidity detection sensor, a temperature detection sensor, an odor detection sensor, and the like.
In some embodiments, the configuration method for establishing a communication connection may further include: acquiring connection change information of a terminal sensor connected to gateway equipment; and updating the configuration data according to the connection change information.
Specifically, the terminal sensor may be physically connected to the gateway device via an interface circuit. The interface circuit may include a sensor identification unit for identifying the connected terminal sensor. The interface circuit may further include a communication device for transmitting connection change information to the terminal device 110 when the connection of the terminal sensor connected to the gateway device is changed, so that the terminal device 110 updates the configuration data and configures the newly connected terminal sensor.
In some embodiments, generating configuration data for establishing a communication connection based on the identified end sensor may further include: acquiring and storing a control instruction corresponding to the terminal sensor according to the identified terminal sensor; and controlling the terminal sensor according to the control instruction. Therefore, the gateway equipment can conveniently report the information of each sensor and/or controller and issue the control instruction.
Fig. 3 is a schematic structural diagram illustrating a configuration system for establishing a communication connection according to an embodiment of the present application. As shown in fig. 3, the configuration system for establishing a communication connection may include at least a gateway device 310 and a user terminal 330. The user terminal 330 may be connected to the gateway device 310 through the cloud server 320 to implement remote configuration of the gateway device 310. The gateway device 310 may establish a physical connection with several end sensors through a network cable or a serial bus. The user terminal 330 or the cloud server 320 is configured with a configuration platform, and the configuration platform is configured to simulate the gateway device 310 to send a test instruction to the terminal sensor, and acquire and analyze a response of the terminal sensor to the test instruction, so as to identify the terminal sensor according to the response.
In some embodiments, the configuration system for establishing a communication connection may further include an interface device 340, where the interface device 340 is configured to be connected to the terminal sensor, where the interface device 340 includes a communication module, and the communication module is configured to establish a communication connection with the configuration platform, so as to send the obtained response of the terminal sensor to the test instruction to the configuration platform, and in some embodiments, the interface device 340 may further include an instruction identification module, and the instruction identification module is configured to receive the control instruction and send the control instruction to the terminal sensor corresponding to the control instruction, so as to implement issuing of the control instruction to the terminal sensor.
In a specific embodiment, taking the industrial gateway based on the 485 interface Modbus protocol as an example, an interface device 340 supporting the 485 interface Modbus protocol may be added at the terminal sensor. The interface device 340 may have a DTU module that may automatically connect to the configuration platform upon power up. The configuration platform issues test instructions of various sensor parameters to the terminal sensors through the interface device 340, collects response messages reported by the terminal sensors, and can continuously perfect configuration data corresponding to various terminal sensors through machine learning and artificial training modes, so as to obtain the configuration data corresponding to the identified terminal sensors, and configure the gateway equipment. The user terminal 330 may generate an intuitive presentation configuration data suggestion, or may perform manual training to generate an entry of a target configuration model, so as to generate configuration data through the target configuration model, to configure the gateway device, and to configure the terminal sensor, so that the gateway device and the terminal sensor establish a communication connection. Therefore, the labor cost can be reduced, the technical requirements on configuration personnel are reduced, and the configuration efficiency is improved.
It should be noted that although the various steps of the methods in this application are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the shown steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Embodiments of the apparatus of the present application are described below, which may be used to perform the configuration method for establishing a communication connection in the above embodiments of the present application. Fig. 4 schematically shows a block diagram of a configuration apparatus for establishing a communication connection according to an embodiment of the present application. As shown in fig. 4, the gateway device is connected to the terminal sensor through a network cable or a serial bus, and the configuration device for establishing the communication connection includes:
a first obtaining unit 410, configured to obtain multiple candidate sensor parameters, so as to send test instructions to the terminal sensors according to the candidate sensor parameters, respectively;
a second obtaining unit 420, configured to obtain and analyze a response of the terminal sensor to the test instruction, so as to identify the terminal sensor according to the response;
a generating unit 430, configured to generate configuration data corresponding to the gateway device and generate configuration data corresponding to the terminal sensor according to the identified terminal sensor;
a configuration unit 440, configured to configure the gateway device with configuration data corresponding to the gateway device, and configure the terminal sensor with configuration data corresponding to the terminal sensor, so that the gateway device establishes a communication connection with the terminal sensor.
The specific details of the configuration apparatus for establishing a communication connection provided in the embodiments of the present application have been described in detail in the corresponding method embodiments, and are not described herein again.
Fig. 5 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the present application.
It should be noted that the computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501 that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the random access memory 503, various programs and data necessary for system operation are also stored. The central processor 501, the read only memory 502 and the random access memory 503 are connected to each other via a bus 504. An Input/Output interface 505(Input/Output interface, i.e., I/O interface) is also connected to the bus 504.
The following components are connected to the input/output interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a local area network card, modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the input/output interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the central processor 501, performs various functions defined in the system of the present application.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A configuration method for establishing a communication connection is characterized in that the established communication connection is a communication connection between a gateway device and a terminal sensor; the gateway equipment is connected with the terminal sensor through a network cable or a serial bus, and the method comprises the following steps:
acquiring a plurality of candidate sensor parameters, and respectively sending test instructions to the terminal sensors according to the candidate sensor parameters;
acquiring and analyzing the response of the terminal sensor to the test instruction, and identifying the terminal sensor according to the response;
generating configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor according to the identified terminal sensor;
and configuring the gateway equipment by using the configuration data corresponding to the gateway equipment, and configuring the terminal sensor by using the configuration data corresponding to the terminal sensor so as to establish communication connection between the gateway equipment and the terminal sensor.
2. The method of claim 1, wherein the generating configuration data corresponding to the gateway device and the generating configuration data corresponding to the terminal sensor according to the terminal sensor that has been identified comprises:
acquiring configuration data corresponding to the gateway device and configuration data corresponding to the terminal sensor from a standard configuration database according to the identified terminal sensor, wherein the standard configuration database has a mapping relation between the terminal sensor and the configuration data corresponding to the gateway device and the configuration data corresponding to the terminal sensor;
and sending a configuration suggestion corresponding to the configuration data to a user terminal, so that the gateway equipment is configured by the configuration data corresponding to the gateway equipment and the terminal sensor is configured by the configuration data corresponding to the terminal sensor under the condition that the user accepts the configuration suggestion.
3. The method of claim 2, wherein before obtaining the configuration data corresponding to the gateway device and the configuration data corresponding to the terminal sensor from a standard configuration database according to the identified terminal sensor, the method further comprises:
acquiring various sensors and configuration data corresponding to the sensors respectively, wherein the configuration data comprises configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensors;
training an initial model according to the sensor, the configuration data and the corresponding relation between the sensor and the configuration data to generate a target configuration model;
and generating a standard configuration database according to the target configuration model.
4. The method of claim 1, wherein the obtaining a plurality of candidate sensor parameters comprises:
acquiring an application scene of the gateway equipment;
determining a plurality of candidate sensors capable of being applied to the application scene according to the application scene;
and acquiring a plurality of candidate sensor parameters according to the plurality of candidate sensors.
5. The method of claim 4, wherein the obtaining the application scenario of the gateway device comprises:
acquiring scene information of the gateway equipment, wherein the scene information comprises external environment information and/or requirement information;
and generating an application scene of the gateway equipment according to the external environment information and/or the requirement information.
6. The method of claim 1, further comprising:
acquiring connection change information of the terminal sensor connected to the gateway device;
and updating the configuration data according to the connection change information.
7. The method of claim 1, wherein generating the configuration data for establishing the communication connection based on the identified terminal sensor comprises:
acquiring and storing a control instruction corresponding to the terminal sensor according to the identified terminal sensor;
and controlling the terminal sensor according to the control instruction.
8. A configuration system for establishing a communication connection, characterized in that the established communication connection is a communication connection between a gateway device and a terminal sensor, the system comprising:
the gateway equipment is connected with the terminal sensor through a network cable or a serial bus;
the user terminal is connected with the gateway device through a cloud server, the user terminal or the cloud server is configured with a configuration platform, and the configuration platform is used for simulating the gateway device to send a test instruction to the terminal sensor; acquiring and analyzing the response of the terminal sensor to the test instruction; identifying the terminal sensor according to the response; generating configuration data corresponding to the gateway equipment and configuration data corresponding to the terminal sensor according to the identified terminal sensor; and configuring the gateway equipment by using the configuration data corresponding to the gateway equipment, and configuring the terminal sensor by using the configuration data corresponding to the terminal sensor so as to establish communication connection between the gateway equipment and the terminal sensor.
9. The configuration system of claim 8, wherein the system further comprises:
the interface device is used for connecting the terminal sensor; the interface device comprises a communication module, and the communication module is used for acquiring the response of the terminal sensor to the test instruction and sending the response to the configuration platform.
10. The configuration system according to claim 9, wherein the interface device further comprises an instruction recognition module, and the instruction recognition module is configured to receive a control instruction and send the control instruction to the terminal sensor corresponding to the control instruction.
CN202111575435.5A 2021-12-20 Configuration method and system for establishing communication connection Active CN114268650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111575435.5A CN114268650B (en) 2021-12-20 Configuration method and system for establishing communication connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111575435.5A CN114268650B (en) 2021-12-20 Configuration method and system for establishing communication connection

Publications (2)

Publication Number Publication Date
CN114268650A true CN114268650A (en) 2022-04-01
CN114268650B CN114268650B (en) 2024-07-02

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114590644A (en) * 2022-04-12 2022-06-07 浙江恒强科技股份有限公司 Method and device for setting identifier of length control instrument of silk winder and silk winder

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202390A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Method and system for managing wireless sensor node
CN102469553A (en) * 2010-11-19 2012-05-23 中兴通讯股份有限公司 Method and system for accessing wireless sensor network
CN103312532A (en) * 2012-10-17 2013-09-18 中兴通讯股份有限公司 Method and system for automatically removing fault of IOT (Internet of Things) gateway
CN111869188A (en) * 2018-04-27 2020-10-30 横河电机株式会社 Management apparatus, management method, and program
US11113946B1 (en) * 2020-05-28 2021-09-07 Hitachi, Ltd. Method and system for determining correspondence relationship between sensing target and sensor
CN113572782A (en) * 2021-07-30 2021-10-29 广东机电职业技术学院 Internet of things gateway supporting multiple sensor networks and implementation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202390A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Method and system for managing wireless sensor node
CN102469553A (en) * 2010-11-19 2012-05-23 中兴通讯股份有限公司 Method and system for accessing wireless sensor network
CN103312532A (en) * 2012-10-17 2013-09-18 中兴通讯股份有限公司 Method and system for automatically removing fault of IOT (Internet of Things) gateway
CN111869188A (en) * 2018-04-27 2020-10-30 横河电机株式会社 Management apparatus, management method, and program
US11113946B1 (en) * 2020-05-28 2021-09-07 Hitachi, Ltd. Method and system for determining correspondence relationship between sensing target and sensor
CN113572782A (en) * 2021-07-30 2021-10-29 广东机电职业技术学院 Internet of things gateway supporting multiple sensor networks and implementation method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114590644A (en) * 2022-04-12 2022-06-07 浙江恒强科技股份有限公司 Method and device for setting identifier of length control instrument of silk winder and silk winder
CN114590644B (en) * 2022-04-12 2024-04-05 浙江恒强科技股份有限公司 Method and device for setting marks of yarn winder length-fixing instrument and yarn winder

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN109582588B (en) Test case generation method and device and electronic equipment
CN109740222B (en) Testing device and system for automobile networking scene
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN113364115B (en) Power cable information comprehensive processing system and method
CN116300681B (en) Automatic wiring monitoring method and system for PLC
CN113313280A (en) Cloud platform inspection method, electronic equipment and nonvolatile storage medium
CN111651482A (en) Data acquisition method and device
CN114020400A (en) NoVNC-based remote virtual simulation method, system, device and medium
CN113407469A (en) Parameter configuration method and device, storage medium and electronic device
Surya et al. Dashboard for Industrial Load Control and Remote Power Factor Correction Based on Adafruit's MQTT
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN114268650B (en) Configuration method and system for establishing communication connection
CN114268650A (en) Configuration method and system for establishing communication connection
CN109270885B (en) Data communication method, device and equipment for monitoring PLC system and storage medium
CN114064485A (en) Software testing method, system, computer equipment and readable storage medium
CN113364625B (en) Data transmission method, intermediate transmission equipment and storage medium
CN113179181B (en) Data acquisition method, device and system, data processing device and electronic equipment
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium
CN114116497A (en) Test method and device and server
CN109491986B (en) Fire-fighting parameter configuration method and device and terminal equipment
CN112527453A (en) Virtualization information simulation system, method and computer-readable storage medium
CN116095117B (en) Vehicle-mounted terminal debugging method and device, electronic equipment and storage medium
US20220368780A1 (en) Assembly type edge system

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
GR01 Patent grant