CN107172039B - Method, device and system for acquiring protocol key value - Google Patents

Method, device and system for acquiring protocol key value Download PDF

Info

Publication number
CN107172039B
CN107172039B CN201710330911.4A CN201710330911A CN107172039B CN 107172039 B CN107172039 B CN 107172039B CN 201710330911 A CN201710330911 A CN 201710330911A CN 107172039 B CN107172039 B CN 107172039B
Authority
CN
China
Prior art keywords
equipment
protocol
key value
protocol key
serial number
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
CN201710330911.4A
Other languages
Chinese (zh)
Other versions
CN107172039A (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.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
GD Midea Air Conditioning Equipment 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 GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning Equipment Co Ltd
Priority to CN201710330911.4A priority Critical patent/CN107172039B/en
Publication of CN107172039A publication Critical patent/CN107172039A/en
Application granted granted Critical
Publication of CN107172039B publication Critical patent/CN107172039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/12Protocol engines

Abstract

The invention provides a method, a device and a system for acquiring a protocol key value, which are characterized in that a serial number of equipment is acquired; and the serial number carries the equipment model of the equipment, and is sent to the server, so that the server acquires a protocol key value of a protocol which can be used by the equipment according to the equipment model, receives a return message sent by the server, the return message comprises the protocol key value, and writes the protocol key value into a specified position of the equipment. In the invention, in the process of equipment production, the protocol adopted by the equipment can be determined, the equipment can send the serial number of the equipment to the server, then the server can query the database according to the equipment model number in the serial number to obtain the protocol key value corresponding to the equipment model number and return the protocol key value to the equipment, and the equipment writes the protocol key value into the designated position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.

Description

Method, device and system for acquiring protocol key value
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for acquiring a protocol key value.
Background
With the continuous development of smart home devices and internet technologies, users increasingly use various smart devices. In the process of producing the intelligent device, developers can reduce the number of hardware versions or firmware versions as much as possible so as to achieve the purpose of reducing the operation cost. However, with the development of the operators related to smart homes, one smart device may interface with different operators. When the server of the operator provides services for intelligent devices of different models, different protocols may need to be adopted due to different models, and the different protocols correspond to different Key values (keys).
At present, in order to enable the intelligent device to be capable of being docked with an operator, a Key corresponding to a device model and different protocols can be stored on an electric control board (main board) of the intelligent device. In practical application, the keys of different protocols may adopt different formats, and under such a situation, different forms of storage spaces need to be set for keys of different formats on the firmware of the electronic control board, which not only occupies more storage space of the electronic control board, but also has higher cost.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first object of the present invention is to provide a method, an apparatus, and a system for acquiring a protocol key value, so as to configure a protocol key value matching an equipment model for an intelligent equipment in an equipment production process, so as to solve a problem in the prior art that a large storage space of an electric control board is occupied when a plurality of protocol key values are stored in advance on a firmware of the electric control board.
The second purpose of the present invention is to provide another method for acquiring a protocol key.
The third purpose of the present invention is to provide an apparatus for acquiring a protocol key.
The fourth purpose of the present invention is to provide another apparatus for acquiring a protocol key.
A fifth object of the present invention is to provide a smart device.
A sixth object of the present invention is to provide a server.
The seventh purpose of the present invention is to provide a system for acquiring a protocol key.
To achieve the above object, an embodiment of a first aspect of the present invention provides a method for acquiring a protocol key, including:
Acquiring a serial number of equipment; the serial number carries the equipment model of the equipment;
Sending the serial number to a server;
Receiving a return message sent by the server, wherein the return message comprises a key value corresponding to the equipment model;
And writing the key value into a designated position of the equipment.
According to the method for acquiring the protocol key value, the database for storing the protocol key value is constructed in advance in the server, and the corresponding relation between the equipment model and the protocol key value is stored in the database, so that the protocol which can be adopted by the equipment can be determined in the production process of the equipment, the serial number of the equipment can be sent to the server by the equipment, then the server can query the database according to the equipment model in the serial number to acquire the protocol key value corresponding to the equipment model and return the protocol key value to the equipment, and the equipment writes the protocol key value into the designated position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to achieve the above object, an embodiment of a second aspect of the present invention provides another method for acquiring a protocol key, including:
Receiving a serial number sent by equipment; the serial number carries the equipment model of the equipment;
Acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And sending the protocol key value to the equipment.
According to the method for acquiring the protocol key value, the database for storing the protocol key value is constructed in advance in the server, and the corresponding relation between the equipment model and the protocol key value is stored in the database, so that the protocol which can be adopted by the equipment can be determined in the production process of the equipment, the serial number of the equipment can be sent to the server by the equipment, then the server can query the database according to the equipment model in the serial number to acquire the protocol key value corresponding to the equipment model and return the protocol key value to the equipment, and the equipment writes the protocol key value into the designated position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides an apparatus for acquiring a protocol key, where the apparatus includes:
The acquisition module is used for acquiring the serial number of the equipment; the serial number carries the equipment model of the equipment;
A sending module, configured to send the serial number to a server, so that the server obtains a protocol key value of a protocol that the device can use according to the device model;
A receiving module, configured to receive a return message sent by the server, where the return message includes a protocol key value corresponding to the device model;
And the writing module is used for writing the protocol key value into the equipment.
According to the method for acquiring the protocol key value, the database for storing the protocol key value is constructed in advance in the server, and the corresponding relation between the equipment model and the protocol key value is stored in the database, so that the protocol which can be adopted by the equipment can be determined in the production process of the equipment, the serial number of the equipment can be sent to the server by the equipment, then the server can query the database according to the equipment model in the serial number to acquire the protocol key value corresponding to the equipment model and return the protocol key value to the equipment, and the equipment writes the protocol key value into the designated position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to achieve the above object, a fourth aspect of the present invention provides another apparatus for acquiring a protocol key, including:
The receiving module is used for receiving the serial number sent by the equipment; the serial number carries the equipment model of the equipment;
The acquisition module is used for acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And the sending module is used for sending the protocol key value to the equipment.
According to the method for acquiring the protocol key value, the database for storing the protocol key value is constructed in advance in the server, and the corresponding relation between the equipment model and the protocol key value is stored in the database, so that the protocol which can be adopted by the equipment can be determined in the production process of the equipment, the serial number of the equipment can be sent to the server by the equipment, then the server can query the database according to the equipment model in the serial number to acquire the protocol key value corresponding to the equipment model and return the protocol key value to the equipment, and the equipment writes the protocol key value into the designated position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to achieve the above object, a fifth embodiment of the present invention provides an intelligent device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for obtaining a protocol key value according to the first aspect when executing the program.
In order to achieve the above object, a sixth embodiment of the present invention provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for obtaining a protocol key value according to the first aspect when executing the program.
To achieve the above object, a seventh embodiment of the present invention provides a system for acquiring a protocol key, including the intelligent device in the fifth aspect and the server in the sixth aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
Fig. 1 is a schematic flowchart of a method for acquiring a protocol key according to an embodiment of the present invention;
Fig. 2 is a schematic flowchart of another method for acquiring a protocol key according to an embodiment of the present invention;
Fig. 3 is a schematic flowchart of another method for acquiring a protocol key according to an embodiment of the present invention;
Fig. 4 is a schematic flowchart of another method for acquiring a protocol key according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an application of the embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an apparatus for acquiring a protocol key value according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of another apparatus for acquiring a protocol key value according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a method, an apparatus, and a system for acquiring a protocol key according to an embodiment of the present invention with reference to the drawings.
Fig. 1 is a flowchart illustrating a method for acquiring a protocol key according to an embodiment of the present invention. As shown in fig. 1, the method for acquiring a protocol key value includes the following steps:
S101, acquiring a serial number of equipment; the serial number carries the device model of the device.
The electronic control board of each device stores a Serial Number (SN) uniquely identifying the device. The serial number of the device generally carries the model of the device, for example, a specific value of SN is: 333D2V7BN85B 1105658. Among them, 7BN85B may represent the model of the apparatus.
In this embodiment, the serial number of the device may be read from the electronic control board of the device. As an example, a wireless communication (WiFi) module may be disposed on the device, and in a production process of the device, the WiFi module may be in a connection state with an electronic control board of the device, and the WiFi module may read a serial number of the device from the electronic control board.
S102, the serial number is sent to a server, so that the server obtains a protocol key value of a protocol which can be used by the equipment according to the equipment model.
As a possible implementation, the serial number of the device is directly sent to the server through the WiFi module of the device.
As another possible implementation manner, the serial number of the device may be encrypted by the WiFi module of the device using an encryption algorithm negotiated with the server and then sent to the server, so as to improve the security of data transmission.
S103, receiving a return message sent by the server, wherein the return message comprises a protocol key value corresponding to the equipment model.
Specifically, after receiving the serial number sent by the device, the server may query a preset database according to the serial number. The database stores the device model, the protocol key value and the corresponding relation between the device model and the protocol key value. After the serial number is obtained, the server may use the device model in the serial number as a retrieval condition, and feed back a return message to the device from the server after the protocol key value is obtained, where the return message may include the protocol key value corresponding to the device model. Accordingly, the device may receive a return message sent by the server.
And S104, writing the protocol key value into the appointed position of the equipment.
Specifically, after the protocol key is extracted from the return message, the protocol key may be written to a designated location of the device. In this embodiment, the protocol key value may be written to an electric control board of the device, or may be written to a flash memory of a WiFi module of the device.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
To clearly illustrate the method for acquiring a protocol key value provided in this embodiment, another method for acquiring a protocol key value is further provided on the basis of fig. 1, and fig. 2 is a schematic flow chart of the another method for acquiring a protocol key value provided in this embodiment of the present invention. As shown in fig. 2, the method for acquiring a protocol key value includes the following steps:
S201, the WiFi module of the equipment acquires the serial number of the equipment from the electric control board of the equipment.
In this embodiment, the equipment is provided with a wireless communication (WiFi) module, and the WiFi module is connected to the electronic control board of the equipment during the production process of the equipment, so that the WiFi module can read the serial number of the equipment from the electronic control board.
S202, the WiFi module of the equipment sends the serial number to a server.
S203, the WiFi module of the equipment receives the return message sent by the server.
The return message comprises a protocol key value corresponding to the equipment model and a protocol version number corresponding to the equipment model.
And S204, the WiFi module of the equipment judges whether the protocol version number in the return message is the protocol version number supported by the equipment.
Specifically, a protocol version number that can be supported by the device is stored in the device, after the protocol version number is extracted from the return message, the extracted protocol version number is compared with the protocol version number stored in the device, and when the extracted protocol version number is the protocol version number that can be supported by the device, S205 is executed; otherwise, returning to execute S201.
And S205, the WiFi module of the equipment writes the protocol key value into a flash memory of the WiFi module or an electric control board of the equipment.
In this embodiment, the WiFi module of the device may write the protocol key value corresponding to the device model into its flash memory (flash), or may send the protocol key value to the electronic control board, and send a save instruction to the electronic control board, and the electronic control board writes the protocol key value into an appointed position after receiving the save instruction.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
To clearly illustrate the method for acquiring a protocol key value provided in this embodiment, another method for acquiring a protocol key value is further provided on the basis of fig. 1, and fig. 3 is a schematic flow chart of the another method for acquiring a protocol key value provided in this embodiment of the present invention. As shown in fig. 3, the method for acquiring a protocol key value includes the following steps:
S301, receiving a serial number sent by equipment; the serial number carries the device model of the device.
In this embodiment, the equipment is provided with a wireless communication (WiFi) module, and the WiFi module is connected to the electronic control board of the equipment during the production process of the equipment, so that the WiFi module can read the serial number of the equipment from the electronic control board.
The server may receive a serial number sent by a WiFi module of the device, where the serial number of the device carries a device model of the device.
S302, acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model.
Specifically, after receiving the serial number, the server may parse the device model number of the device from the serial number. In this embodiment, a database is preset in the server, and the database stores the device model and the protocol key value, and stores the correspondence between the device model and the key value. After the server obtains the device model, the corresponding relation can be inquired based on the device model, and then the protocol key value corresponding to the device model can be obtained.
Optionally, the database may further store a protocol version number corresponding to the device model, and a corresponding relationship between the device model and the protocol version number. The corresponding relationship among the device model, the protocol key value and the protocol version number can exist in a list form.
Optionally, a correspondence table between the device model and the protocol version number and a correspondence table between the device model and the protocol key value are respectively established. After the device model is obtained, the two correspondence tables can be simultaneously inquired, and the protocol key value corresponding to the device model and the protocol version number corresponding to the device model can be obtained.
S303, the protocol key value is sent to the equipment.
The server sends the protocol key to the device, for example, the protocol key may be carried in a return message and sent to the WiFi module of the device. The WiFi module of the device may receive the protocol key value, and write the protocol key value into its own flash memory or into a designated position of an electronic control board of the device.
In this embodiment, while sending the protocol key to the device, the server may also send the protocol version number corresponding to the device model to the device, that is, the return message may carry the protocol key and the protocol version number at the same time.
After the device receives the return message, the protocol key value and the protocol version number can be extracted, in order to improve the effectiveness of the device, the protocol version number which can be supported by the device can be stored in the device, after the protocol version number is extracted from the return message, the extracted protocol version number is compared with the protocol version number stored in the device, and when the extracted protocol version number is the protocol version number which can be supported by the device, the protocol key value extracted from the return message is written into a designated position of a WiFi module or an electric control board of the device.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
To clearly illustrate the method for acquiring a protocol key value provided in this embodiment, another method for acquiring a protocol key value is further provided on the basis of fig. 3, and fig. 4 is a schematic flow chart of the another method for acquiring a protocol key value provided in this embodiment of the present invention. The execution main body of the protocol key value acquisition method provided by the embodiment comprises a device and a server. In this embodiment, a WiFi module and an electronic control board are arranged on the device, the WiFi module is connected with the electronic control board, and the WiFi module can be connected with the server through a wireless network, as shown in fig. 5.
As shown in fig. 4, the method for acquiring a protocol key value includes the following steps:
S401, the WiFi module of the equipment obtains the serial number of the equipment from the electric control board of the equipment.
S402, the WiFi module of the device sends the serial number to a server.
S403, the server obtains the protocol key value and the protocol version number of the protocol which can be used by the equipment according to the equipment model.
S404, the server carries the protocol key value and the protocol version number in a return message and sends the return message to the WiFi module of the equipment.
S405, the WiFi module of the equipment judges whether the protocol version number in the return message is the protocol version number supported by the equipment.
Specifically, a protocol version number that can be supported by the device is stored in the device, after the protocol version number is extracted from the return message, the extracted protocol version number is compared with the protocol version number stored in the device, and when the extracted protocol version number is the protocol version number that can be supported by the device, S406 is executed; otherwise, the process returns to S401.
And S406, the WiFi module of the equipment writes the protocol key value into a flash memory of the WiFi module or an electric control board of the equipment.
In this embodiment, the WiFi module of the device may write the protocol key value corresponding to the device model into its flash memory (flash), or may send the protocol key value to the electronic control board, and send a save instruction to the electronic control board, and the electronic control board writes the protocol key value into an appointed position after receiving the save instruction.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to implement the above embodiments, the present invention further provides an apparatus for acquiring a protocol key value.
Fig. 6 is a schematic structural diagram of an apparatus for acquiring a protocol key value according to an embodiment of the present invention.
As shown in fig. 6, the apparatus for acquiring a protocol key value includes: the device comprises an acquisition module 11, a sending module 12, a receiving module 13 and a writing module 14.
An obtaining module 11, configured to obtain a serial number of a device; the serial number carries the device model of the device.
A sending module 12, configured to send the serial number to a server, so that the server obtains a protocol key value of a protocol that the device can use according to the device model.
A receiving module 13, configured to receive a return message sent by the server, where the return message includes a protocol key value corresponding to the device model.
And the writing module 14 is configured to write the protocol key value to a specified location of the device.
Further, the return message further includes a protocol version number corresponding to the device model, and the writing module is specifically configured to determine whether the protocol version number in the return message is a protocol version number supported by the device, and if the determination result is yes, write the protocol key value into a WiFi module of the device or an electronic control board of the device.
Further, the obtaining module is specifically configured to read the serial number from an electronic control board of the device through a WiFi module of the device, where the WiFi module is connected to the electronic control board.
It should be noted that the explanation of the foregoing corresponding method embodiment is also applicable to the apparatus of this embodiment, and is not repeated here.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
The embodiment of the present invention further provides a device for acquiring a protocol key value, and fig. 7 is a schematic structural diagram of another device for acquiring a protocol key value provided in the embodiment of the present invention.
As shown in fig. 7, the apparatus for acquiring a protocol key value includes: a receiving module 21, an obtaining module 22 and a sending module 23.
A receiving module 21, configured to receive a serial number sent by a device; the serial number carries the device model of the device.
An obtaining module 22, configured to obtain a protocol key of a protocol that the device can use according to the device model.
A sending module 23, configured to send the protocol key to the device.
Further, in a possible implementation manner of the embodiment of the present invention, the obtaining module 22 is specifically configured to analyze the device model from the serial number, query a preset database according to the device model, and query the database to obtain the protocol key value; the database stores the device model, the protocol key value and the corresponding relation between the device model and the protocol key value.
Further, the database also includes a protocol version number and a corresponding relationship between the device model and the protocol version number.
The obtaining module 22 is further configured to query the database to obtain a protocol version number corresponding to the device model.
The sending module 23 is further configured to send a protocol version number corresponding to the device model to the device.
It should be noted that the explanation of the foregoing corresponding method embodiment is also applicable to the apparatus of this embodiment, and is not repeated here.
In this embodiment, a database for storing the protocol key values is pre-constructed in the server, and the corresponding relationship between the device model and the protocol key values is stored in the database, so that in the process of device production, a protocol that can be used by the device can be determined, the device can send the serial number of the device to the server, the server can query the database according to the device model in the serial number to obtain the protocol key value corresponding to the device model and return the protocol key value to the device, and the device writes the protocol key value into an assigned position. In the embodiment, only the protocol key value of the available protocol is stored on the equipment, and the protocol key value does not need to be stored excessively, so that the occupied space of the electric control board can be reduced, and the cost is saved.
In order to implement the above embodiment, the present invention further provides an intelligent device, including: a processor, and a memory for storing processor-executable instructions.
Wherein the processor is configured to:
Acquiring a serial number of equipment; the serial number carries the equipment model of the equipment;
Sending the serial number to a server so that the server can acquire a protocol key value of a protocol which can be used by the equipment according to the equipment model;
Receiving a return message sent by the server, wherein the return message comprises a protocol key value corresponding to the equipment model;
And writing the protocol key value into a designated position of the equipment.
In order to implement the foregoing embodiments, the present invention further provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor, the storage medium is capable of executing a method for acquiring a protocol key value, and the method includes:
Acquiring a serial number of equipment; the serial number carries the equipment model of the equipment;
Sending the serial number to a server so that the server can acquire a protocol key value of a protocol which can be used by the equipment according to the equipment model;
Receiving a return message sent by the server, wherein the return message comprises a protocol key value corresponding to the equipment model;
And writing the protocol key value into a designated position of the equipment.
In order to implement the foregoing embodiment, the present invention further provides a computer program product, which when executed by an instruction processor in the computer program product, is capable of executing a method for acquiring a protocol key value, where the method includes:
Acquiring a serial number of equipment; the serial number carries the equipment model of the equipment;
Sending the serial number to a server so that the server can acquire a protocol key value of a protocol which can be used by the equipment according to the equipment model;
Receiving a return message sent by the server, wherein the return message comprises a protocol key value corresponding to the equipment model;
And writing the protocol key value into a designated position of the equipment.
In order to implement the foregoing embodiment, the present invention further provides a server, including: a processor, and a memory for storing processor-executable instructions.
Wherein the processor is configured to:
Receiving a serial number sent by equipment; the serial number carries the equipment model of the equipment;
Acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And sending the protocol key value to the equipment. In order to implement the foregoing embodiments, the present invention further provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor, the storage medium is capable of executing a method for acquiring a protocol key value, and the method includes:
Receiving a serial number sent by equipment; the serial number carries the equipment model of the equipment;
Acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And sending the protocol key value to the equipment.
To achieve the above embodiments, the present invention further provides a computer program product capable of executing a wireless network configuration method when executed by an instruction processor in the computer program product, the method comprising:
Receiving a serial number sent by equipment; the serial number carries the equipment model of the equipment;
Acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And sending the protocol key value to the equipment.
The embodiment of the invention also provides a system for acquiring the protocol key value, which comprises the intelligent equipment and the server.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for acquiring a protocol key value is characterized in that in the production process of equipment, the method comprises the following steps:
Obtaining a serial number of a device, comprising: reading the serial number from an electric control board of the equipment through a WiFi module of the equipment, wherein the WiFi module is connected with the electric control board; the serial number carries the equipment model of the equipment;
Sending the serial number to a server so that the server can acquire a protocol key value of a protocol which can be used by the equipment according to the equipment model;
Receiving a return message sent by the server, wherein the return message comprises a protocol key value corresponding to the equipment model;
And writing the protocol key value into a designated position of the equipment.
2. The method for acquiring a protocol key according to claim 1, wherein the return message further includes a protocol version number corresponding to the device model, and the step of writing the protocol key to a designated location of the device includes:
Judging whether the protocol version number in the return message is the protocol version number supported by the equipment;
And if so, writing the protocol key value into a WiFi module of the equipment or an electric control board of the equipment.
3. A method for acquiring a protocol key value is characterized by comprising the following steps:
The serial number sent by the receiving device comprises: reading the serial number from an electric control board of the equipment through a WiFi module of the equipment, wherein the WiFi module is connected with the electric control board; the serial number carries the equipment model of the equipment;
Acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And sending the protocol key value to the equipment.
4. The method for obtaining the protocol key value according to claim 3, wherein the obtaining the protocol key value of the protocol usable by the device according to the model of the device includes:
Analyzing the equipment model from the serial number;
Inquiring a preset database according to the equipment model, and inquiring and acquiring the protocol key value from the database; the database stores the device model, the protocol key value and the corresponding relation between the device model and the protocol key value.
5. The method for acquiring the protocol key value according to claim 4, wherein the database further comprises a protocol version number and a corresponding relationship between a device model and the protocol version number; the method further comprises the following steps:
Inquiring and acquiring a protocol version number corresponding to the equipment model from the database;
And sending the protocol version number corresponding to the equipment model to the equipment.
6. An apparatus for acquiring a protocol key value, comprising:
An obtaining module, configured to obtain a serial number of a device, including: reading the serial number from an electric control board of the equipment through a WiFi module of the equipment, wherein the WiFi module is connected with the electric control board; the serial number carries the equipment model of the equipment;
A sending module, configured to send the serial number to a server, so that the server obtains a protocol key value of a protocol that the device can use according to the device model;
A receiving module, configured to receive a return message sent by the server, where the return message includes a protocol key value corresponding to the device model;
And the writing module is used for writing the protocol key value into the appointed position of the equipment.
7. An apparatus for acquiring a protocol key value, comprising:
A receiving module, configured to receive a serial number sent by a device, including: reading the serial number from an electric control board of the equipment through a WiFi module of the equipment, wherein the WiFi module is connected with the electric control board; the serial number carries the equipment model of the equipment;
The acquisition module is used for acquiring a protocol key value of a protocol which can be used by the equipment according to the equipment model;
And the sending module is used for sending the protocol key value to the equipment.
8. An intelligent device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements the method for obtaining a protocol key value according to any one of claims 1-2.
9. A server, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method for acquiring a protocol key according to any one of claims 3 to 5.
10. A system for acquiring a protocol key, comprising the intelligent device of claim 8 and the server of claim 9.
CN201710330911.4A 2017-05-11 2017-05-11 Method, device and system for acquiring protocol key value Active CN107172039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710330911.4A CN107172039B (en) 2017-05-11 2017-05-11 Method, device and system for acquiring protocol key value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710330911.4A CN107172039B (en) 2017-05-11 2017-05-11 Method, device and system for acquiring protocol key value

Publications (2)

Publication Number Publication Date
CN107172039A CN107172039A (en) 2017-09-15
CN107172039B true CN107172039B (en) 2020-07-28

Family

ID=59815863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710330911.4A Active CN107172039B (en) 2017-05-11 2017-05-11 Method, device and system for acquiring protocol key value

Country Status (1)

Country Link
CN (1) CN107172039B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833191B (en) * 2018-08-03 2021-03-02 云丁智能科技(北京)有限公司 Gateway equipment configuration method and device
WO2020007339A1 (en) 2018-07-04 2020-01-09 Yunding Network Technology (Beijing) Co., Ltd. Method and system for operating an electronic device
CN110275703B (en) * 2019-06-27 2023-06-06 浙江大搜车软件技术有限公司 Method and device for assigning key value to data, computer equipment and storage medium
CN113157609A (en) * 2021-04-20 2021-07-23 北京达佳互联信息技术有限公司 Storage system, data processing method, data processing device, electronic device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376341A (en) * 2014-09-05 2015-02-25 合肥美的电冰箱有限公司 Write-in method and system of sequence number of household appliance
CN105573792A (en) * 2015-12-16 2016-05-11 深圳市创维软件有限公司 Delivery parameter burning method, equipment to be burnt, burning tool equipment
CN105635146A (en) * 2015-12-28 2016-06-01 美的集团股份有限公司 Method and system for configuring protocol dynamically

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106229007B (en) * 2016-08-09 2019-11-05 广州视源电子科技股份有限公司 HDCP KEY sending method, method for burn-recording and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376341A (en) * 2014-09-05 2015-02-25 合肥美的电冰箱有限公司 Write-in method and system of sequence number of household appliance
CN105573792A (en) * 2015-12-16 2016-05-11 深圳市创维软件有限公司 Delivery parameter burning method, equipment to be burnt, burning tool equipment
CN105635146A (en) * 2015-12-28 2016-06-01 美的集团股份有限公司 Method and system for configuring protocol dynamically

Also Published As

Publication number Publication date
CN107172039A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107172039B (en) Method, device and system for acquiring protocol key value
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN104199706A (en) Firmware upgrade method and device for eMMC
CN109002424B (en) File format conversion method and device, computer equipment and storage medium
EP3972202A1 (en) Smart home system control method and apparatus, electronic device and storage medium
CN113672441B (en) Method and device for testing intelligent equipment
CN105391464A (en) Vehicle-mounted terminal, vehicle data acquisition system and method
CN106909081B (en) Household electrical appliance and expansion platform based on same
CN103780633A (en) Method and device for mobile terminal to upload file, and method and device for network server to upload file
CN111625419A (en) Log acquisition method, system, equipment and computer readable storage medium
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN111130828B (en) Intelligent network distribution method and device and terminal equipment
CN105530323B (en) File upgrading method, related equipment and system
CN104168145B (en) A kind of system and method that radio upgrade is carried out to wireless communication unit
CN106293851A (en) A kind of firmware upgrade method and equipment
CN106790380A (en) Data reporting method and device
CN113094087A (en) Software configuration method, electronic device and storage medium
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
KR20120105281A (en) Method for generating electronic appliance identifier and managing information by using the electronic appliance identifier
CN108647139B (en) System test method, device, storage medium and electronic device
CN111049717A (en) Variable acquisition method and equipment
CN104063377A (en) Information processing method and electronic equipment using same
CN101197959B (en) Terminal control method, system and equipment
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant