CN111259024B - Method and system for replacing product ID by code scanning - Google Patents

Method and system for replacing product ID by code scanning Download PDF

Info

Publication number
CN111259024B
CN111259024B CN202010036137.8A CN202010036137A CN111259024B CN 111259024 B CN111259024 B CN 111259024B CN 202010036137 A CN202010036137 A CN 202010036137A CN 111259024 B CN111259024 B CN 111259024B
Authority
CN
China
Prior art keywords
product
pid
authorization table
identification information
code
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
CN202010036137.8A
Other languages
Chinese (zh)
Other versions
CN111259024A (en
Inventor
刘康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202010036137.8A priority Critical patent/CN111259024B/en
Publication of CN111259024A publication Critical patent/CN111259024A/en
Application granted granted Critical
Publication of CN111259024B publication Critical patent/CN111259024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method for changing product ID by scanning codes, which comprises the following steps: the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes a corresponding relation among the universal unique identification code or mac address, the new product identification information and the equipment in the authorization table; the device sends a universal unique identification code or mac address to the server; and the server uses new product identification information corresponding to the equipment according to the corresponding relation in the authorization table. Compared with the prior art, the application has the following beneficial effects: the factory can stock a product ID by only scanning the device SN (serial number) code to achieve a quick change of product ID (pid). The customer products can be conveniently prepared in batches and can be rapidly delivered.

Description

Method and system for replacing product ID by code scanning
Technical Field
The application relates to the field of Internet of things, in particular to a method for changing product IDs by scanning codes.
Background
The software functions of the intelligent product are written in corresponding firmware, and the product ID and the software functions are determined after the firmware is burnt by a factory. If the firmware is to be replaced, the firmware is to be re-written in the factory.
After the customer orders, the factory determines the customer production data, and then purchases the software and hardware to the upstream supplier for product production, and the produced finished product is tested and verified and then delivered.
If there is a change in the product ID, a re-ordering is required. The period from ordering by the customer to taking the finished product is long, which is not beneficial to the quick shipment of the product; customer order fragmentation, frequent switching of factory production lines is high in cost, and mass production of factories is not facilitated.
The product is exported to a plurality of countries, different customer data have isolation requirements, and data statistics is convenient, so that the user can operate; one merchant delivers the same product to different clients, and the clients have the actions of customizing an app interface UI, a product name and the like; these are all accomplished by replacing the product ID.
Disclosure of Invention
The main object of the present application is to provide a method for changing product ID by scanning code, comprising:
the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes a corresponding relation among the universal unique identification code or mac address, the new product identification information and the equipment in the authorization table;
the device sends a universal unique identification code or mac address to the server;
and the server uses new product identification information corresponding to the equipment according to the corresponding relation in the authorization table.
Optionally, the method for changing the product ID by scanning the code further comprises:
the server establishes an authorization table.
Optionally, the product identification information is: firmware key or product pid.
Optionally, when the product identification information is a firmware key, modifying an original product pid in the serial number corresponding authorization table into a new product pid;
and when the product identification information is the product pid, the server newly adds an expansion authorization table, and writes the universal unique identification code or mac address corresponding to the equipment serial number and the new product pid into the expansion authorization table.
Optionally, the method for changing the product ID by scanning the code further comprises:
the server verifies whether the original product pid is consistent with the function point of the new product pid;
when the verification result is consistent, the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes the corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table.
Optionally, the server using new product identification information corresponding to the device according to the correspondence in the authorization table includes:
the server judges whether the device activation call is pid activation or not;
when the device activation call is pid activation, using a new product pid in the extended authorization table; when the device activation call is a key activation, a new product pid in the authorization table is used.
According to another aspect of the present application, there is also provided a system for changing a product ID by scanning a code, including:
the storage module is used for storing a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishing a corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table;
the sending module is used for sending the universal unique identification code or the mac address to the server by the equipment;
and the corresponding module is used for using the new product identification information corresponding to the equipment by the server according to the corresponding relation in the authorization table.
The application also discloses a computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, the processor implementing the method of any one of the above when executing the computer program.
The application also discloses a computer readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
The application also discloses a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the preceding claims.
Compared with the prior art, the application has the following beneficial effects:
the factory can stock a product ID by only scanning the device SN (serial number) code to achieve a quick change of product ID (pid). The customer products can be conveniently prepared in batches and can be rapidly delivered.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application and to provide a further understanding of the application with regard to the further features, objects and advantages of the application. The drawings of the illustrative embodiments of the present application and their descriptions are for the purpose of illustrating the present application and are not to be construed as unduly limiting the present application. In the drawings:
FIG. 1 is a flow chart of a method of changing product IDs with a scan code according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a cloud replacement logic flow according to one embodiment of the present application;
FIG. 3 is a flow diagram of a functional implementation flow diagram according to one embodiment of the present application;
FIG. 4 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 5 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring to fig. 1-3, an embodiment of the present application provides a method for changing a product ID by scanning a code, including:
s2: the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes a corresponding relation among the universal unique identification code or mac address, the new product identification information and the equipment in the authorization table;
s4: the device sends a universal unique identification code or mac address to the server;
s6: and the server uses new product identification information corresponding to the equipment according to the corresponding relation in the authorization table.
For example, the server writes uuid (universal unique identification code)/mac and new pid (product identification number) corresponding to the device SN into the extended authorization table; when the device is configured with the network, reporting its uuid/mac+ (original) pid/key, and the server uses the new pid in the expansion table.
In an embodiment of the present application, the method for changing the product ID by scanning the code further includes:
the server establishes an authorization table.
For example, the server newly adds an expansion authorization table, and writes uuid (universal unique identification code)/mac and new pid (product identity number) corresponding to the device SN into the expansion authorization table; when the device is configured with the network, reporting its uuid/mac+ (original) pid/key, and the server uses the new pid in the expansion table.
In an embodiment of the present application, the product identification information is: firmware key or product pid.
In an embodiment of the present application, when the product identification information is a firmware key, modifying an original product pid in an authorization table corresponding to a serial number to be a new product pid;
and when the product identification information is the product pid, the server newly adds an expansion authorization table, and writes the universal unique identification code or mac address corresponding to the equipment serial number and the new product pid into the expansion authorization table.
For example, for a product written with a firmware key in firmware, modifying the pid in the SN corresponding authorization table to be a target pid during code scanning substitution; for the product written with the pid in the firmware, the server newly adds an expansion authorization table, and writes the uuid (universal unique identification code)/mac and the new pid (product identity number) corresponding to the device SN into the expansion authorization table; when the device is configured with the network, reporting its uuid/mac+ (original) pid/key, and the server uses the new pid in the expansion table.
In an embodiment of the present application, the method for changing the product ID by scanning the code further includes:
the server verifies whether the original product pid is consistent with the function point of the new product pid;
when the verification result is consistent, the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes the corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table.
For example, for a product written with a firmware key in firmware, modifying the pid in the SN corresponding authorization table to be a target pid during code scanning substitution; for the product written with the pid in the firmware, the server newly adds an expansion authorization table, and writes the uuid (universal unique identification code)/mac and the new pid (product identity number) corresponding to the device SN into the expansion authorization table; the original pid and the new pid function points must be kept consistent to be replaced, and strict data verification is carried out when a replacement certificate is applied; when the device is configured with the network, reporting its uuid/mac+ (original) pid/key, and the server uses the new pid in the expansion table.
In an embodiment of the present application, the server using new product identification information corresponding to the device according to the correspondence in the authorization table includes:
the server judges whether the device activation call is pid activation or not;
when the device activation call is pid activation, using a new product pid in the extended authorization table; when the device activation call is a key activation, a new product pid in the authorization table is used.
For example, for a product written with a firmware key in firmware, modifying the pid in the SN corresponding authorization table to be a target pid during code scanning substitution; for the product written with the pid in the firmware, the server newly adds an expansion authorization table, and writes the uuid (universal unique identification code)/mac and the new pid (product identity number) corresponding to the device SN into the expansion authorization table; the original pid and the new pid function points must be kept consistent to be replaced, and strict data verification is carried out when a replacement certificate is applied; when the device is configured with a network, reporting its uuid/mac+ (original) pid/key, and the server judges whether the device activation call is pid activation, if yes, using a new pid in the expansion table; if key activation is used, the target pid in the authorization table is used.
One embodiment of the present application further provides a system for changing a product ID by scanning a code, comprising:
the storage module is used for storing a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishing a corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table;
the sending module is used for sending the universal unique identification code or the mac address to the server by the equipment;
and the corresponding module is used for using the new product identification information corresponding to the equipment by the server according to the corresponding relation in the authorization table.
Compared with the prior art, the application has the following beneficial effects:
the factory can stock a product ID by only scanning the device SN (serial number) code to achieve a quick change of product ID (pid). The customer products can be conveniently prepared in batches and can be rapidly delivered.
The core idea of the implementation of the method is that the corresponding relation between the product PID and the firmware key and the equipment is put in cloud control, so that the product PID is easy to replace quickly, and the re-burning authorization is not needed.
Referring to fig. 4, the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, where the processor implements the method of any one of the above when executing the computer program.
Referring to fig. 5, a computer readable storage medium, a non-volatile readable storage medium, has stored therein a computer program which, when executed by a processor, implements the method of any of the above.
A computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the preceding claims.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method for changing a product ID by scanning a code, comprising:
the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes a corresponding relation among the universal unique identification code or mac address, the new product identification information and the equipment in the authorization table;
the device sends a universal unique identification code or mac address to the server;
and the server uses new product identification information corresponding to the equipment according to the corresponding relation in the authorization table.
2. The method of changing a product ID by scanning a code of claim 1, wherein the method of changing a product ID by scanning a code further comprises:
the server establishes an authorization table.
3. The method for changing a product ID by code scanning according to claim 2, wherein the product identification information is: firmware key or product pid.
4. The method for changing product ID by code scanning according to claim 3, wherein when said product identification information is a firmware key, an original product pid in a serial number correspondence authorization table is modified to a new product pid;
and when the product identification information is the product pid, the server newly adds an expansion authorization table, and writes the universal unique identification code or mac address corresponding to the equipment serial number and the new product pid into the expansion authorization table.
5. The method for changing a product ID by scanning a code according to claim 4, further comprising:
the server verifies whether the original product pid is consistent with the function point of the new product pid;
when the verification result is consistent, the server stores a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishes the corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table.
6. The method of changing product ID by scan code according to claim 5, wherein said server using new product identification information corresponding to said device according to said correspondence in said authorization table comprises:
the server judges whether the device activation call is pid activation or not;
when the device activation call is pid activation, using a new product pid in the extended authorization table; when the device activation call is a key activation, a new product pid in the authorization table is used.
7. A system for changing product IDs by scanning codes, comprising:
the storage module is used for storing a universal unique identification code or mac address corresponding to the serial number of the equipment and new product identification information into an authorization table, and establishing a corresponding relation between the universal unique identification code or mac address, new product identification information and the equipment in the authorization table;
the sending module is used for sending the universal unique identification code or the mac address to the server by the equipment;
and the corresponding module is used for using the new product identification information corresponding to the equipment by the server according to the corresponding relation in the authorization table.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any of claims 1-6 when executing the computer program.
9. A computer readable storage medium, in which a computer program is stored which, when executed by a processor, implements the method according to any of claims 1-6.
CN202010036137.8A 2020-01-14 2020-01-14 Method and system for replacing product ID by code scanning Active CN111259024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010036137.8A CN111259024B (en) 2020-01-14 2020-01-14 Method and system for replacing product ID by code scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010036137.8A CN111259024B (en) 2020-01-14 2020-01-14 Method and system for replacing product ID by code scanning

Publications (2)

Publication Number Publication Date
CN111259024A CN111259024A (en) 2020-06-09
CN111259024B true CN111259024B (en) 2023-05-02

Family

ID=70954075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010036137.8A Active CN111259024B (en) 2020-01-14 2020-01-14 Method and system for replacing product ID by code scanning

Country Status (1)

Country Link
CN (1) CN111259024B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification
CN107977214A (en) * 2017-12-18 2018-05-01 广东美的暖通设备有限公司 Method for burn-recording, device and the computer-readable recording medium of smart machine identification code
CN108874697A (en) * 2017-05-15 2018-11-23 王阅 The processing method and its system of USB device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7503072B2 (en) * 1998-04-29 2009-03-10 Microsoft Corporation Hardware ID to prevent software piracy
US6993664B2 (en) * 2001-03-27 2006-01-31 Microsoft Corporation Method and system for licensing a software product
US20040128260A1 (en) * 2002-12-30 2004-07-01 Nokia, Inc. Method and system for protecting against unauthorized modification of products
US9455982B2 (en) * 2011-05-20 2016-09-27 Steve Smith Identification authentication in a communications network
US9514469B2 (en) * 2013-04-21 2016-12-06 International Business Machines Corporation Identification of consumers based on a unique device ID

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874697A (en) * 2017-05-15 2018-11-23 王阅 The processing method and its system of USB device
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification
CN107977214A (en) * 2017-12-18 2018-05-01 广东美的暖通设备有限公司 Method for burn-recording, device and the computer-readable recording medium of smart machine identification code

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾启杰 ; 贺秋芳 ; .基于RFID的产品防伪系统的设计与实现.微计算机信息.2010,(29),全文. *

Also Published As

Publication number Publication date
CN111259024A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN108153670B (en) Interface testing method and device and electronic equipment
CN108228814B (en) Data synchronization method and device
CN110276060B (en) Data processing method and device
CN105262831A (en) Method, device, and synchronizing system for synchronizing data among memory systems
CN106528289B (en) Resource operation processing method and device
CN105718517A (en) Webpage display control method and system, and application server
CN109885612B (en) Synchronous validation method and device for intelligent contracts of block chains
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
CN108366101A (en) Information processing system, the control method of information processing system and storage medium
CN113220431A (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN111654399A (en) Networking method, device and equipment based on SD-WAN and storage medium
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
CN106708842B (en) Method for loading data by application system, database and application system
CN106789170B (en) Task processing method and device
CN111259024B (en) Method and system for replacing product ID by code scanning
CN107179943A (en) A kind of device for allocating resources and resource allocation method
CN106130758A (en) Smart machine method for upgrading software and device
CN110879779B (en) Joint debugging test method and system
US20220300957A1 (en) Control method, device, and recording medium
CN107562440B (en) Eeprom version updating method and device
CN115951923A (en) Subscription event management method and related product
CN111209613B (en) Rapid design method and system for intelligent product
CN113760230A (en) Service processing method and device
CN112346747A (en) Product service authorization method, electronic device and storage medium
CN111065079A (en) Local device binding method and 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