CN108769114A - Equipment and its data attribute setting method and computer readable storage medium - Google Patents

Equipment and its data attribute setting method and computer readable storage medium Download PDF

Info

Publication number
CN108769114A
CN108769114A CN201810352020.3A CN201810352020A CN108769114A CN 108769114 A CN108769114 A CN 108769114A CN 201810352020 A CN201810352020 A CN 201810352020A CN 108769114 A CN108769114 A CN 108769114A
Authority
CN
China
Prior art keywords
code
data
equipment
data attribute
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810352020.3A
Other languages
Chinese (zh)
Inventor
耿青涛
汪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Cloud Dawn Technology Service Co Ltd
Original Assignee
Guizhou Cloud Dawn Technology Service 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 Guizhou Cloud Dawn Technology Service Co Ltd filed Critical Guizhou Cloud Dawn Technology Service Co Ltd
Priority to CN201810352020.3A priority Critical patent/CN108769114A/en
Publication of CN108769114A publication Critical patent/CN108769114A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of data attribute setting method of equipment, the data attribute setting method of the equipment includes the following steps:Equipment obtains command code when receiving control instruction, in the command area of the control instruction, and obtains data attribute code in the data field of the control instruction;According to the command code by the data attribute code reverse at pending data attribute;Data attribute to be replaced corresponding with the command code is determined in the apparatus, and the data attribute to be replaced is changed to the pending data attribute.Invention additionally discloses a kind of equipment and computer readable storage mediums.This invention simplifies the data attributes of equipment to change flow.

Description

