Hart device control method, device, system and equipment based on mobile phone

By establishing a communication connection of Hart equipment on the mobile phone and sending corresponding instructions using control software, the problem of cumbersome Hart equipment control in the existing technology is solved, and convenient and efficient equipment control is achieved.

CN116915895BActive Publication Date: 2025-05-09HUANENG NANJING JINLING POWER GENERATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310671604.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2025-05-09
Estimated Expiration
2043-06-07

AI Technical Summary

Technical Problem

In the prior art, the process of reading parameters such as Hart equipment failure information is cumbersome and lacks convenient control methods.

Method used

By establishing a communication connection between the mobile phone and the Hart device, the control software on the mobile phone is used to send control instructions, including device information reading, changing, configuration file export and import instructions, realizing direct control of the Hart device.

Benefits of technology

Simplifies the Hart equipment control process, improves operational convenience and efficiency, and avoids the use of additional hand-computers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116915895B_ABST
    Figure CN116915895B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, system and equipment for controlling a Hart device based on a mobile phone, the method comprising: establishing a communication connection with a mobile phone, the mobile phone being installed with control software for the Hart device; receiving device information reading instructions, device information changing instructions, configuration file exporting instructions and configuration file importing instructions from the control software of the Hart device; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information changing instructions, adjusting the working parameters of the Hart device; based on the configuration file exporting instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file importing instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information, so that the Hart device can be directly controlled through the mobile phone without the need for an additional hand operator, which is more convenient and efficient for the staff.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial control technology, and in particular to a mobile phone-based Hart device control method, device, system and equipment. Background Art

[0002] With the development of microprocessor technology, various intelligent devices have begun to be widely used in various industrial sites, such as pressure transmitters, temperature transmitters, etc. Most of these intelligent devices support the Hart protocol, collectively referred to as Hart devices. In many industrial field controls, such as coal-fired power plants, it is necessary to measure the field conditions and process the measured industrial parameters to control the operation of the field Hart devices. The maintenance of various field transmitters and other Hart devices is the key to ensuring safe production and stable system operation.

[0003] However, in the long-term operation process, when the intelligent HART device fails, the fault information of the HART device is mostly read through a handheld operator device, and the operation is relatively cumbersome. Summary of the invention

[0004] The present invention provides a method, device, system and equipment for controlling a Hart device based on a mobile phone, so as to solve the relative defects of the process of reading parameters such as fault information of the Hart device in the prior art.

[0005] The present invention provides a Hart device control method based on a mobile phone, comprising:

[0006] Establishing a communication connection with a mobile phone, wherein the mobile phone is installed with control software for the Hart device;

[0007] Receiving control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information changing instructions, configuration file export instructions and configuration file import instructions;

[0008] Based on the device information reading instruction, obtain the working data of the Hart device and send it to the mobile phone;

[0009] Based on the device information change instruction, adjust the working parameters of the Hart device;

[0010] Based on the configuration file export instruction, generate a configuration file from the working parameters, and export the configuration file to the mobile phone;

[0011] Based on the configuration file import instruction, the configuration parameters of the configuration file are imported into the Hart device according to the arrangement rule of the configuration information.

[0012] According to a mobile phone-based Hart device control method provided by the present invention, establishing a communication connection with the mobile phone includes:

[0013] The protocol conversion module and the communication module are connected to the USB interface of the mobile phone to achieve communication connection with the mobile phone.

[0014] According to a mobile phone-based Hart device control method provided by the present invention, the receiving of a control instruction from the control software of the Hart device comprises:

[0015] Reading control instructions of the control software of the Hart device through the communication module;

[0016] Convert the control instruction into a Hart protocol control instruction by the protocol conversion module;

[0017] Read and parse the Hart protocol control instructions.

[0018] According to a mobile phone-based Hart device control method provided by the present invention, the device information reading instruction is based on which the working data of the Hart device is obtained and sent to the mobile phone, including:

[0019] Collecting measurement data, output current milliampere value, measurement upper limit value, measurement lower limit value and fault information of the Hart device;

