Camera identity authentication and anti-counterfeiting method and system based on 1-Wire chip
By installing a 1-Wire chip on the vehicle camera and combining it with an encrypted challenge-response mechanism and two-way authentication, the problem of poor authentication and anti-counterfeiting mechanisms of vehicle cameras is solved, achieving high-security and widely applicable identity authentication, and preventing the camera from being tampered with and forged.
Patent Information
- Application Number
- CN202511259011.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-04
- Publication Date
- 2025-11-18
AI Technical Summary
Existing vehicle camera authentication and anti-counterfeiting mechanisms are inadequate, making them easy to be misused and infringing on user privacy.
The authentication method based on the 1-Wire chip is adopted. By installing a 1-Wire chip with a globally unique ID on the camera, combined with embedded software and the 1-Wire interface to read the ID, and comparing it with the vehicle host and using an encrypted challenge-response mechanism, two-way authentication and forced re-authentication after power failure and restart are achieved.
It improves the security and anti-counterfeiting effect of cameras, prevents cameras from being tampered with and forged, reduces equipment costs, is suitable for embedded systems, enables offline and online identity authentication, and is widely applicable.
Smart Images

Figure CN120979773A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of camera technology, and more specifically, to a camera authentication and anti-counterfeiting method and system based on a 1-Wire chip. Background Technology
[0002] A webcam is a video input device, also known as a computer camera or computer eye, and is widely used in video conferencing, telemedicine, and real-time monitoring. With the development of internet technology and the maturity of photosensitive imaging device technology, the price of webcams has gradually decreased, making them affordable for ordinary people.
[0003] In order to provide real-time video and audio display capabilities, offer a more scientific basis for handling and locating traffic accidents, and fully protect people's property and personal safety, people install in-vehicle cameras in their car dashcams.
[0004] While existing vehicle cameras can meet the requirements for real-time recording, their authentication and anti-counterfeiting mechanisms are poor, making them easy to be impersonated, which infringes on users' privacy. Summary of the Invention
[0005] In view of the deficiencies in the prior art, the purpose of this invention is to provide a camera identity authentication and anti-counterfeiting method and system based on a 1-Wire chip.
[0006] A camera authentication and anti-counterfeiting method based on a 1-Wire chip, provided by the present invention, includes: Step S1: Obtain the ID of the 1-Wire chip from the camera equipped with the 1-Wire chip, and send the obtained 1-Wire chip ID to the vehicle host. Step S2: The vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database. If the comparison is correct, the vehicle host establishes a video channel with the camera. If the comparison is incorrect, the vehicle host and the camera cannot establish a video channel, and the vehicle host records the current time, device number and abnormal situation, triggering the execution of security measures. The registration information includes: the ID of the 1-Wire chip, the camera number, and the vehicle number.
[0007] Preferably, before performing camera identity authentication and anti-counterfeiting based on the 1-Wire chip, a 1-Wire chip with a globally unique ID is installed on the camera motherboard. The camera is powered on and initialized, and reads the ID of the 1-Wire chip. The camera transmits the ID of the 1-Wire chip to the vehicle host. The vehicle host communicates with the main control system. The main control system sends the unique SN number of the vehicle host and the 1-Wire chip ID bound to the vehicle host to the vehicle host. The vehicle host saves the unique SN number of the vehicle host and the 1-Wire chip ID bound to the vehicle host.
[0008] Preferably, step S1 includes: Step S1.1: The camera reads the ID of the 1-Wire chip by using embedded software and a 1-Wire interface; Step S1.2: The camera sends the ID of the 1-Wire chip it reads to the vehicle host via CAN, Ethernet or serial port.
[0009] Preferably, the method further includes: if the vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database and finds no error, the vehicle host randomly generates a challenge random number and sends it to the camera end through the 1-Wire interface; the camera end MCU calls the key stored in the 1-Wire chip and performs encryption operation with the challenge random number, and returns the operation result to the vehicle host; the vehicle host performs the same encryption operation according to the locally stored or allocated key, and compares whether the results are consistent. If they are consistent, the authentication is successful and a video channel is established; otherwise, the establishment of a video channel is rejected.
[0010] Preferably, the method further includes: performing two-way authentication between the camera and the vehicle host; after successful two-way authentication, a video channel is established. The camera and the vehicle-mounted host perform two-way authentication, including: after the vehicle-mounted host verifies that the camera is a legitimate device, the vehicle-mounted host generates a challenge random number again, verifies the identity of the vehicle-mounted host through the camera, and establishes a video channel between the two parties after confirming that there is no error.
[0011] Preferably, the method further includes: triggering re-authentication when the camera is powered off and restarted; The triggering of re-authentication includes: the vehicle host maintaining the camera authentication status table, recording the camera's chip ID and the timestamp of the last authentication; when a camera is detected to be powered off or the link is interrupted, the device status is marked as "unauthenticated"; when the camera is powered on again, the 1-Wire chip authentication process is re-triggered, and video data transmission can only be resumed after successful authentication.
[0012] Preferably, the security measures triggered in step S2 include: sending an alarm signal to the monitoring platform's operation and maintenance server or the vehicle system, turning the camera image to a black screen or adding a watermark to indicate an illegal device, and refusing video stream uploads to protect data security by preventing video streams from abnormal cameras from entering the vehicle network or being uploaded to the backend, thereby preventing data leakage and security risks.
[0013] According to the present invention, a camera authentication and anti-counterfeiting system based on a 1-Wire chip includes: Module M1: Obtains the ID of the 1-Wire chip from the camera equipped with the 1-Wire chip, and sends the obtained 1-Wire chip ID to the vehicle host. Module M2: The vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database. If the comparison is correct, the vehicle host establishes a video channel with the camera. If the comparison is incorrect, the vehicle host and the camera cannot establish a video channel, and the vehicle host records the current time, device number and abnormal situation, triggering the execution of security measures. The registration information includes: the ID of the 1-Wire chip, the camera number, and the vehicle number.
[0014] Preferably, the module M1 includes: Module M1.1: The camera reads the ID of the 1-Wire chip through embedded software and a 1-Wire interface; Module M1.2: The camera sends the ID of the 1-Wire chip it reads to the vehicle host via CAN, Ethernet or serial port.
[0015] Preferably, the system further includes: if the vehicle-mounted host obtains the 1-Wire chip ID and the registration information in the local database and they are correct, the vehicle-mounted host randomly generates a challenge random number and sends it to the camera end through the 1-Wire interface; the camera end MCU calls the key stored in the 1-Wire chip and performs encryption calculation with the challenge random number, and returns the calculation result to the vehicle-mounted host; the vehicle-mounted host performs the same encryption calculation according to the locally stored or allocated key, and compares whether the results are consistent. If they are consistent, the authentication is successful and a video channel is established; otherwise, the establishment of a video channel is rejected. The camera and the vehicle's main unit perform two-way authentication. Once the two-way authentication is successful, a video channel is established. The camera and the vehicle-mounted host perform two-way authentication, including: after the vehicle-mounted host verifies that the camera is a legitimate device, the vehicle-mounted host generates a challenge random number again, verifies the identity of the vehicle-mounted host through the camera, and establishes a video channel between the two parties after confirming that there is no error.
[0016] Compared with the prior art, the present invention has the following beneficial effects: 1. The equipment of the present invention has low cost. The price of 1-Wire chip is usually a few cents to a few yuan. 1-Wire chip has a unique ID and can prevent tampering, making it suitable for batch management; 2. The camera in this invention can be bound to the vehicle host to achieve offline and online identity authentication. It has a wide range of applications, does not require high computing resources, is suitable for embedded camera systems, and has good versatility. 3. This invention not only achieves basic anti-counterfeiting based on 1-Wire chip ID, but also further constructs an encrypted challenge-response mechanism, a two-way authentication mechanism between the host and the camera, and a forced re-authentication mechanism after power failure and restart, to avoid man-in-the-middle devices simulating the camera and prevent temporary disguise and temporary insertion of simulated devices, thereby significantly improving the overall security and anti-counterfeiting effect. 4. The ID of this invention is embedded inside the 1-Wire chip and cannot be forged by software. The 1-Wire chip is bound at a unique binding position to prevent unauthorized interchange between devices. Even if the physical appearance is the same, an unauthorized camera cannot forge the original 1-Wire chip ID. Even if someone copies the casing or circuit, the replacement behavior can be detected by the failure of ID verification. Attached Figure Description
[0017] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 This is a flowchart of a camera authentication and anti-counterfeiting method based on a 1-Wire chip. Detailed Implementation
[0018] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0019] Example 1 According to the present invention, a camera authentication and anti-counterfeiting method based on a 1-Wire chip is provided, such as... Figure 1 As shown, it includes: Step 1: Install a 1-Wire chip with a globally unique ID on the camera; Step 2: Start the camera, read the ID of the 1-Wire chip and send the read ID to the vehicle host. The vehicle host searches the local database to check if the ID exists and confirms whether it matches the registration information. Step 3: If the match is successful, the camera will work normally; if the match fails, the camera will not work, security measures will be implemented, and an abnormal status will be reported.
[0020] Specifically, step 1 includes: installing a 1-Wire chip with a globally unique ID on the camera motherboard. This 1-Wire chip is non-copyable and non-replaceable, and communicates and verifies with the main control system (such as an in-vehicle host or monitoring platform) during camera startup or periodically. Specifically, the camera is powered on and initializes, and reads the ID of the 1-Wire chip. The camera transmits the ID of the 1-Wire chip to the in-vehicle host. The in-vehicle host communicates with the main control system. The main control system sends the unique SN number of the in-vehicle host and the 1-Wire chip ID bound to the in-vehicle host to the in-vehicle host. The in-vehicle host stores the unique SN number of the in-vehicle host and the 1-Wire chip ID bound to the in-vehicle host.
[0021] Specifically, a 1-Wire chip with a globally unique ID is installed on the camera motherboard by soldering.
[0022] Specifically, the main control system binds and registers the 1-Wire chip's ID, camera number, vehicle number, and installation location, generating registration information.
[0023] As a further aspect of the present invention: the camera reads the ID of the 1-Wire chip by means of embedded software and 1-Wire interface.
[0024] Specifically, the camera sends the read ID to the main control system through communication interfaces such as CAN, Ethernet, and serial port.
[0025] Specifically, the 1-Wire chip is model DS2411 or DS2431. These models have EEPROM, which can store keys, implement a challenge-response mechanism, and perform higher-level authentication. More specifically, firstly, regarding 1-Wire chip encryption verification, if a model with EEPROM is selected, the key can be written into the chip's designated storage area during the production stage. During the authentication process, the vehicle-mounted host randomly generates a challenge number and sends it to the camera via the 1-Wire interface. The camera's MCU uses the key stored in the 1-Wire chip and performs calculations with the challenge number, such as HMAC-SHA1 or SM3, and returns the result to the host. The host then performs the same calculation using a locally stored or backend-assigned key, comparing the results. If they match, authentication is successful; otherwise, the video link is rejected. This method effectively prevents the vulnerability of relying solely on the chip ID, which is easily copied.
[0026] Secondly, regarding the two-way authentication between the camera and the vehicle-mounted host, the authentication process requires not only the host to verify the camera's legitimacy, but also the camera to verify the host. Specifically, after the camera powers on, it reads the challenge random number sent by the host and calculates and sends back the response. The host then verifies that the camera is a legitimate device. Subsequently, the host generates another challenge random number, requiring the camera to verify the host's identity. Only after this verification is successful do the two parties establish a video channel. If authentication fails in either direction, communication is immediately terminated to prevent man-in-the-middle devices from posing as legitimate cameras or legitimate hosts.
[0027] Finally, regarding forced re-authentication upon camera power failure and restart, the vehicle's main unit maintains a camera authentication status table, recording the camera's chip ID and the timestamp of the last authentication. Once a camera power failure or link interruption is detected, the device status is marked as "unauthenticated." When the camera is powered back on, the complete 1-Wire chip authentication process must be re-executed; only after successful authentication can video data transmission resume. This prevents attackers from quickly inserting a counterfeit device when the camera is offline, thus effectively preventing attacks involving temporary spoofing and unauthorized device insertion.
[0028] The present invention also provides a camera identity authentication and anti-counterfeiting system based on a 1-Wire chip. The camera identity authentication and anti-counterfeiting system based on a 1-Wire chip can be implemented by executing the process steps of the camera identity authentication and anti-counterfeiting method based on a 1-Wire chip. That is, those skilled in the art can understand the camera identity authentication and anti-counterfeiting method based on a 1-Wire chip as a preferred embodiment of the camera identity authentication and anti-counterfeiting system based on a 1-Wire chip.
[0029] Example 2 A camera authentication and anti-counterfeiting method based on a 1-Wire chip, provided by the present invention, includes the following steps: Installation phase Step 1.1: Solder a 1-Wire chip with a globally unique ID, such as DS2411 or DS2431, onto the camera motherboard; Step 1.2: After the camera is powered on and initialized, read the chip's unique serial number and ROM ID.
[0030] Step 1.3: Transmit the unique ID to the device (vehicle host) via the communication protocol.
[0031] Step 1.4: The device operation platform communicates with the device and sends the device's unique SN number and the camera 1-Wire chip ID bound to it to the device, which then saves the information.
[0032] Step 1.5: The platform binds and registers the ID with the camera number, vehicle number, installation location, etc., to form registration information.
[0033] The operational phase, namely the camera identity authentication process; Step 2.1: The camera is powered on and started up. The embedded software driver reads the chip ID through the 1-Wire interface.
[0034] Step 2.2: The camera will send the ID it reads to the main control system through a communication interface, such as CAN, Ethernet, or serial port.
[0035] Step 2.3: The main control system searches the local database to check if the ID exists and matches the registration information; Step 2.4: If the match is successful, the camera can continue to upload video / image data normally; if the match fails, i.e. the ID is missing, incorrect, or inconsistent, the "abnormal state handling process" will be entered.
[0036] Abnormal status handling process Step 3.1: The main controller records the current time, device number, and any abnormal situations, such as missing ID or authentication failure. Step 3.2: The following security measures can be triggered and are configurable: Send alarm signals to the monitoring platform's operation and maintenance server or the vehicle's in-vehicle system; The camera image turns black or adds a watermark, indicating an unauthorized device. Rejecting video stream uploads protects data security by preventing video streams from unauthorized cameras from entering the vehicle network or being uploaded to the backend, thus preventing data leaks and security risks.
[0037] In practical applications, cameras can be dynamically added and bound based on the specific number of cameras supported by the dashcam. Therefore, the cameras are those with built-in 1-Wire chips (such as DS2411 / DS2431), capable of transmitting audio and video signals and the 1-Wire chip ID to the dashcam in real time. The dashcam software can obtain the 1-Wire chip ID information transmitted by the cameras in real time. The main control system is server-side software designed for real-time detection of cameras to prevent substitution, and can remotely send the 1-Wire chip ID information bound when the cameras are installed.
[0038] Those skilled in the art will understand that, in addition to implementing the system, apparatus, and their modules provided by this invention in purely computer-readable program code, the same program can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system, apparatus, and their modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; alternatively, modules for implementing various functions can be considered both software programs implementing the method and structures within the hardware component.
[0039] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A camera authentication and anti-counterfeiting method based on a 1-Wire chip, characterized in that, include: Step S1: Obtain the ID of the 1-Wire chip from the camera equipped with the 1-Wire chip, and send the obtained 1-Wire chip ID to the vehicle host. Step S2: The vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database. If the comparison is correct, the vehicle host establishes a video channel with the camera. If the comparison is incorrect, the vehicle host and the camera cannot establish a video channel, and the vehicle host records the current time, device number and abnormal situation, triggering the execution of security measures. The registration information includes: the ID of the 1-Wire chip, the camera number, and the vehicle number.
2. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 1, characterized in that, Before using 1-Wire chips for camera identity authentication and anti-counterfeiting, a 1-Wire chip with a globally unique ID is installed on the camera's motherboard. The camera is powered on and initialized, and reads the ID of the 1-Wire chip. The camera transmits the ID of the 1-Wire chip to the vehicle host. The vehicle host communicates with the main control system. The main control system sends the unique SN number of the vehicle host and the 1-Wire chip ID bound to the vehicle host to the vehicle host. The vehicle host saves the unique SN number of the vehicle host and the 1-Wire chip ID bound to the vehicle host.
3. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 1, characterized in that, Step S1 includes: Step S1.1: The camera reads the ID of the 1-Wire chip by using embedded software and a 1-Wire interface; Step S1.2: The camera sends the ID of the 1-Wire chip it reads to the vehicle host via CAN, Ethernet or serial port.
4. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 1, characterized in that, The method further includes: if the vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database and they are correct, the vehicle host randomly generates a challenge random number and sends it to the camera end through the 1-Wire interface; the camera end MCU calls the key stored in the 1-Wire chip to perform encryption operation with the challenge random number and returns the operation result to the vehicle host; the vehicle host performs the same encryption operation according to the locally stored or allocated key and compares whether the results are consistent. If they are consistent, the authentication is successful and a video channel is established; otherwise, the establishment of a video channel is rejected.
5. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 4, characterized in that, The method also includes: two-way authentication between the camera and the vehicle host; after successful two-way authentication, a video channel is established. The camera and the vehicle-mounted host perform two-way authentication, including: after the vehicle-mounted host verifies that the camera is a legitimate device, the vehicle-mounted host generates a challenge random number again, verifies the identity of the vehicle-mounted host through the camera, and establishes a video channel between the two parties after confirming that there is no error.
6. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 1, characterized in that, The method further includes: triggering re-authentication when the camera is powered off and restarted; The triggering of re-authentication includes: the vehicle host maintaining the camera authentication status table, recording the camera's chip ID and the timestamp of the last authentication; when a camera is detected to be powered off or the link is interrupted, the device status is marked as "unauthenticated"; when the camera is powered on again, the 1-Wire chip authentication process is re-triggered, and video data transmission can only be resumed after successful authentication.
7. The camera authentication and anti-counterfeiting method based on a 1-Wire chip according to claim 1, characterized in that, The security measures triggered in step S2 include: sending an alarm signal to the monitoring platform's operation and maintenance server or the vehicle system, turning the camera image to a black screen or adding a watermark to indicate an illegal device, and refusing video stream uploads. These measures protect data security by preventing video streams from abnormal cameras from entering the vehicle network or being uploaded to the backend, thus preventing data leakage and security risks.
8. A camera authentication and anti-counterfeiting system based on a 1-Wire chip, characterized in that, include: Module M1: Obtains the ID of the 1-Wire chip from the camera equipped with the 1-Wire chip, and sends the obtained 1-Wire chip ID to the vehicle host. Module M2: The vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database. If the comparison is correct, the vehicle host establishes a video channel with the camera. If the comparison is incorrect, the vehicle host and the camera cannot establish a video channel, and the vehicle host records the current time, device number and abnormal situation, triggering the execution of security measures. The registration information includes: the ID of the 1-Wire chip, the camera number, and the vehicle number.
9. The camera authentication and anti-counterfeiting system based on a 1-Wire chip according to claim 8, characterized in that, The module M1 includes: Module M1.1: The camera reads the ID of the 1-Wire chip through embedded software and a 1-Wire interface; Module M1.2: The camera sends the ID of the 1-Wire chip it reads to the vehicle host via CAN, Ethernet or serial port.
10. The camera authentication and anti-counterfeiting system based on a 1-Wire chip according to claim 8, characterized in that, The system further includes: if the vehicle host compares the obtained 1-Wire chip ID with the registration information in the local database and they are correct, the vehicle host randomly generates a challenge random number and sends it to the camera end through the 1-Wire interface; the camera end MCU calls the key stored in the 1-Wire chip and performs encryption calculation with the challenge random number, and returns the calculation result to the vehicle host; the vehicle host performs the same encryption calculation according to the locally stored or allocated key, and compares whether the results are consistent. If they are consistent, the authentication is successful and a video channel is established; otherwise, the establishment of a video channel is rejected. The camera and the vehicle's main unit perform two-way authentication. Once the two-way authentication is successful, a video channel is established. The camera and the vehicle-mounted host perform two-way authentication, including: after the vehicle-mounted host verifies that the camera is a legitimate device, the vehicle-mounted host generates a challenge random number again, verifies the identity of the vehicle-mounted host through the camera, and establishes a video channel between the two parties after confirming that there is no error.