CN111400118B - Method and system for creating serial port command for online function file - Google Patents

Method and system for creating serial port command for online function file Download PDF

Info

Publication number
CN111400118B
CN111400118B CN202010182988.3A CN202010182988A CN111400118B CN 111400118 B CN111400118 B CN 111400118B CN 202010182988 A CN202010182988 A CN 202010182988A CN 111400118 B CN111400118 B CN 111400118B
Authority
CN
China
Prior art keywords
function point
function
data
point data
exception
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.)
Active
Application number
CN202010182988.3A
Other languages
Chinese (zh)
Other versions
CN111400118A (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.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202010182988.3A priority Critical patent/CN111400118B/en
Publication of CN111400118A publication Critical patent/CN111400118A/en
Application granted granted Critical
Publication of CN111400118B publication Critical patent/CN111400118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • G06F11/2635Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers using a storage for the test inputs, e.g. test ROM, script files

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a serial port command creation method for an online function file, which comprises the following steps: the server generates functional point data; the server sends the function point data to an upper computer; the upper computer receives and displays the function point data; inputting user data corresponding to the function point data; and generating command data according to the user data. Compared with the prior art, the application has the following beneficial effects: the application relates to a method for generating corresponding function command data according to a specified rule based on a function point file generated by on-line creation equipment. In the test and verification of the function point of the equipment, the method can be used for quickly generating correct or appointed abnormal command data required by the function point test according to the intention of a tester, and is beneficial to improving the efficiency of the function point test and the stability of a command word receiver.

Description

Method and system for creating serial port command for online function file
Technical Field
The application relates to the field of equipment function point testing, in particular to a serial port command creation method aiming at an online function file.
Background
The result of the equipment function point verification can clearly reflect the quality of the equipment and whether the equipment meets the design requirement, and is a very important quality index of the equipment. In actual production quality control, functional point testing has also been emphasized. The current test and development can test the functional points frequently, and the functional points not only contain correct instructions, but also contain instructions in abnormal conditions. The function point instruction has a large difference due to the difference of own protocol definition, device type, transmission protocol and the like.
In daily work, manual generation is feasible for function points with simple functions, but the work efficiency is not high, and the maintenance of commands is not a small burden. Although tools for solving the problems exist, the problems can be solved in an efficient way instead of manual work, the tools are single, only one protocol can be processed, and after the protocols are switched, other tools are required to be opened, so that a plurality of tools are required to be opened to process the independent problems, and a certain confusion is caused; or the exception types are few, the generated command data types are insufficient to verify reliability and robustness.
Disclosure of Invention
The main purpose of the present application is to provide a serial port command creation method for an online function file, comprising:
the server generates functional point data;
the server sends the function point data to an upper computer;
the upper computer receives and displays the function point data;
inputting user data corresponding to the function point data;
and generating command data according to the user data.
Optionally, inputting user data corresponding to the function point data includes:
a protocol type is selected.
Optionally, inputting user data corresponding to the function point data further includes:
a command word is selected.
Optionally, inputting user data corresponding to the function point data further includes:
the anomaly type is selected.
Optionally, the anomaly type includes: frame header anomalies, version anomalies, or DPID anomalies.
Optionally, the function point data includes: function name, type, or value type.
According to another aspect of the present application, there is also provided a serial port command creation system for an online function file, including:
the function point data generating module is used for generating function point data by the server;
the sending module is used for sending the function point data to the upper computer by the server;
the receiving module is used for receiving and displaying the function point data by the upper computer;
the input module is used for inputting user data corresponding to the function point data;
and the command generation module is used for generating command data according to the user data.
The application also discloses a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the method of any one of the above when executing the computer program.
The application also discloses a computer readable storage medium, a non-volatile readable storage medium having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
The application also discloses a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the preceding claims.
Compared with the prior art, the application has the following beneficial effects:
the application relates to a method for generating corresponding function command data according to a specified rule based on a function point file generated by on-line creation equipment. In the test and verification of the function point of the equipment, the method can be used for quickly generating correct or appointed abnormal command data required by the function point test according to the intention of a tester, and is beneficial to improving the efficiency of the function point test and the stability of a command word receiver.
The application integrates the currently used four protocols of ZigBee, wi-Fi and NB-IoT, bluetooth, and a user can generate command data of all protocol function points by only one tool. The method also comprises enough exception types, and the generated exception command data can accurately and effectively verify the correctness, reliability and stability of the function. For development and test, the working quality can be ensured to the greatest extent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, are incorporated in and constitute a part of this specification. The drawings and their description are illustrative of the application and are not to be construed as unduly limiting the application. In the drawings:
FIG. 1 is a flow diagram of a serial port command creation method for an online function file according to one embodiment of the application;
FIG. 2 is a flow diagram of a serial port command creation method for online function files according to one embodiment of the application;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the application; and
FIG. 4 is a schematic diagram of a computer-readable storage medium according to one embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1-2, an embodiment of the present application provides a serial port command creation method for an online function file, including:
s2: the server generates functional point data;
s4: the server sends the function point data to an upper computer;
s6: the upper computer receives and displays the function point data;
s8: inputting user data corresponding to the function point data;
s10: and generating command data according to the user data.
In this embodiment, an upper computer and a cloud service are required to be used as a bearer, the cloud service is used as a data source of a functional point, and the upper computer generates data according to user intention.
Firstly, generating a device on line, and generating corresponding function point data by the cloud service according to the action. Function point command data generation: and the upper computer software displays the function according to the function point file issued by the cloud service, the user inputs corresponding data according to the page flow, and finally command data of the specified rule is generated.
In one embodiment of the present application, inputting user data corresponding to the function point data includes:
a protocol type is selected.
Firstly, generating a device on line, and generating corresponding function point data by the cloud service according to the action. Function point command data generation: and the upper computer software displays the function according to the function point file issued by the cloud service, the user selects the protocol type according to the page flow, and finally command data of the specified rule is generated.
In an embodiment of the present application, inputting the user data corresponding to the function point data further includes:
a command word is selected.
Firstly, generating a device on line, and generating corresponding function point data by the cloud service according to the action. Function point command data generation: and the upper computer software displays the function according to the function point file issued by the cloud service, the user selects the protocol type according to the page flow, then selects the command word, and finally generates command data of the specified rule.
In an embodiment of the present application, inputting the user data corresponding to the function point data further includes:
the anomaly type is selected.
Firstly, generating a device on line, and generating corresponding function point data by the cloud service according to the action. Function point command data generation: and the upper computer software displays the function according to the function point file issued by the cloud service, the user selects the protocol type according to the page flow, then selects the command word and the abnormal type, and finally generates command data with specified rules.
In one embodiment of the present application, the exception types include: frame header anomalies, version anomalies, or DPID anomalies.
Firstly, generating a device on line, and generating corresponding function point data by the cloud service according to the action. Function point command data generation: and the upper computer software selects a protocol type according to the page flow by a user according to the function point file display function issued by the cloud service, then selects a command word and an exception type, namely selects one or more items among frame header exception, version exception or DPID exception, or selects no exception, and finally generates command data of a specified rule.
In one embodiment of the present application, the function point data includes: function name, type, or value type.
First, a device is generated online, and the cloud service generates a function name, type or value type according to the function name, type or value type in the action. Function point command data generation: and the upper computer software selects a protocol type according to the page flow by a user according to the function point file display function issued by the cloud service, then selects a command word and an exception type, namely selects one or more items among frame header exception, version exception or DPID exception, or selects no exception, and finally generates command data of a specified rule.
In an embodiment of the present application, there is also provided a serial port command creation system for an online function file, including:
the function point data generating module is used for generating function point data by the server;
the sending module is used for sending the function point data to the upper computer by the server;
the receiving module is used for receiving and displaying the function point data by the upper computer;
the input module is used for inputting user data corresponding to the function point data;
and the command generation module is used for generating command data according to the user data.
Compared with the prior art, the application has the following beneficial effects:
the application relates to a method for generating corresponding function command data according to a specified rule based on a function point file generated by on-line creation equipment. In the test and verification of the function point of the equipment, the method can be used for quickly generating correct or appointed abnormal command data required by the function point test according to the intention of a tester, and is beneficial to improving the efficiency of the function point test and the stability of a command word receiver.
The application integrates the currently used four protocols of ZigBee, wi-Fi and NB-IoT, bluetooth, and a user can generate command data of all protocol function points by only one tool. The method also comprises enough exception types, and the generated exception command data can accurately and effectively verify the correctness, reliability and stability of the function. For development and test, the working quality can be ensured to the greatest extent.
Referring to fig. 3, the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the method of any one of the above when executing the computer program.
Referring to fig. 4, a computer readable storage medium, a non-volatile readable storage medium, has stored therein a computer program which, when executed by a processor, implements the method of any of the above.
A computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the preceding claims.
It will be apparent to those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (4)

1. A serial port command creation method for an online function file, comprising:
the server generates functional point data;
the server sends the function point data to an upper computer;
the upper computer receives and displays the function point data;
inputting user data corresponding to the function point data, wherein the user data comprises a selection protocol type, a selection command word and a selection exception type, and the exception type comprises: frame header exception, version exception or DPID exception, the function point data comprises: function name, type, or value type;
and generating command data according to the user data.
2. A serial port command creation system for an online function file, comprising:
the function point data generating module is used for generating function point data by the server;
the sending module is used for sending the function point data to the upper computer by the server;
the receiving module is used for receiving and displaying the function point data by the upper computer;
the input module is used for inputting user data corresponding to the function point data, and comprises a selection protocol type, a selection command word and a selection exception type, wherein the exception type comprises: frame header exception, version exception or DPID exception, the function point data comprises: function name, type, or value type;
and the command generation module is used for generating command data according to the user data.
3. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of claim 1 when executing the computer program.
4. A computer readable storage medium, in which a computer program is stored which, when being executed by a processor, implements the method according to claim 1.
CN202010182988.3A 2020-03-16 2020-03-16 Method and system for creating serial port command for online function file Active CN111400118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010182988.3A CN111400118B (en) 2020-03-16 2020-03-16 Method and system for creating serial port command for online function file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010182988.3A CN111400118B (en) 2020-03-16 2020-03-16 Method and system for creating serial port command for online function file

Publications (2)

Publication Number Publication Date
CN111400118A CN111400118A (en) 2020-07-10
CN111400118B true CN111400118B (en) 2023-09-26

Family

ID=71430997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010182988.3A Active CN111400118B (en) 2020-03-16 2020-03-16 Method and system for creating serial port command for online function file

Country Status (1)

Country Link
CN (1) CN111400118B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075788A (en) * 2010-12-30 2011-05-25 福建星网视易信息系统有限公司 Automatic detection method and testing device for set top box
CN102681924A (en) * 2011-04-25 2012-09-19 中国电子科技集团公司第三十八研究所 Software-hardware co-verification platform
CN103200249A (en) * 2013-03-26 2013-07-10 大连理工大学 Method for achieving Internet of things intelligent data gateway system
CN105988449A (en) * 2015-03-06 2016-10-05 北新集团建材股份有限公司 Production line monitoring method, remote client, server and upper computer
CN106713118A (en) * 2016-11-29 2017-05-24 深圳信息职业技术学院 Remote control system and method based on intelligent routing and chat room mechanism
CN107515587A (en) * 2017-08-30 2017-12-26 工业和信息化部电子第五研究所华东分所 System, method, apparatus, equipment and the storage medium of man-machine interactive operation emulation
CN107544882A (en) * 2017-08-24 2018-01-05 杭州金盔甲科技有限公司 Multi-channel serial port method of testing and system
CN108563542A (en) * 2018-05-03 2018-09-21 中山市江波龙电子有限公司 A kind of test device, system and test method
CN109450954A (en) * 2018-12-29 2019-03-08 深圳市道通科技股份有限公司 Auto communication interface equipment and its authentication method
WO2019178953A1 (en) * 2018-03-22 2019-09-26 深圳市南霸科技有限公司 Internet-of-things-based intelligent battery state monitoring system
CN110796844A (en) * 2019-11-08 2020-02-14 杭州涂鸦信息技术有限公司 Wireless remote control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7287230B2 (en) * 2000-12-13 2007-10-23 National Instruments Corporation Configuring a GUI element to subscribe to data
US9148499B2 (en) * 2013-01-22 2015-09-29 Blackberry Limited Method and system for automatically identifying voice tags through user operation

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075788A (en) * 2010-12-30 2011-05-25 福建星网视易信息系统有限公司 Automatic detection method and testing device for set top box
CN102681924A (en) * 2011-04-25 2012-09-19 中国电子科技集团公司第三十八研究所 Software-hardware co-verification platform
CN103200249A (en) * 2013-03-26 2013-07-10 大连理工大学 Method for achieving Internet of things intelligent data gateway system
CN105988449A (en) * 2015-03-06 2016-10-05 北新集团建材股份有限公司 Production line monitoring method, remote client, server and upper computer
CN106713118A (en) * 2016-11-29 2017-05-24 深圳信息职业技术学院 Remote control system and method based on intelligent routing and chat room mechanism
CN107544882A (en) * 2017-08-24 2018-01-05 杭州金盔甲科技有限公司 Multi-channel serial port method of testing and system
CN107515587A (en) * 2017-08-30 2017-12-26 工业和信息化部电子第五研究所华东分所 System, method, apparatus, equipment and the storage medium of man-machine interactive operation emulation
WO2019178953A1 (en) * 2018-03-22 2019-09-26 深圳市南霸科技有限公司 Internet-of-things-based intelligent battery state monitoring system
CN108563542A (en) * 2018-05-03 2018-09-21 中山市江波龙电子有限公司 A kind of test device, system and test method
CN109450954A (en) * 2018-12-29 2019-03-08 深圳市道通科技股份有限公司 Auto communication interface equipment and its authentication method
CN110796844A (en) * 2019-11-08 2020-02-14 杭州涂鸦信息技术有限公司 Wireless remote control method

Also Published As

Publication number Publication date
CN111400118A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN105450476B (en) A kind of regression test system and test method
US9419884B1 (en) Intelligent automated testing method for restful web services
CN108446190A (en) interface test method and device
EP3422639A2 (en) Performance testing method and apparatus for an industrial system deployed on cloud
CN105452970A (en) Monitoring control system, monitoring control device, and controller
CN111651365B (en) Automatic interface testing method and device
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN113872805B (en) Network topology information visualization method, device and medium
CN111400118B (en) Method and system for creating serial port command for online function file
CN114090365A (en) Method, device and equipment for performing function test by using dynamic link library
JP5937245B1 (en) Operation procedure evaluation apparatus and operation procedure evaluation program
CN104572244A (en) Method for device simulation
CN110232013B (en) Test method, test device, controller and medium
JP2016062136A (en) Testing apparatus and testing program
WO2015135559A1 (en) Optimized configuration method for an automation system
US10295996B2 (en) Test device for monitoring control device
JP6917758B2 (en) Flow conversion system and flow conversion method
US20220214672A1 (en) Systems and methods for automatic configuration of intelligent electronic devices
US20130238104A1 (en) System design device
CN110008034A (en) Task automated execution method, apparatus, electronic equipment and storage medium
CN109032986A (en) A kind of drive system and driving debugging system of PCIE link
CN112346787B (en) Non-standard equipment test system, method and storage medium
CN109818833B (en) Ethernet test system and Ethernet test method
CN109492239A (en) A kind of device for realizing simulation waveform data Real-time segmentation
US10312682B2 (en) Device and method for assessing dynamic stability

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