Sensor device supporting data communication

Through the blocking method of sensor PCB circuit and MCU logic processing module and other components, the data communication function of the sensor and identity encoding storage are realized, solving the problem that the sensor cannot achieve unique encoding of a single product, and improving the accuracy of product quality traceability.

CN222366272UActive Publication Date: 2025-01-17SU ZHOU HAN SHI KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421228538.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2025-01-17
Estimated Expiration
2034-05-31

AI Technical Summary

Technical Problem

Sensors cannot realize the unique identity encoding and data communication functions of a single product, resulting in the inability to accurately trace product quality.

Method used

The data communication function is realized through the block production of the sensor PCB circuit, combined with the MCU logic processing module, data output module and data switching module, allowing identity encoding to be posted on the PCB or product outside, and the identity encoding is stored in the MCU.

Benefits of technology

It realizes the unique identity encoding and data communication functions of a single product, and can encode and store the product when its physical condition is small, improving the accuracy of product quality traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222366272U_ABST
    Figure CN222366272U_ABST
Patent Text Reader

Abstract

The utility model provides a sensor device supporting data communication, comprising an MCU logic processing module used for data modulation and data decoding; the data output module is used for sending communication data to the sending part equipment; the data switching module is used for receiving the communication data sent by the sending part equipment; the data output module comprises an OUT, an R2, a Q1, a D1 and an LOUT, and the data switching module comprises a DARK, a D2, an R3 and an L / D. The sensor PCB circuit is produced in a block splicing mode, for example, 20 PCS forms a PCB, namely 20 products form an identity code, batch codes are usually composed of production dates and serial numbers, and products produced at a time form a string of codes; a unique identity code can be established for a single product, even if the product is small in size, the identity code can be attached to the outside of a PCB or the product, the communication function is achieved, and the identity code is stored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of industrial measurement and control equipment, in particular to a sensor device supporting data communication. Background Art

[0002] A sensor is a detection device that can sense the information being measured and convert the sensed information into electrical signals or other required forms of information output according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control.

[0003] The existence and development of sensors have given objects senses such as touch, taste and smell, making objects come alive. Sensors are an extension of human's five senses. Sensor switch sensors have switch signal output (ie NPN / PNP signal) and cannot realize data communication function.

[0004] With the development of the manufacturing industry, companies are increasingly strict with product quality control. Companies have also established various production management systems, such as product quality traceability systems. The production process of sensor switch sensors can only be traced back to batches, and cannot be accurately traced to individual products. The main reason is that it is impossible to establish a unique identity code for a single product. This is mainly due to the characteristics of the product. The product is small, and the identity code cannot be attached to the PCB or the outside of the product. It does not have communication functions and cannot store the identity code. Utility Model Content

[0005] The purpose of the utility model is to provide a sensor device supporting data communication in view of the deficiencies in the prior art. The sensor PCB circuit is produced in a block manner, such as 20 PCS to form a PCB board, that is, 20 products form an identity code, and the batch code is usually composed of a production date + serial number, and a string of codes is composed of products produced at a single time; a unique identity code can be established for a single product, even if the product is small, the identity code can be affixed to the PCB or the outside of the product, and the communication function is provided to realize the storage of the identity code.

[0006] In order to achieve the above purpose, the utility model provides the following technical solutions:

[0007] A sensor device supporting data communication, characterized by comprising:

[0008] MCU logic processing module, the MCU logic processing module is used for data modulation and data decoding;

[0009] A data output module, wherein the data output module sends communication data to a transmitting device;

[0010] A data switching module, wherein the switching module receives communication data sent by a transmitting device;

[0011] The data output module includes OUT, R2, Q1, D1, and LOUT, and the data switching module includes DARK, D2, R3, and L / D.

[0012] Among them, OUT is the MUC output signal, which is used to control the LOUT signal output, Q1 is the NPN output transistor, R2 is the base input resistor, D1 is the TVS protection diode, and LOUT is the NPN output signal line.

[0013] Among them, DARK is the external signal input terminal, D2 is a unidirectional diode, R3 is a pull-up resistor, and L / D is a low level.

[0014] The beneficial effects of the utility model are:

[0015] (1) The utility model uses a sensor PCB circuit to produce in a block manner, such as 20 PCS to form a PCB board, that is, 20 products form an identity code, and the batch code is usually composed of production date + serial number, and the products produced in a single time form a string of codes; a unique identity code can be established for a single product. Even if the product is small, the identity code can be affixed to the PCB or the outside of the product, and it has a communication function to realize the storage of the identity code.

[0016] (2) The communication coding timing diagram of the utility model, the start code is composed of 3 pulse signals with a high of 1ms and a low of 500us. The logic 0 in the data bit is composed of a 100us+50us pulse, and the logic 1 is composed of a 200us+50us pulse. 4 bytes of data can be transmitted each time, that is, 0Xffffffff.

[0017] (3) The utility model writes the 0XFE 0XFE 0XFE 0XFE instruction to the LD signal input. After receiving the correct instruction, the MCU replies with 0X000X000X000X00. At this time, a 10-bit identity code consisting of year, month, day + serial number can be written to the LD signal input. After receiving the correct instruction, the MCU replies with 0X000X000X000X00. Write 0XFD 0XFD0XFD 0XFD to the LD signal input. After receiving the correct instruction, the MCU saves the 10-bit identity code in the FLASH and replies with 0X000X000X000X00. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a schematic diagram of the system principle of the utility model;

