5026 views|7 replies

2

Posts

0

Resources
The OP
 

Please help me~How to write the product serial number on the firmware of electronic products [Copy link]

I would like to ask you a question about the product serial number. We want to set a serial number for the product so that the serial number can be automatically read out by the background after the product is connected to the Internet. And we need to implement the serial number label (attached to the body and packaging) and the firmware serial number is consistent. However, during the development process, it was found that the firmware burned in mass production is the same. Can you please tell me how to implement the serial number of the product firmware? How is the serial number usually generated? Can the serial number label and firmware serial number in mass production be consistent? Thank you!!!


This post is from stm32/stm8

Latest reply

      If you want to write a pre-programmed product serial number, you can divide a storage area in FLASH to store product information and other content, and burn the area separately after the product is completed. Conditions that need to be met: 1. Communicate with the host computer through UART/CAN and other methods. 2. Define the communication protocol. 3. The host computer and the slave computer design related software according to the communication protocol. Similar to designing BOOTLOADER.  Details Published on 2018-1-8 21:46
 

650

Posts

8

Resources
2
 
The last step in production is writing and pasting the serial number.
This post is from stm32/stm8
 
 

2002

Posts

24

Resources
3
 
Read chip UID number
This post is from stm32/stm8
 
 

1025

Posts

1

Resources
4
 
Some burning software can add a fixed number of bytes in HEX and automatically add one after burning. Or write a small software test in bytes and write the serial number in the product's FLASH after completion.
This post is from stm32/stm8
 
 
 

4005

Posts

0

Resources
5
 
Build a database to associate chip ID numbers with other information.
This post is from stm32/stm8
 
 
 

9720

Posts

24

Resources
6
 
1. Before downloading the firmware, use software to edit the address data (serial number) corresponding to the firmware and then download the firmware. This is suitable for fixed serial numbers, for example, you want it to be 1, 2, 3. 2. Use UID. You can use UID directly or use an algorithm to generate the serial number you want through UID. Part of this serial number is random because it is related to the UID of the chip. You can read and print it directly when flashing the firmware, or print it by calling the serial port command after flashing the firmware. 3. After flashing the firmware, use the serial port command to write the serial number. Design the logic of receiving and saving the serial number through the serial port in the code. Receive the serial number sent by the serial port and save it in FLASH during the first run. The serial number implemented by this method is the same as method 1 and can be customized at will.
This post is from stm32/stm8
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

20

Posts

0

Resources
7
 
If the microcontroller has UID, read the UID. If it doesn't, you can use functions like rolling code. To read it out, you can write a small communication function.
This post is from stm32/stm8
 
 
 

525

Posts

235

Resources
8
 
      If you want to write a pre-programmed product serial number, you can divide a storage area in FLASH to store product information and other content, and burn the area separately after the product is completed. Conditions that need to be met: 1. Communicate with the host computer through UART/CAN and other methods. 2. Define the communication protocol. 3. The host computer and the slave computer design related software according to the communication protocol. Similar to designing BOOTLOADER.
This post is from stm32/stm8
 
Personal signature爱电子,爱生活
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list