Equipment and its data attribute setting method and computer readable storage medium
Technical field
The present invention relates to big data technical field more particularly to a kind of equipment and its data attribute setting method and computers Readable storage medium storing program for executing.
Background technology
With the arriving of cloud era, big data has attracted more and more concerns.Big data platform can collect each equipment Data.
In the prior art, equipment is needed when uploading data to big data platform according to the self-contained communication association of equipment The protocol rule of view determines the attribute of data, to be processed in big data platform data according to attribute according to attribute Device data is parsed;But data attribute is not changeless, when needing to be modified data attribute, is needed Input needs to change attribute information in equipment so that the change flow of the data attribute of equipment is complicated.
Invention content
The main purpose of the present invention is to provide equipment and its data attribute setting method and computer readable storage medium, Aim to solve the problem that the complicated problem of the data attribute change flow of equipment.
To achieve the above object, the data attribute setting method of a kind of equipment provided by the invention, the data of the equipment Property setting method includes the following steps:
Equipment obtains command code when receiving control instruction, in the command area of the control instruction, and in the control The data field of system instruction obtains data attribute code;
According to the command code by the data attribute code reverse at pending data attribute;
Determine corresponding with command code data attribute to be replaced in the apparatus, and by the data to be replaced Attribute changes are the pending data attribute.
Preferably, described after the step of command area of the control instruction obtains command code, further include:
Determine the corresponding command type of the command code;
When the command code is setting command code, execute described in the data field of control instruction acquisition data The step of attribute codes.
Preferably, after the step of determination command code corresponding command type, further include:
When the command code is reading order code, the corresponding data of the command code are obtained;
By the data compilation at data code to be sent corresponding with the reading order code;
Data packet to be sent is generated according to the control instruction and the data code to be sent, and will be described to be sent Data packet feeds back to the terminal for sending out the control instruction.
Preferably, the step that data packet to be sent is generated according to the control instruction and the data code to be sent Suddenly include:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction;
It determines the length of the data code to be sent, and having for the data code to be sent is generated according to the length Imitate length code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied generation Code;
Operation success code is obtained, and is sequentially connected the protocol header code, the effective length code, the reply generation Code, the operation success code, the data code to be sent, second verification and code and the terminator code with Generate data packet to be sent.
Preferably, after the described the step of data attribute to be replaced is changed to the pending data attribute, also Including:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction, and obtain behaviour It is made code and presets effective length code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied generation Code;
It is sequentially connected the protocol header code, effective length code is preset, replys code, operation success code, the second school It tests with code and terminator code to generate reply data packet, and the reply data packet is fed back into the transmission control and is referred to The terminal of order.
Preferably, described after the step of command area of the control instruction obtains command code, further include:
Judge whether the command code matches pre-set code;
Pre-set code is mismatched in the command code, generates the invalid return information of code, and by the return information Feed back to the terminal for sending the control instruction.
Preferably, the pending data attribute includes transducing signal, power supply type, Internet of Things battery, third party's power supply, passes Sensor signal, access style, acquisition state, device identification, pressure gauge real data record, hardware version numbers, software version number, Frequency, the equipment date of production, abnormal work time, water meter flow direction, water meter disassembly status, strong magnetic disturbance, sensing are sent on pressure gauge Device state, water meter actual pulse code value, send frequency, data of water meter mark, flowmeter flow direction, flow on water meter at acquisition scene Frequency is sent on meter actual pulse data record, flow meter data mark, operating mode, producer's mark and Internet of Things.
To achieve the above object, the present invention also provides a kind of equipment, the equipment includes memory, processor and storage In the memory and the data attribute of equipment that can run on the processor, program, the data attribute of the equipment are set The step of data attribute setting method that equipment as described above is realized when program is executed by processor is set.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages Media storage has the data attribute setting program of equipment, the data attribute setting program of the equipment to be realized when being executed by processor The step of data attribute setting method of equipment as described above.
Equipment provided by the invention and its data attribute setting method and computer readable storage medium, equipment are receiving When control instruction, obtains command code in the command area of control instruction and obtain data attribute code in data field, further according to Data attribute code reverse at pending data attribute, is then determined wait for corresponding with command code by command code in a device Replacement data attribute, and data attribute to be replaced is replaced with into pending data attribute, so that equipment can be according to control Instruction is modified data attribute, without, to change attribute information, simplifying the data category of equipment to equipment input information The change flow of property.
Description of the drawings
Fig. 1 is the hardware architecture diagram of the equipment involved by the embodiment of the present invention;
Fig. 2 is the flow diagram of the first embodiment of the data attribute setting method of present device;
Fig. 3 is the flow diagram of the second embodiment of the data attribute setting method of present device;
Fig. 4 is the flow diagram of the 3rd embodiment of the data attribute setting method of present device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Equipment is when receiving control instruction, in the control instruction Command area obtains command code, and obtains data attribute code in the data field of the control instruction;According to the command code By the data attribute code reverse at pending data attribute;Wait for corresponding with the command code is determined in the apparatus Replacement data attribute, and the data attribute to be replaced is changed to the pending data attribute.
Since in the prior art, equipment needs to lead to according to equipment is self-contained when uploading data to big data platform The protocol rule of news agreement determines the attributes of data, to according to attribute to data be processed in big data platform according to Attribute parses device data;But data attribute is not changeless, when needing to be modified data attribute, The input in equipment is needed to need to change attribute information so that the change flow of the data attribute of equipment is complicated.
The present invention provides a solution, because equipment can be modified data attribute according to control instruction, and nothing The change flow of the data attribute of equipment need to be simplified to equipment input information to change attribute information.
As shown in Figure 1, Fig. 1 is the embodiment of the present invention be related to equipment hardware running environment structural schematic diagram.
The embodiment of the present invention refers to equipment, and equipment includes:Processor 1001, such as CPU, memory 1002, Communication bus 1003.Wherein, communication bus 1003 is for realizing the connection communication between these components.
Memory 1002 can be high-speed RAM memory, can also be stable memory (non- ), such as magnetic disk storage volatilememory.As shown in Figure 1, as in a kind of memory 1003 of computer storage media It may include the data attribute setting program of equipment;And processor 1001 can be used for calling the equipment stored in memory 1002 Data attribute program is set, and execute following operation:
Equipment obtains command code when receiving control instruction, in the command area of the control instruction, and in the control The data field of system instruction obtains data attribute code;
According to the command code by the data attribute code reverse at pending data attribute;
Determine corresponding with command code data attribute to be replaced in the apparatus, and by the data to be replaced Attribute changes are the pending data attribute.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
Determine the corresponding command type of the command code;
When the command code is setting command code, execute described in the data field of control instruction acquisition data The step of attribute codes.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
When the command code is reading order code, the corresponding data of the command code are obtained;
By the data compilation at data code to be sent corresponding with the reading order code;
Data packet to be sent is generated according to the control instruction and the data code to be sent, and will be described to be sent Data packet feeds back to the terminal for sending out the control instruction.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction;
It determines the length of the data code to be sent, and having for the data code to be sent is generated according to the length Imitate length code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied generation Code;
Operation success code is obtained, and is sequentially connected the protocol header code, the effective length code, the reply generation Code, the operation success code, the data code to be sent, second verification and code and the terminator code with Generate data packet to be sent.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction, and obtain behaviour It is made code and presets effective length code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied generation Code;
It is sequentially connected the protocol header code, effective length code is preset, replys code, operation success code, the second school It tests with code and terminator code to generate reply data packet, and the reply data packet is fed back into the transmission control and is referred to The terminal of order.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
Judge whether the command code matches pre-set code;
Pre-set code is mismatched in the command code, generates the invalid return information of code, and by the return information Feed back to the terminal for sending the control instruction.
Further, processor 1001 can be used for calling the data attribute setting journey of the equipment stored in memory 1002 Sequence, and execute following operation:
The pending data attribute includes transducing signal, power supply type, Internet of Things battery, third party's power supply, sensor letter Number, access style, acquisition state, device identification, pressure gauge real data record, hardware version numbers, software version number, pressure gauge On send frequency, the equipment date of production, the abnormal work time, water meter flow direction, water meter disassembly status, strong magnetic disturbance, sensor states, Acquisition scene, water meter actual pulse code value send frequency, data of water meter mark, flowmeter flow direction, the practical arteries and veins of flowmeter on water meter It rushes on data record, flow meter data mark, operating mode, producer's mark and Internet of Things and send frequency.
The present embodiment according to said program, ordered when receiving control instruction in the command area of control instruction by equipment It enables code and obtains data attribute code in data field, further according to command code by data attribute code reverse at pending number According to attribute, data attribute to be replaced corresponding with command code is then determined in a device, and data attribute to be replaced is replaced For pending data attribute, so that equipment can be modified data attribute according to control instruction, without to equipment Input information simplifies the change flow of the data attribute of equipment to change attribute information.
Hardware architecture based on above equipment proposes each embodiment of the data attribute setting method of present device.
It is the first embodiment of the data attribute setting method of present device, the data of the equipment with reference to Fig. 2, Fig. 2 Property setting method includes the following steps:
Step S10, equipment obtain command code when receiving control instruction, in the command area of the control instruction, and Data attribute code is obtained in the data field of the control instruction;
In the present invention, executive agent is equipment, equipment can be include technical grade pressure gauge, technical grade water meter, industry The water utilities industry device of the components such as grade flowmeter or civil metering product.Terminal can set the data attribute of equipment It sets, terminal can be the smart machines such as mobile terminal or computer, and data attribute includes but not limited to transducing signal, power supply class Type, Internet of Things battery, third party's power supply, sensor signal, access style, acquisition state, device identification, pressure gauge real data note Record, software version number, send frequency, the equipment date of production, abnormal work time, water meter flow direction, water on pressure gauge at hardware version numbers Table disassembly status, sensor states, acquisition scene, water meter actual pulse code value, send frequency, water meter on water meter at strong magnetic disturbance Frequency is sent on Data Identification, flowmeter flow direction, flowmeter actual pulse data record, flow meter data mark and Internet of Things. It should be noted that equipment is equipped with bluetooth general module, it is equipped with bluetooth communication agreement in bluetooth general module, equipment passes through bluetooth General module and terminal (terminal is equipped with bluetooth module) carry out blue-teeth data interaction, there are binding relationship between terminal and equipment, In binding information storage and terminal and equipment.
Equipment obtains command code and data attribute code when receiving control instruction, according to control instruction, specifically , control instruction packet is by protocol header code, effective length code, command code, data attribute code, verification and code (first Verification and code) and terminator code composition, each code there is corresponding region in control instruction, equipment controlling The command area of instruction obtains command code, and obtains data attribute code in data field (data attribute code region).
Step S20, according to the command code by the data attribute code reverse at pending data attribute;
Step S30 determines data attribute to be replaced corresponding with the command code, and is waited for described in the apparatus Replacement data attribute changes are the pending data attribute;
In the present invention, command code is different, and data attribute code representative data attribute is different, for example, command code is 02, command code indicates the data sending power of setting equipment, when data attribute code is 11, at this point, data attribute code Expression data sending power is 17dBm, and when data code is 09, data attribute code table shows that data sending power is 15dBm; And command code be 03 when, command code indicate setting equipment the time of making the product, if data attribute code be 11 0B 10, number Indicate that the time of making the product is (11) November in 2017 (0B) No. 16 (10) according to attribute codes, if data attribute code is 10 0B 10 When, data attribute code represents factory's time as (10) November in 2016 (0B) No. 16 (10), and data attribute code can use 16 System number indicates.It is understood that the compiling rule of the corresponding data attribute code of each command code is different.
After equipment obtains data attribute code and command code, according to command code by data attribute code reverse at Pending data attribute, and data attribute to be replaced corresponding with command code is determined in a device, by data category to be replaced Property code replaces with pending data attribute, to complete the setting of the data attribute of equipment.
It should be noted that after the setting that equipment completes data attribute, equipment need to be returned to the terminal for sending control instruction Complex information, specifically, the protocol header code, command code, the first verification in equipment acquisition control instruction and code, end mark generation Code, then according to first verification and code building second verification and, and according to command code generate reply code, at this point, equipment Data attribute is arranged in success, and equipment obtains operation success code, in addition, equipment is only successfully believed to terminal replies data attribute Breath, and without carrying any device data, then the effective length for replying packet data is certain namely equipment acquisition is pre- If effective length code, finally, equipment is sequentially connected protocol header code, presets effective length code, reply code, operate successfully Code, the second verification and code and terminator code, which generate, replys data packet, then sends data packet to be sent to terminal.
For example, control instruction is:68 04 03 11 0B 10 33 16, wherein 68 be protocol header code, and 04 is effective Length code, 03 is command code, 11 (times:2017) 0B (months:November) 10 (dates:No. 16) it is data attribute generation Code, 33 be the first verification and code, and 16 be terminator code;After successfully data attribute is arranged in equipment, replys data packet and should be: 68 02 83 00 85 16, wherein 68 be protocol header code, and 02 is presets effective length code, and 83 is reply code, and 00 is Success code is operated, 85 be the second verification and code, and 16 be terminator code.
In technical solution provided in this embodiment, equipment is when receiving control instruction, in the command area of control instruction It obtains command code and obtains data attribute code in data field, further according to command code by data attribute code reverse at waiting for Data attribute is handled, then determines corresponding with command code data attribute to be replaced in a device, and by data category to be replaced Property replaces with pending data attribute, so that equipment can be modified data attribute according to control instruction, without To equipment input information to change attribute information, the change flow of the data attribute of equipment is simplified.
It is the second embodiment of the control method of present device with reference to Fig. 3, Fig. 3, is based on first embodiment, the step After S10, further include:
Step S40 determines the corresponding command type of the command code;
Step S50 is executed described in the data field of the control instruction when the command code is setting command code The step of obtaining data attribute code;
In the present embodiment, command code is divided into setting command code and reading order code, and equipment can be according to setting Its data attribute is arranged in command code, and reading order code is then that terminal needs to obtain the data of equipment, and setting command code can By mobile terminal, either the smart machines such as computer transmission reading order code can be sent out by big data platform or Internet of Things base station It send.Equipment directly can determine its command type when obtaining command code according to command code, for example, when command code is 02, Command code is setting command code, if command code is 11, command code is reading order code.
When command code is setting command code, equipment is then according to the corresponding data attribute of setting command Code obtaining Code, then execute step S20 and step S30.
Step S60 obtains the corresponding data of the command code when the command code is reading order code;
Step S70, by the data compilation at data code to be sent corresponding with the reading order code;
Step S80 generates data packet to be sent according to the control instruction and the data code to be sent, and by institute It states data packet to be sent and feeds back to the terminal for sending out the control instruction;
When command code is reading order code, equipment then reads corresponding data according to command code, for example, life Enable code be 11, at this point, command code need read acquisition scene, Internet of Things SN, operating mode, transmission frequency, wireless frequency, Transmission power, the time of making the product, network interaction, device hardware version, device software version and equipment manufacturer identify corresponding number According to;After equipment obtains corresponding data according to command code, further according to command code by data compilation at data generation to be sent Code.
For example, control instruction is:When 68 01 11 12 16,
Data packet to be sent should be:68 17 91 00 00 01 56 11 17 C6 CA 0E BF 00 00 01 14 00 00 00 00 01 01 00 00 9B 16;
Protocol header code in control instruction:68, effective length code:17, order word code:91, operate success code: 00, data code:00 (acquisition scene:Base station is industrial), data code:01 56 11 17 C6 CA 0E BF (Internet of Things SN: 01561117C6CA0EBF), 00 (operating mode of data code:Invalid parameter), 00 (transmission frequency of data code:15 minutes one It is secondary), 01 (wireless frequency of data code:470Mhz), 14 (transmission power of data code:20dBm), (the manufacture year of data code 00 Part) 00 (manufacture month) 00 (date of production), 00 (network interaction of data code:Responded without network), 01 (equipment of data code Hardware version:1), (the device software version of data code 01:1), (producer identifies data code 01 00:Kunshan Chinese member is through water meter Measure information technology), verification and code:9C, terminator code:16.
It should be noted that when command code is reading order code, equipment can generate data after obtaining data Data packet to be sent, specifically, obtaining protocol header code, the first verification and code and terminator code in control instruction; Determine data code to be sent length (such as read 5 data, in a length plus command code, length be 6), And according to length generate data code to be sent effective length code (length 6, effective length code can be 06);According to One verification and code determine the second verification and code, and are determined according to command code and reply code;Operation success code is obtained, and It is sequentially connected protocol header code, effective length code, replys code, operation success code, data code to be sent, the second verification With code and terminator code to generate data packet to be sent.The detail flow of the generation of data packet to be sent and reply The product process of data packet is consistent, and this is no longer going to repeat them.
Data code is arranged at the data field of control instruction, each data code has corresponding position in data field It sets, data code is reduced into the facility information of mistake to avoid material net base station or big data platform.
In technical solution provided in this embodiment, equipment determines the order class of command code after obtaining command code The data attribute of equipment is arranged according to command code if command code is setting command code for type, if command code is to read Command code then obtains the corresponding data of command code, and feeds data back to the terminal for sending control instruction so that equipment energy Enough that different operations is executed according to different command codes, the intelligence degree of equipment is high.
It is the 3rd embodiment of the data attribute setting method of present device with reference to Fig. 4, Fig. 4, is based on the first or second Embodiment after the step S10, further includes:
Step S90, judges whether the command code matches pre-set code;
Step S100 mismatches pre-set code in the command code, generates the invalid return information of code, and will be described Return information feeds back to the terminal for sending the control instruction;
In the present embodiment, equipment is stored with each command code namely pre-set code, and command code is obtained in equipment Afterwards, equipment can determine whether the command code received is one in pre-set code, namely determine whether command code is effective, For example, 00,01,02,03,04 pre-set code is stored in equipment, and the order received is 05, then this command code is nothing Code is imitated, at this point, equipment can generate the invalid return information of code, and return information is sent to terminal, certainly, equipment also may be used It is generated according to control instruction and replys data packet, the operation success code for replying data packet is substituted for invalid command code.When So, if command code is effective, S20- steps S80 is thened follow the steps.
In addition, equipment is after obtaining command code, if equipment does not carry out corresponding operation in preset duration, at this point, equipment The return information of operation overtime or operation failure can be automatically generated, and is sent to terminal, sends control again with prompt terminal Instruction.
In technical solution provided in this embodiment, equipment judges whether command code is effective after obtaining command code, If invalid, the invalid return information of code is sent to terminal so that terminal retransmits control instruction, improves terminal-pair equipment Operation success rate, improve user experience.
The present invention also provides a kind of equipment, the equipment includes memory, processor and is stored in the memory simultaneously Program is arranged in the data attribute for the equipment that can be run on the processor, and the data attribute setting program of the equipment is handled Device realizes the step of data attribute setting method of the equipment described in embodiment as above when executing.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has equipment Program is arranged in data attribute, and the data attribute setting program of the equipment is realized when being executed by processor described in embodiment as above The step of data attribute setting method of equipment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (9)

1. a kind of data attribute setting method of equipment, which is characterized in that the data attribute setting method of the equipment include with Lower step:
Equipment obtains command code when receiving control instruction, in the command area of the control instruction, and refers in the control The data field of order obtains data attribute code;
According to the command code by the data attribute code reverse at pending data attribute;
Determine corresponding with command code data attribute to be replaced in the apparatus, and by the data attribute to be replaced It is changed to the pending data attribute.
2. the data attribute setting method of equipment as described in claim 1, which is characterized in that described in the control instruction After command area obtains the step of command code, further include:
Determine the corresponding command type of the command code;
When the command code is setting command code, execute described in the data field of control instruction acquisition data attribute The step of code.
3. the data attribute setting method of equipment as claimed in claim 2, which is characterized in that the determination command code After the step of corresponding command type, further include:
When the command code is reading order code, the corresponding data of the command code are obtained;
By the data compilation at data code to be sent corresponding with the reading order code;
Data packet to be sent is generated according to the control instruction and the data code to be sent, and by the data to be sent Packet feeds back to the terminal for sending out the control instruction.
4. the data attribute setting method of equipment as claimed in claim 3, which is characterized in that described according to the control instruction And the data code to be sent generates the step of data packet to be sent and includes:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction;
It determines the length of the data code to be sent, and generates effective length of the data code to be sent according to the length Spend code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied code;
Obtain operation success code, and be sequentially connected the protocol header code, the effective length code, the reply code, The operation success code, data code, second verification and the code to be sent and the terminator code are with life At data packet to be sent.
5. the data attribute setting method of equipment according to any one of claims 1-4, which is characterized in that described to be waited for described After the step of replacement data attribute changes are the pending data attribute, further include:
Protocol header code, the first verification and code and terminator code are obtained in the control instruction, and obtain operation at Code and default effective length code;
The second verification and code are determined according to first verification and code, and are determined according to the command code and replied code;
Be sequentially connected the protocol header code, preset effective length code, reply code, operation success code, second verification and The reply data packet is fed back to generate reply data packet and sends the control instruction by code and terminator code Terminal.
6. the data attribute setting method of equipment according to any one of claims 1-4, which is characterized in that described in the control After the step of command area of system instruction obtains command code, further include:
Judge whether the command code matches pre-set code;
Pre-set code is mismatched in the command code, generates the invalid return information of code, and the return information is fed back To the terminal for sending the control instruction.
7. the data attribute setting method of equipment according to any one of claims 1-4, which is characterized in that the pending number According to attribute include transducing signal, power supply type, Internet of Things battery, third party's power supply, sensor signal, access style, acquisition state, Device identification, hardware version numbers, software version number, send frequency, equipment manufacture day on pressure gauge at pressure gauge real data record Phase, abnormal work time, water meter flow direction, water meter disassembly status, strong magnetic disturbance, sensor states, acquisition scene, the practical arteries and veins of water meter It rushes code value, send frequency, data of water meter mark, flowmeter flow direction, flowmeter actual pulse data record, flow to count on water meter According to mark, operating mode, producer mark and Internet of Things on send frequency.
8. a kind of equipment, which is characterized in that the equipment includes memory, processor and is stored in the memory and can be Program is arranged in the data attribute of the equipment run on the processor, and the data attribute setting program of the equipment is held by processor The step of data attribute setting method such as claim 1-7 any one of them equipment is realized when row.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has the number of equipment Program is set according to attribute, the data attribute setting program of the equipment is realized when being executed by processor as claim 1-7 is any The step of data attribute setting method of equipment described in.
CN201810352020.3A 2018-04-19 2018-04-19 Equipment and its data attribute setting method and computer readable storage medium Pending CN108769114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810352020.3A CN108769114A (en) 2018-04-19 2018-04-19 Equipment and its data attribute setting method and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810352020.3A CN108769114A (en) 2018-04-19 2018-04-19 Equipment and its data attribute setting method and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108769114A true CN108769114A (en) 2018-11-06