[0020] The measurement data, the output current mA value, the measurement upper limit value, the measurement lower limit value and the fault information are converted into a Hart protocol format, and packaged in a byte combination and sent to the mobile phone.

[0021] According to a mobile phone-based Hart device control method provided by the present invention, the method of adjusting the working parameters of the Hart device based on the device information change instruction includes:

[0022] Identify the working parameter change content in the change instruction, wherein the working parameter change content includes changing the measurement upper limit value, changing the measurement lower limit value, changing the output current upper limit value, changing the output current lower limit value and changing the transmitter address;

[0023] The Hart device is controlled to work according to the change of the measurement upper limit value, the change of the measurement lower limit value, the change of the output current upper limit value, the change of the output current lower limit value and the change of the transmitter address.

[0024] According to a mobile phone-based Hart device control method provided by the present invention, the configuration file is generated from the working parameters based on the configuration file export instruction, and the configuration file is exported to the mobile phone, including:

[0025] After identifying the configuration file export instruction, encoding the working parameters;

[0026] A configuration file is generated based on the encoded rule, and the configuration file is sent to the mobile phone for local storage.

[0027] According to a mobile phone-based Hart device control method provided by the present invention, the configuration parameters of the configuration file are imported into the Hart device based on the configuration file import instruction according to the arrangement rule of the configuration information, including:

[0028] After identifying the configuration file import instruction, parsing the configuration information in the configuration file, the configuration information is set by the mobile phone;

[0029] The Hart device is configured based on the device parameters in the configuration information.

[0030] The present invention also provides a Hart device control device based on a mobile phone, comprising:

[0031] A communication module, used to establish a communication connection with a mobile phone, wherein the mobile phone is installed with control software for the Hart device;

[0032] A receiving module, used to receive control instructions from the control software of the Hart device, wherein the control instructions include device information reading instructions, device information change instructions, configuration file export instructions, and configuration file import instructions;

[0033] A control module is used to obtain the working data of the Hart device and send it to the mobile phone based on the device information reading instruction; adjust the working parameters of the Hart device based on the device information change instruction; generate a configuration file with the working parameters based on the configuration file export instruction, and export the configuration file to the mobile phone; import the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information based on the configuration file import instruction.

[0034] The present invention also provides a mobile phone-based Hart device control system, comprising: a communication line, a Hart device and a mobile phone;

[0035] The Hart device is connected to the mobile phone through the communication line;

[0036] The communication line is used to realize the mutual conversion of communication protocols between the Hart device and the mobile phone;

[0037] The mobile phone is used to send control instructions to the Hart device, and the controller of the Hart device is used to control the Hart device through any of the above-mentioned mobile phone-based Hart device control methods.

[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the mobile phone-based Hart device control method described above is implemented.

[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the mobile phone-based Hart device control method as described in any one of the above is implemented.

[0040] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for controlling a Hart device based on a mobile phone.

[0041] The present invention provides a mobile phone-based HART device control method, device, system and equipment, the method comprising: establishing a communication connection with a mobile phone, the mobile phone being installed with control software for the HART device; receiving control instructions from the control software of the HART device, the control instructions comprising device information reading instructions, device information changing instructions, configuration file exporting instructions and configuration file importing instructions; based on the device information reading instructions, obtaining the working data of the HART device and sending it to the mobile phone; based on the device information changing instructions, adjusting the working parameters of the HART device; based on the configuration file exporting instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file importing instructions, importing the configuration parameters of the configuration file to the HART device according to the arrangement rules of the configuration information, so that the control of the HART device can be directly realized through the mobile phone, the control process is concise, and no additional hand operator is required, which is more convenient and efficient for the staff. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 is a flow chart of a method for controlling a Hart device based on a mobile phone provided by an embodiment of the present invention;

[0044] Figure 2This is a schematic diagram of the principle of communication connection between the Hart device and the mobile phone provided by an embodiment of the present invention;

[0045] Figure 3 yes Figure 2 Schematic diagram of the specific principle of communication connection;

[0046] Figure 4 is a schematic diagram of the operation interface of the mobile phone control software provided by an embodiment of the present invention;

[0047] Figure 5 is a structural schematic diagram of a mobile phone-based Hart device control device provided by an embodiment of the present invention;

[0048] Figure 6 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] Combine the following Figure 1-Figure 6 The present invention describes a method, device, system and equipment for controlling a Hart device based on a mobile phone.

[0051] Figure 1 is a flow chart of a method for controlling a Hart device based on a mobile phone provided in an embodiment of the present invention, Figure 2 is a schematic diagram of the principle of communication connection between the Hart device and the mobile phone provided by an embodiment of the present invention, Figure 3 yes Figure 2 Schematic diagram of the specific principle of communication connection, Figure 4 It is a schematic diagram of the operation interface of the mobile phone control software provided by an embodiment of the present invention.

[0052] like Figure 1 As shown, an embodiment of the present invention provides a method for controlling a Hart device based on a mobile phone, the execution subject is a control unit of the Hart device, such as a microprocessor, and the method mainly includes the following steps:

[0053] 101. Establish a communication connection with a mobile phone, where control software for the Hart device is installed.

[0054] In a specific implementation process, an Android phone is used as an example to explain that the control of the Hart device 1 is realized through the Android phone 2, wherein the Hart device 1 refers to a device that supports the Hart protocol, including a voltage transmitter, a temperature transmitter, etc. The control software for the Hart device 1 is installed on the mobile phone 2, and it can be understood that the control of the Hart device 1 is realized through the control software on the mobile phone 2.

[0055] like Figure 2 As shown, it is a schematic diagram of the principle of establishing a communication connection with a mobile phone. The Hart device 1 realizes the communication connection with the mobile phone 2 through the protocol conversion module and the communication module. The connection method is that one end of the communication protocol conversion module is connected to the positive and negative poles of the Hart device, and the other end is directly connected to the USB interface of the mobile phone. Of course, it can be adjusted according to the mobile phone interface, for example, it can be a Type-C interface, etc.

[0056] like Figure 3 The figure shows the detailed schematic diagram of establishing communication connection between Hart device and mobile phone. The communication module is RS485 communication module, and the protocol conversion module uses DS8500 chip to realize protocol conversion. The USB interface of mobile phone is connected with Hart device. The connection method is as follows: Figure 3 As shown, one end of the communication module is connected to the USB interface of the Android phone, and the other end of the communication module is connected to the protocol conversion module. The positive pole of the protocol conversion module is connected to the positive pole of the power supply line of the Hart device, and the negative pole of the protocol conversion module is connected to the negative pole of the Hart device. When the power supply of the on-site Hart device is turned on, the protocol conversion module is connected in parallel to the power supply terminal of the Hart device. The protocol conversion module converts the data packet based on the Hart protocol sent by the Hart device into data based on the RS485 protocol, and transmits it to the mobile phone interface through the Android phone interface for display.

[0057] After establishing a line connection between the Hart device and the mobile phone through the communication protocol conversion module, click the connection option through the control software for the Hart device on the mobile phone. The mobile phone sends a device connection instruction. After receiving the instruction, the microprocessor of the Hart device returns the correct information to the mobile phone, indicating that the communication connection is successfully established, and the connection status is displayed through the software on the mobile phone.

[0058] 102. Receive control instructions from the control software of the Hart device, where the control instructions include device information reading instructions, device information changing instructions, configuration file exporting instructions, and configuration file importing instructions.

[0059] After establishing the communication connection between the Hart device and the mobile phone, you can control the Hart device through the mobile phone. Figure 4The figure shows a schematic diagram of the operation interface of the control software for the Hart device on the mobile phone. In addition to displaying the current connection status and the connection button, it also includes buttons for reading device information, changing device information, exporting configuration files, and importing configuration files. The method for receiving control instructions from the Hart device includes reading control instructions of the control software of the Hart device through a communication module; converting control instructions into Hart protocol control instructions through a protocol conversion module; and reading and parsing Hart protocol control instructions.

[0060] For the mobile phone, if the operator wants to perform the corresponding operation, he can click the corresponding button through the mobile phone interface. Then the microprocessor of the Hart device will receive the control command from the Hart device control module. Among them, after the control command is sent through the mobile phone, it will be converted into the Hart protocol format that the Hart device can recognize, so that the microcontroller of the Hart device can better recognize the control command, accurately identify the device information reading command, device information change command, configuration file export command and configuration file import command, so as to control the Hart device to perform the corresponding operation, and feedback the corresponding operation results to the mobile phone interface for display.

[0061] Among them, the control software of the Hart device is developed based on the Android system. The interface functions are divided into device connection, device information reading, device information change, configuration file export, and configuration file import functions. After the user installs the software on the Android phone, click to enter the software interface. After clicking the device connection function, the handheld operator software sends out a Hart device connection instruction based on the RS485 protocol, which is then converted into a Hart instruction through a dedicated communication line and transmitted to the intelligent Hart device microprocessor. After receiving the connection instruction, the microprocessor returns the response data information and uses the dedicated communication line to convert it from the Hart protocol to the RS485 protocol information that the mobile phone can process. After the handheld operator software confirms that the returned information is correct, the device is successfully connected and the current connection status is displayed in real time above the software interface.

[0062] 103. Based on the device information reading instruction, obtain the working data of the Hart device and send it to the mobile phone.

[0063] If the control instruction is identified as a device information reading instruction, that is, the user clicks the device information reading button through the mobile phone, the control software of the Hart device on the mobile phone will issue a Hart device information reading instruction based on the RS485 protocol, and the communication module and the communication protocol conversion module will convert the device information reading instruction into a Hart instruction and transmit it to the Hart device microprocessor. The microprocessor will control the collection of at least one of the measurement data, output current mA value, measurement upper limit value, measurement lower limit value and fault information of the Hart device; when the measurement data, output current mA value, measurement upper limit value, measurement lower limit value and fault information are all included, then the measurement data, output current mA value, measurement upper limit value, measurement lower limit value and fault information are converted into the Hart protocol format, and packaged in the form of byte combination and sent to the mobile phone.

[0064] The control software on the mobile phone decodes the received data information according to the RS485 communication protocol and displays all the information on the parameter display interface. The microprocessor of the intelligent Hart device will continuously transmit the relevant data information to the mobile phone interface at the set time interval to achieve the function of real-time data display.

[0065] 104. Based on the device information change instruction, adjust the working parameters of the Hart device.

[0066] If the control instruction is identified as a device information change instruction, that is, the user clicks the device information change button on the mobile phone, the device information change interface of the control software will be entered. There is an input box in the change interface, and the corresponding working parameter changes can be entered, including changing the upper limit of measurement, changing the lower limit of measurement, changing the upper limit of output current, changing the lower limit of output current, and changing the transmitter address. After entering all the information, click Save, and then click Send, a confirmation box will pop up. After confirming the change of device information, the control software will package all the working parameter changes into a data packet, and according to the device information change instruction format of the Hart instruction set, the instruction and data will be converted into Hart information through a dedicated communication line in the RS485 protocol format and transmitted to the microprocessor of the Hart device.

[0067] After receiving the device information change instruction, the microprocessor identifies the working parameter change content in the change instruction, and the working parameter change content includes at least one of changing the measurement upper limit value, changing the measurement lower limit value, changing the output current upper limit value, changing the output current lower limit value and changing the transmitter address; the Hart device is controlled to work according to the change of the measurement upper limit value, the change of the measurement lower limit value, the change of the output current upper limit value, the change of the output current lower limit value and the change of the transmitter address, that is, the measurement and data transmission are performed according to the data after the change.

[0068] 105. Based on the configuration file export instruction, generate a configuration file with the working parameters, and export the configuration file to the mobile phone.

[0069] If the control instruction is identified as a configuration file export instruction, that is, when the user clicks the configuration file export function through the control software, the control software will first issue a configuration file export instruction based on the RS485 protocol according to the Hart instruction format. The protocol conversion module converts the RS485 protocol instruction into a configuration file export instruction of the Hart protocol and transmits it to the microprocessor of the Hart device.

[0070] After the microprocessor recognizes the configuration file export instruction, it encodes the working parameters, generates the configuration file based on the encoded rules, and sends the configuration file to the mobile phone for local storage so as to analyze the Hart device.

[0071] Alternatively, after the microprocessor recognizes the configuration file export instruction, it returns the various parameters of the current Hart device to the control software through the protocol conversion module and the communication module. The control software decodes the received data and saves it to the configuration text file according to the arrangement rules of the configuration information, and saves it locally on the mobile phone to analyze the Hart device.

[0072] 106. Based on the configuration file import instruction, the configuration parameters of the configuration file are imported into the Hart device according to the arrangement rule of the configuration information.

[0073] If the control instruction is identified as a configuration file import instruction, that is, when the user clicks the configuration file import function through the control software, the user enters the configuration information into the configuration file according to the arrangement rules of the configuration information. After clicking the configuration file import, the file containing the configuration information is selected. After the control software reads the internal information of the configuration file, the device information change instruction of the Hart instruction set is added to the front end of the information, and they are packaged together as data in RS485 format. After clicking send and confirming, the data will be transmitted to the microprocessor of the Hart device through the communication module and the protocol conversion module.

[0074] After identifying the configuration file import instruction, the microprocessor parses the configuration information in the configuration file, which is set through the mobile phone; the Hart device is configured based on the device parameters in the configuration information, so that measurement and data transmission are performed according to the newly configured device parameters.

[0075] It should be noted that there is no specific order of steps 103 , 104 , 105 and 106 .

[0076] A mobile phone-based Hart device control method provided in this embodiment includes: establishing a communication connection with a mobile phone, the mobile phone is installed with control software for the Hart device; receiving control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information change instructions, configuration file export instructions and configuration file import instructions; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information change instructions, adjusting the working parameters of the Hart device; based on the configuration file export instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file import instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information, so that the Hart device can be directly controlled through the mobile phone, the control process is simple, and no additional hand operator is required, which is more convenient and efficient for the staff.

[0077] Based on the same general inventive concept, the present invention also protects a mobile phone-based Hart device control device. The mobile phone-based Hart device control device provided by the present invention is described below. The mobile phone-based Hart device control device described below and the mobile phone-based Hart device control method described above can be referenced to each other.

[0078] Figure 5 It is a structural schematic diagram of a mobile phone-based Hart device control device provided in an embodiment of the present invention.

[0079] like Figure 5 As shown, an embodiment of the present invention provides a mobile phone-based Hart device control device, comprising:

[0080] The communication module 501 is used to establish a communication connection with a mobile phone, and the mobile phone is installed with control software for the Hart device;

[0081] A receiving module 502 is used to receive control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information change instructions, configuration file export instructions and configuration file import instructions;

[0082] The control module 503 is used to obtain the working data of the Hart device and send it to the mobile phone based on the device information reading instruction; adjust the working parameters of the Hart device based on the device information change instruction; generate a configuration file with the working parameters based on the configuration file export instruction, and export the configuration file to the mobile phone; import the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information based on the configuration file import instruction.

[0083] A mobile phone-based Hart device control device provided in this embodiment includes: establishing a communication connection with a mobile phone, the mobile phone is installed with control software for the Hart device; receiving control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information change instructions, configuration file export instructions and configuration file import instructions; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information change instructions, adjusting the working parameters of the Hart device; based on the configuration file export instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file import instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information, so that the Hart device can be directly controlled through the mobile phone, the control process is simple, and no additional hand operator is required, which is more convenient and efficient for the staff.

[0084] Furthermore, the communication module 501 in this embodiment is specifically used for:

[0085] The protocol conversion module and the communication module are connected to the USB interface of the mobile phone to achieve communication connection with the mobile phone.

[0086] Furthermore, the receiving module 502 in this embodiment is specifically used for:

[0087] Reading control instructions of the control software of the Hart device through the communication module;

[0088] Convert the control instruction into a Hart protocol control instruction by the protocol conversion module;

[0089] Read and parse the Hart protocol control instructions.

[0090] Furthermore, the control module 503 in this embodiment is specifically used for:

[0091] Collecting measurement data, output current milliampere value, measurement upper limit value, measurement lower limit value and fault information of the Hart device;

[0092] The measurement data, the output current mA value, the measurement upper limit value, the measurement lower limit value and the fault information are converted into a Hart protocol format, and packaged in a byte combination and sent to the mobile phone.

[0093] Furthermore, the control module 503 in this embodiment is specifically used for:

[0094] Identify the working parameter change content in the change instruction, wherein the working parameter change content includes changing the measurement upper limit value, changing the measurement lower limit value, changing the output current upper limit value, changing the output current lower limit value and changing the transmitter address;

[0095] The Hart device is controlled to work according to the change of the measurement upper limit value, the change of the measurement lower limit value, the change of the output current upper limit value, the change of the output current lower limit value and the change of the transmitter address.

[0096] Furthermore, the control module 503 in this embodiment is specifically used for:

[0097] After identifying the configuration file export instruction, encoding the working parameters;

[0098] A configuration file is generated based on the encoded rule, and the configuration file is sent to the mobile phone for local storage.

[0099] Furthermore, the control module 503 in this embodiment is specifically used for:

[0100] After identifying the configuration file import instruction, parsing the configuration information in the configuration file, the configuration information is set by the mobile phone;

[0101] The Hart device is configured based on the device parameters in the configuration information.

[0102] Based on the same general inventive concept, the present invention also protects a mobile phone-based Hart device control system, including: a communication line, a Hart device and a mobile phone; the Hart device is connected to the mobile phone through the communication line; the communication line is used to realize the mutual conversion of communication protocols between the Hart device and the mobile phone; the mobile phone is used to send control instructions to the Hart device, and the controller of the Hart device is used to control the Hart device through the mobile phone-based Hart device control method such as any of the above embodiments.

[0103] Figure 6 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0104] like Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the mobile phone-based Hart device control method, the method comprising: establishing a communication connection with a mobile phone, the mobile phone being installed with control software for the Hart device; receiving control instructions from the control software of the Hart device, the control instructions comprising device information reading instructions, device information change instructions, configuration file export instructions and configuration file import instructions; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information change instructions, adjusting the working parameters of the Hart device; based on the configuration file export instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file import instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information.

[0105] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0106] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the mobile phone-based Hart device control method provided by the above methods, the method including: establishing a communication connection with a mobile phone, the mobile phone is installed with control software for the Hart device; receiving control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information change instructions, configuration file export instructions and configuration file import instructions; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information change instructions, adjusting the working parameters of the Hart device; based on the configuration file export instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file import instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information.

[0107] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the mobile phone-based Hart device control method provided by the above-mentioned methods, the method comprising: establishing a communication connection with a mobile phone, the mobile phone having installed thereon control software for the Hart device; receiving control instructions from the control software of the Hart device, the control instructions comprising device information reading instructions, device information changing instructions, configuration file exporting instructions and configuration file importing instructions; based on the device information reading instructions, obtaining the working data of the Hart device and sending it to the mobile phone; based on the device information changing instructions, adjusting the working parameters of the Hart device; based on the configuration file exporting instructions, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file importing instructions, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information.

[0108] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A Hart device control method based on a mobile phone, characterized in that: include: Establishing a communication connection with a mobile phone, wherein the mobile phone is installed with control software for the Hart device; Receiving control instructions from the control software of the Hart device, the control instructions including device information reading instructions, device information changing instructions, configuration file export instructions and configuration file import instructions; Based on the device information reading instruction, the working data of the Hart device is obtained and sent to the mobile phone, including: collecting the measurement data, the output current mA value, the measurement upper limit value, the measurement lower limit value and the fault information of the Hart device; converting the measurement data, the output current mA value, the measurement upper limit value, the measurement lower limit value and the fault information into the Hart protocol format, and packaging them in the form of byte combination and sending them to the mobile phone; Based on the device information change instruction, adjusting the working parameters of the Hart device includes: identifying the working parameter change content in the change instruction, wherein the working parameter change content includes changing the measurement upper limit value, changing the measurement lower limit value, changing the output current upper limit value, changing the output current lower limit value, and changing the transmitter address; controlling the Hart device to work according to the change of the measurement upper limit value, the change of the measurement lower limit value, the change of the output current upper limit value, the change of the output current lower limit value, and the change of the transmitter address; Based on the configuration file export instruction, generate a configuration file from the working parameters, and export the configuration file to the mobile phone; Based on the configuration file import instruction, the configuration parameters of the configuration file are imported into the Hart device according to the arrangement rule of the configuration information.

2. The method for controlling Hart equipment based on a mobile phone according to claim 1, characterized in that: The establishing of a communication connection with the mobile phone comprises: The protocol conversion module and the communication module are connected to the USB interface of the mobile phone to achieve communication connection with the mobile phone.

3. The method for controlling Hart equipment based on a mobile phone according to claim 2, characterized in that: The receiving of the control instruction from the control software of the Hart device comprises: Reading control instructions of the control software of the Hart device through the communication module; Convert the control instruction into a Hart protocol control instruction by the protocol conversion module; Read and parse the Hart protocol control instructions.

4. The method for controlling Hart equipment based on a mobile phone according to claim 1, characterized in that: The step of generating a configuration file from the working parameters based on the configuration file export instruction, and exporting the configuration file to the mobile phone includes: After identifying the configuration file export instruction, encoding the working parameters; A configuration file is generated based on the encoded rule, and the configuration file is sent to the mobile phone for local storage.

5. The method for controlling Hart device based on mobile phone according to claim 1, characterized in that: The method of importing the configuration parameters of the configuration file into the Hart device based on the configuration file import instruction and according to the arrangement rule of the configuration information includes: After identifying the configuration file import instruction, parsing the configuration information in the configuration file, the configuration information is set by the mobile phone; The Hart device is configured based on the device parameters in the configuration information.