[0019] Figure 2 This is a schematic diagram of the data output module circuit of the utility model;

[0020] Figure 3 This is a schematic diagram of the data switching module circuit of the utility model;

[0021] Figure 4 This is a schematic diagram of the MCU main control circuit of the utility model;

[0022] Figure 5 This is the communication coding timing diagram of the utility model;

[0023] Figure 6 This is a schematic diagram of the sensor identity code writing process of the utility model;

[0024] Figure 7 This is a schematic diagram of the sensor identity code reading process of the utility model. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0026] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0027] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0028] Example

[0029] like Figure 1-Figure 7As shown, this embodiment provides a sensor device supporting data communication, including: an MCU logic processing module, the MCU logic processing module is used for data modulation and data decoding; a data output module, the data output module sends communication data to a transmitting device; a data switching module, the switching module receives the communication data sent by the transmitting device; this embodiment can also be called "an NPN / PNP sensor device supporting data communication";

[0030] like Figure 2 As shown, the data output module is an NPN / PNP output circuit, including OUT, R2, Q1, D1, and LOUT, where OUT is the MUC output signal, which is used to control the LOUT signal output, Q1 is an NPN output transistor, R2 is a base input resistor, D1 is a TVS protection diode, and LOUT is an NPN output signal line;

[0031] When MUC outputs a high level, Q1 transistor is turned on and LOUT outputs a low level. When OUT outputs a low level, Q1 transistor is turned off and LOUT has no output.

[0032] like Figure 3 As shown, the data switching module is an L / D (light on / dark on) switching circuit, including DARK, D2, R3, and L / D, wherein DARK is an external signal input terminal, D2 is a unidirectional diode, R3 is a pull-up resistor, and L / D is a low level. When DARK is connected to a low level, D2 is forward-conducted and L / D is a low level.

[0033] like Figure 4 The figure shows the MCU main control circuit, U1 is the MCU, OUT is the control signal output terminal, and L / D is the external signal input terminal;

[0034] like Figure 5 The figure shows the communication coding timing diagram. The start code consists of 3 pulse signals with a high of 1ms and a low of 500us. The logic 0 in the data bit consists of a 100us+50us pulse, and the logic 1 consists of a 200us+50us pulse. 4 bytes of data can be transmitted each time, that is, 0Xffffffff.

[0035] Instruction code definition: 0xFF 0xFF 0xFF 0xFF identity code read instruction;

[0036] 0xFE 0xFE 0xFE 0xFE Identity code write instruction;

[0037] 0xFD 0xFD 0xFD 0xFD Identity code save instruction;

[0038] 0x000x000x000x00 response command;

[0039] Sensor ID encoding format:

[0040] It is composed of year, month, day + serial number. For example, 2403101100 means March 10, 2024, serial number 1100.

[0041] like Figure 6 The figure shows the sensor identity code writing process. Write 0XFE 0XFE 0XFE 0XFE instruction to the LD signal input. After receiving the correct instruction, the MCU replies with 0X000X000X000X00. At this time, you can write a 10-bit identity code consisting of year, month, day + serial number to the LD signal input. After receiving the correct instruction, the MCU replies with 0X000X000X000X00. Write 0XFD 0XFD 0XFD 0XFD to the LD signal input. After receiving the correct instruction, the MCU saves the 10-bit identity code in FLASH and replies with 0X000X000X000X00.

[0042] like Figure 7 The figure shows the sensor identity code reading process. Write 0XFF 0XFF 0XFF 0XFF command to the LD signal input. After receiving the correct command, the MCU replies with a 10-digit identity code consisting of year, month, day + serial number.

[0043] The implementation steps are as follows:

[0044] PCB single board silk screen coding:

[0045] Normally, sensor PCB circuits are produced in blocks, such as 20 PCS to form a PCB board, that is, 20 products form an identity code.

[0046] By production batch code:

[0047] Batch code is usually composed of production date + serial number, with a string of codes for products produced in a single batch;

[0048] A unique identity code can be established for a single product. Even if the product is small, the identity code can be affixed to the PCB or the outside of the product. It has communication functions and can store the identity code.

[0049] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A sensor device supporting data communication, characterized in that: include: MCU logic processing module, the MCU logic processing module is used for data modulation and data decoding; A data output module, wherein the data output module sends communication data to a transmitting device; A data switching module, wherein the switching module receives communication data sent by a transmitting device; The data output module includes OUT, R2, Q1, D1, and LOUT, and the data switching module includes DARK, D2, R3, and L / D.

2. A sensor device supporting data communication according to claim 1, characterized in that: Among them, OUT is the MUC output signal, which is used to control the LOUT signal output, Q1 is the NPN output transistor, R2 is the base input resistor, D1 is the TVS protection diode, and LOUT is the NPN output signal line.

3. A sensor device supporting data communication according to claim 1, characterized in that: Among them, DARK is the external signal input terminal, D2 is a unidirectional diode, R3 is a pull-up resistor, and L / D is a low level.