Family

ID=64011193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810352020.3A Pending CN108769114A (en) 2018-04-19 2018-04-19 Equipment and its data attribute setting method and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108769114A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572483A (en) * 2019-11-06 2019-12-13 潍坊汇金海物联网技术有限公司 Information acquisition method based on different types of Internet of things detection equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625850A (en) * 2009-06-08 2010-01-13 北京宁和颂扬科技发展有限公司 Command for intelligent display driving device
CN102984583A (en) * 2012-11-20 2013-03-20 深圳Tcl新技术有限公司 System and method for setting television parameters through handheld device and handheld device
CN103092181A (en) * 2012-12-28 2013-05-08 吴玉胜 Household appliance control method and system thereof based on intelligent television equipment
CN104349244A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
US9021134B1 (en) * 2006-03-03 2015-04-28 Juniper Networks, Inc. Media stream transport conversion within an intermediate network device
CN105049337A (en) * 2015-08-14 2015-11-11 北京奇虎科技有限公司 Communication method and device between smart devices based on instant messaging
CN105928722A (en) * 2016-04-18 2016-09-07 合肥美的暖通设备有限公司 Air conditioner performance detection system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021134B1 (en) * 2006-03-03 2015-04-28 Juniper Networks, Inc. Media stream transport conversion within an intermediate network device
CN101625850A (en) * 2009-06-08 2010-01-13 北京宁和颂扬科技发展有限公司 Command for intelligent display driving device
CN102984583A (en) * 2012-11-20 2013-03-20 深圳Tcl新技术有限公司 System and method for setting television parameters through handheld device and handheld device
CN103092181A (en) * 2012-12-28 2013-05-08 吴玉胜 Household appliance control method and system thereof based on intelligent television equipment
CN104349244A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105049337A (en) * 2015-08-14 2015-11-11 北京奇虎科技有限公司 Communication method and device between smart devices based on instant messaging
CN105928722A (en) * 2016-04-18 2016-09-07 合肥美的暖通设备有限公司 Air conditioner performance detection system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572483A (en) * 2019-11-06 2019-12-13 潍坊汇金海物联网技术有限公司 Information acquisition method based on different types of Internet of things detection equipment
CN110572483B (en) * 2019-11-06 2020-04-24 潍坊汇金海物联网技术有限公司 Information acquisition method based on different types of Internet of things detection equipment