6. A mobile phone-based Hart device control device, characterized in that: include: A communication module, used to establish a communication connection with a mobile phone, wherein the mobile phone is installed with control software for the Hart device; A receiving module, used to receive control instructions from the control software of the Hart device, wherein the control instructions include device information reading instructions, device information change instructions, configuration file export instructions, and configuration file import instructions; A control module is used to obtain the working data of the Hart device based on the device information reading instruction and send it to the mobile phone, including: collecting the measurement data, output current mA value, measurement upper limit value, measurement lower limit value and fault information of the Hart device; converting the measurement data, the output current mA value, the measurement upper limit value, the measurement lower limit value and the fault information into the Hart protocol format, and packaging and sending them to the mobile phone in the form of byte combination; adjusting the working parameters of the Hart device based on the device information change instruction, including: identifying the working parameter change content in the change instruction, the working parameter change content includes changing the measurement upper limit value, changing the measurement lower limit value, changing the output current upper limit value, changing the output current lower limit value and changing the transmitter address; controlling the Hart device to work according to the change of the measurement upper limit value, the change of the measurement lower limit value, the change of the output current upper limit value, the change of the output current lower limit value and the change of the transmitter address; based on the configuration file export instruction, generating a configuration file from the working parameters, and exporting the configuration file to the mobile phone; based on the configuration file import instruction, importing the configuration parameters of the configuration file to the Hart device according to the arrangement rules of the configuration information.

7. A mobile phone-based Hart device control system, characterized in that: include: communications lines, Hart equipment and cell phones; The Hart device is connected to the mobile phone through the communication line; The communication line is used to realize the mutual conversion of communication protocols between the Hart device and the mobile phone; The mobile phone is used to send control instructions to the Hart device, and the controller of the Hart device is used to control the Hart device through the mobile phone-based Hart device control method as described in any one of claims 1 to 5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the mobile phone-based Hart device control method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for interconnecting sensor network and mobile terminal and network connection equipment

    CN101827007A

  • Equipment control system and control method

    CN103676911A