Similar Documents

Publication Publication Date Title
CN111835842B (en) Gateway resource updating method and device and Internet of things control platform
CN107402880A (en) A kind of method of testing and electronic equipment
CN105224343B (en) A kind of the update reminding method and device of application program
CN104009908A (en) Message notifying device, control method
CN109726098A (en) Interface test method, device and computer readable storage medium
CN104144109A (en) Equipment control method, device and system
CN109617726A (en) Error log acquisition method and server
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN108960587A (en) Evaluation method, device and the readable storage medium storing program for executing of purchase of property consulting services quality
US20200065740A1 (en) Task management method, terminal, and non-transitory computer-readable information recording medium
CN107944677A (en) Achievement method for tracing, application server and computer-readable recording medium
CN108769114A (en) Equipment and its data attribute setting method and computer readable storage medium
CN107133160A (en) Test system
CN111934956A (en) Equipment configuration method and device, storage medium and electronic device
CN105530244A (en) Method for controlling intelligent device by main control device and server
CN106651650A (en) Joint debugging measurement and control device and electric power Internet of things joint debugging measurement and control system applying same
CN109903147A (en) Asset data processing method, device and computer equipment
CN110830455B (en) Equipment model description method
CN105279606A (en) Engineering progress control and obtaining method and device
CN107544353A (en) A kind of Internet of Things TT&C system of remote joint debugging measure and control device and the application device
CN103023810B (en) A kind of Message processing analogy method and simulation system
CN110275905B (en) Resource value acquisition method, device, equipment and computer storage medium
CN103731342A (en) Instant message based workflow management system and management method
CN116383329A (en) Data importing method, device, equipment and medium
CN110287049A (en) Data processing method, device and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication