Industrial code reader

By introducing Ethernet communication circuits, serial communication circuits, and input/output circuits into the industrial barcode reader, and using the main control chip to control the controllable switch, an automated detection signal loop is constructed, solving the problem of low efficiency in traditional manual detection and realizing efficient interface function testing.

CN223728244UActive Publication Date: 2025-12-26SHENZHEN YANXIANG JINMA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423280872.6
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-12-26
Estimated Expiration
2034-12-30

AI Technical Summary

Technical Problem

Network communication testing of traditional industrial barcode readers relies on manual operation, resulting in low testing efficiency.

Method used

It employs Ethernet communication circuits, serial communication circuits, and input/output circuits, and controls controllable switches through a main control chip to construct an automated detection signal loop, thereby realizing automated detection of the functions of each interface of the barcode reader.

Benefits of technology

It improves the testing efficiency of various interface functions of the barcode reader, realizes automated testing, reduces manual intervention, and enhances testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223728244U_ABST
    Figure CN223728244U_ABST
Patent Text Reader

Abstract

The utility model provides an industrial code reader, comprising an Ethernet communication circuit comprising an Ethernet PHY chip, a network transformer and an Ethernet interface, a TX end and an RX end of the Ethernet PHY chip being connected to a TX end and an RX end of the Ethernet interface through the network transformer; the first controllable switch is connected between the TX end and the RX end of the Ethernet interface and is used for directly communicating the TX end and the RX end of the Ethernet interface when the communication function of the Ethernet communication circuit is detected; and the main control chip is connected with the RGMII interface of the Ethernet PHY chip and is used for sending a TCP / IP data packet to the Ethernet interface and receiving a fed-back TCP / IP data packet when the communication function of the Ethernet communication circuit is detected. According to the utility model, the network communication function can be automatically detected, and the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to a code scanning equipment technical field especially relates to an industry code reader. BACKGROUND

[0002] In the current industrial automation field, the code reader is widely used to read various bar codes, two-dimensional codes and other visual marks. However, the code reader needs to go through a plurality of function tests before leaving the factory, such as serial communication test, network communication test, IO interface detection, LED lamp detection, etc. The traditional detection mode usually relies on manual operation. Taking the network communication test as an example, the tester connects the test equipment to the network interface, and then tests whether the network communication is normal, which is low in test efficiency. UTILITARY MODEL CONTENT

[0003] To solve the above problems, the utility model provides an industry code reader, which is convenient for automatically detecting network communication function and improves test efficiency.

[0004] The utility model provides an industry code reader, which comprises:

[0005] The Ethernet communication circuit comprises an Ethernet PHY chip, a network transformer and an Ethernet interface, the TX end and the RX end of the Ethernet PHY chip are connected to the TX end and the RX end of the Ethernet interface through the network transformer, and the network transformer is used for providing signal isolation;

[0006] The first controllable switch is connected between the TX end and the RX end of the Ethernet interface and is used for directly connecting the TX end and the RX end of the Ethernet interface when detecting the communication function of the Ethernet communication circuit;

[0007] The main control chip is connected with the RGMII interface of the Ethernet PHY chip and is used for controlling the first controllable switch to be turned on, sending a TCP / IP data packet to the Ethernet interface and receiving a feedback TCP / IP data packet when detecting the communication function of the Ethernet communication circuit.

[0008] Optionally, the Ethernet PHY chip supports the network communication of a gigabit network.

[0009] Optionally, the Ethernet interface is an RJ45 interface.

[0010] Optionally, the industry code reader further comprises:

[0011] The serial communication circuit comprises a serial port level conversion circuit and a serial port interface, the serial port level conversion circuit is connected between the main control chip and the serial port interface and is used for performing level conversion on the serial port data received and transmitted by the serial port interface;

[0012] a second controllable switch connected between the TX end and the RX end of the serial port interface, for directly connecting the TX end and the RX end of the serial port interface when detecting the communication function of the serial port communication circuit;

[0013] a master control chip, for controlling the cyclic sending and receiving of serial port data of the serial port interface when detecting the communication function of the serial port communication circuit.

[0014] Optionally, the serial port interface is an RS232 interface.

[0015] Optionally, the industrial code reader further comprises:

[0016] an input / output circuit comprising an optocoupler isolator, an optocoupler relay, an input interface and an output interface, the output signal of the master control chip being output to the output interface through the optocoupler relay, and the input signal of the master control chip coming from the input interface and being input to the master control chip through the optocoupler isolator;

[0017] a third controllable switch connected between the input interface and the output interface, for directly connecting the input interface and the output interface when detecting the function of the input / output circuit;

[0018] a master control chip, for outputting a level signal and detecting a returned level signal when detecting the function of the input / output circuit.

[0019] Optionally, the industrial code reader further comprises:

[0020] an image acquisition system comprising a lens and an image sensor;

[0021] an automatic focusing system comprising a stepping motor and a motor drive chip, the motor drive chip being connected with the master control chip, and the stepping motor being connected with the lens, the motor drive chip driving the stepping motor to rotate and in turn driving the lens to displace under the control of the master control chip, so as to realize automatic focusing;

[0022] an optoelectronic limit switch, for detecting the position change of the lens when detecting the focusing function of the automatic focusing system, outputting an electric signal and feeding back to the master control chip;

[0023] a master control chip, for judging whether the focusing function meets the requirements according to the electric signal fed back by the optoelectronic limit switch.

[0024] Optionally, the master control chip is further used for starting the image sensor to acquire images and processing and analyzing the image data when detecting the image acquisition signal.

[0025] Optionally, the industrial code reader further comprises:

[0026] a key circuit, for various operations of a user;

[0027] an LED lighting circuit, for providing required illumination.

[0028] Optionally, the master chip is an MCU chip.

[0029] The industrial code reader provided by the utility model can prevent the influence of high-frequency signals on other modules of the system through the network transformer, and provides a signal loop through the first controllable switch, so as to facilitate the automatic detection of the Ethernet communication circuit of the code reader and improve the test efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 It is a circuit module structure schematic view of the industrial code reader of the embodiment of the utility model. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical scheme and advantages of the embodiments of the utility model clearer, the technical scheme in the embodiments of the utility model will be described clearly and completely in combination with the drawings in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the utility model.

[0032] It should be noted that the terms "first", "second" and the like in the specification and claims of the application and the above drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0033] In the present application, the terms "up", "down", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.

[0034] Moreover, the aforementioned partial terms can be used to represent other meanings in addition to the orientation or positional relationship, for example, the term "upper" can also be used to represent a certain dependent relationship or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in the present application can be understood according to the specific circumstances.

[0035] In addition, the terms "mount", "set", "provided with", "connect", "connect", "socket" should be broadly understood. For example, it can be fixedly connected, detachably connected, or integrally configured; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, or it can be internal communication between two devices, elements or components. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0036] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. In the case of no conflict, the following examples and features in the examples can be combined with each other.

[0037] The embodiment of the utility model provides a kind of industrial code reader, as shown in the figure, the industrial code reader includes: Figure 1 As shown in the figure, the industrial code reader includes:

[0038] Ethernet communication circuit 102 includes Ethernet PHY chip, network transformer and Ethernet interface, the TX end (signal sending end) and RX end (signal receiving end) of Ethernet PHY chip are connected to the TX end and RX end of Ethernet interface through network transformer, and network transformer is used to provide signal isolation, to ensure the integrity and anti-interference ability of network signal transmission;

[0039] The first controllable switch S1 is connected between the TX end and the RX end of the Ethernet interface, and is used to directly connect the TX end and the RX end of the Ethernet interface when detecting the communication function of the Ethernet communication circuit 102.

[0040] The main control chip 101 is connected with the RGMII interface of the Ethernet PHY chip, and is used to control the first controllable switch S1 to be turned on when detecting the communication function of the Ethernet communication circuit 102, to send TCP / IP data packet to the Ethernet interface and receive feedback TCP / IP data packet, and then verify the communication function of the Ethernet communication circuit 102.

[0041] The communication function of the Ethernet communication circuit 102 is evaluated by parameters such as bandwidth, delay and data packet loss rate.

[0042] The verification process is as follows: first, a TCP / IP data packet is constructed. The data packet includes an Ethernet frame header (containing a destination MAC address and a source MAC address), an IP header (containing a source IP address and a destination IP address, etc.), and a TCP header (containing a source port, a destination port, a sequence number, etc.). For the received data packet, the content is analyzed to check whether it is a target response data packet, including checking the Ethernet type, IP protocol, TCP port, etc. The received data packet matches the expected one, indicating that no error has occurred in the transmission process.

[0043] The state of the first controllable switch S1 is controlled by the master control chip 101. When detecting the communication function of the Ethernet communication circuit 102, the first controllable switch S1 is in a conductive state, providing an automatic detection network signal loop. When the Ethernet communication circuit is working normally, the first controllable switch S1 is in a disconnected state. At this time, the first controllable switch S1 does not work.

[0044] As an embodiment, the Ethernet PHY chip selects a gigabit network PHY chip to support gigabit network communication. The Ethernet interface is an RJ45 interface.

[0045] The industrial code reader of the embodiment can prevent high-frequency signals from affecting other modules of the system through the network transformer, and provides a network signal loop through the first controllable switch. The master control chip verifies the communication function of the Ethernet communication circuit, facilitating automatic detection of the Ethernet communication circuit of the code reader and improving test efficiency.

[0046] Further, with reference to Figure 1 The industrial code reader further comprises:

[0047] The serial communication circuit 103 comprises a serial port level conversion circuit and a serial port interface. The serial port level conversion circuit is connected between the master control chip and the serial port interface, and is used for performing level conversion on serial port data transmitted and received by the serial port interface.

[0048] The second controllable switch S2 is connected between the TX end (signal transmitting end) and the RX end (signal receiving end) of the serial port interface, and is used for directly connecting the TX end and the RX end of the serial port interface when detecting the communication function of the serial communication circuit 103.

[0049] The master control chip 101 is used for controlling the cyclic transmission and reception of serial port data of the serial port interface when detecting the communication function of the serial communication circuit 103, analyzing data accuracy and transmission efficiency, and verifying the function of the serial communication circuit 103.

[0050] Specifically, the master chip 101 sends a predetermined serial communication protocol data packet, verifies the returned data packet, and judges whether there is data loss, delay or error transmission. For example, a "test" string is sent, and the receiving end reads whether the received data is equal to "test". If they are the same, it indicates that the serial data transmission function is normal.

[0051] As an embodiment, the state of the second controllable switch S2 is controlled by the master chip 101. When detecting the communication function of the serial communication circuit, the second controllable switch S2 is in the on state, providing an automatic detection serial signal loop. When the serial communication circuit is working normally, the second controllable switch S2 is in the off state. At this time, the second controllable switch S2 does not work.

[0052] As an embodiment, the serial interface is an RS232 interface, supporting the RS232 communication protocol, but is not limited to this.

[0053] The industrial code reader of the embodiment provides a serial signal loop through the second controllable switch, and the master chip verifies the function of the serial communication circuit, facilitating the automatic detection of the data transmission function of the code reader under the RS232 standard, and ensuring the communication quality of the serial communication circuit.

[0054] Further, with reference to Figure 1 The industrial code reader further comprises:

[0055] The input / output circuit 104 includes an optocoupler, an optocoupler relay, an input interface and an output interface. The output signal of the master chip 101 is output to the output interface through the optocoupler relay, and the input signal of the master chip 101 comes from the input interface and is input to the master chip 101 through the optocoupler isolation;

[0056] The third controllable switch S3 is connected between the input interface and the output interface, and is used to directly connect the input interface and the output interface when detecting the function of the input / output circuit 104;

[0057] The master chip 101 is used to output a level signal when detecting the function of the input / output circuit 104, and detect the returned level signal.

[0058] The function of the input / output circuit 104 is evaluated by the reaction time of the input signal and the stability of the output signal. For example, the output interface and the input interface are shorted, the master chip outputs a high level, and it is detected whether the read is a high level.

[0059] As an embodiment, the state of the third controllable switch S3 is controlled by the master chip 101. When detecting the function of the input / output circuit 104, the third controllable switch S3 is in the on state, and when the input / output circuit 104 is working normally, the third controllable switch S3 is in the off state.

[0060] The industrial code reader of the embodiment provides a signal loop through the third controllable switch, and the master control chip detects the function of the input / output circuit according to the output signal and the feedback input signal, so as to facilitate the automatic detection of the function of the input / output circuit of the code reader.

[0061] Further, referring to Figure 1 The industrial code reader further comprises:

[0062] The image acquisition system 105 comprises a lens and an image sensor;

[0063] The automatic focusing system 106 comprises a stepping motor and a motor drive chip, the motor drive chip is connected with the master control chip 101, the stepping motor is connected with the lens, and the motor drive chip drives the stepping motor to rotate under the control of the master control chip, thereby driving the lens to displace to realize automatic focusing;

[0064] The photoelectric limit switch 107 is used to detect the position change of the lens when detecting the focusing function of the automatic focusing system 106, output an electric signal and feedback to the master control chip 101;

[0065] The master control chip 101 is used to judge whether the focusing function meets the requirements according to the electric signal feedback by the photoelectric limit switch 107.

[0066] The master control chip can perform automatic focusing detection at different distances, simulate different focal length conditions, verify the focusing speed and image clarity of the code reader, and ensure that it adapts to complex application scenarios.

[0067] Further, the master control chip 101 is further used to start the image sensor to collect images when detecting the image acquisition signal, and process and analyze the image data.

[0068] The camera will shoot multiple test images, and the master control chip will evaluate the resolution, color restoration and focusing accuracy of the camera.

[0069] The industrial code reader of the embodiment can automatically detect the automatic focusing function of the lens at different distances, verify whether the lens of the code reader can quickly and accurately complete the focusing operation, ensure that it adapts to complex application scenarios, and perform image acquisition under different light conditions, verify the image acquisition function of the image acquisition system of the code reader under different environments, and ensure its image clarity and stability.

[0070] As an implementation manner, the master control chip can be an MCU chip, which is connected with the upper computer, receives the instructions of the upper computer when detecting various functions of the industrial code reader, starts the detection of various functions according to the instructions, and feeds back the detection results to the upper computer through a data bus. Each test does not need to be connected with a test device, and the test efficiency is high.

[0071] To sum up, the utility model discloses an industrial code reader, and the main control chip is as the core control unit, is responsible for the operation of coordination and management of other each circuit.

[0072] In addition, the industrial code reader also includes some necessary functional circuits, for example, the key circuit 108 is used for various operations of the user, the LED lighting circuit 109 is used for providing the required illumination. Figure 1 The power management module is used for providing the voltage of different gears inside the industrial code reader. These are conventional settings, and will not be described further.

[0073] The above is only a specific embodiment of the utility model, but the protection scope of the utility model is not limited to this, any skilled person in the art can easily think of changes or replacements within the technical range disclosed by the utility model, which should be covered in the protection scope of the utility model. Therefore, the protection scope of the utility model should be subject to the protection scope of the claims.

Claims

1. An industrial code reader characterized by, The industrial code reader comprises: an Ethernet communication circuit, including an Ethernet PHY chip, a network transformer and an Ethernet interface, a TX end and a RX end of the Ethernet PHY chip being connected to a TX end and a RX end of the Ethernet interface through the network transformer, the network transformer being used for providing signal isolation; a first controllable switch connected between the TX end and the RX end of the Ethernet interface, used for directly connecting the TX end and the RX end of the Ethernet interface when detecting the communication function of the Ethernet communication circuit; a main control chip connected with an RGMII interface of the Ethernet PHY chip, the main control chip being used for controlling the first controllable switch to be turned on, sending a TCP / IP data packet to the Ethernet interface and receiving a feedback TCP / IP data packet when detecting the communication function of the Ethernet communication circuit.

2. The industrial code reader of claim 1, wherein, The Ethernet PHY chip supports network communication of a gigabit network.

3. The industrial code reader of claim 1, wherein, The Ethernet interface is an RJ45 interface.

4. The industrial code reader of claim 1, wherein, The industrial code reader further comprises: a serial port communication circuit, including a serial port level conversion circuit and a serial port interface, the serial port level conversion circuit being connected between the main control chip and the serial port interface, used for performing level conversion on serial port data received and sent by the serial port interface; a second controllable switch connected between a TX end and a RX end of the serial port interface, used for directly connecting the TX end and the RX end of the serial port interface when detecting the communication function of the serial port communication circuit; the main control chip, used for controlling the serial port data of the serial port interface to be cyclically sent and received when detecting the communication function of the serial port communication circuit.

5. The industrial code reader of claim 4, wherein, The serial port interface is an RS232 interface.

6. The industrial code reader of claim 1, wherein, The industrial code reader further comprises: an input / output circuit, including an opto-coupler isolator, an opto-coupler relay, an input interface and an output interface, an output signal of the main control chip being output to the output interface through the opto-coupler relay, an input signal of the main control chip being from the input interface and input to the main control chip through the opto-coupler isolator; a third controllable switch connected between the input interface and the output interface, used for directly connecting the input interface and the output interface when detecting the function of the input / output circuit; the main control chip, used for outputting a level signal and detecting a returned level signal when detecting the function of the input / output circuit.

7. The industrial code reader of claim 1, wherein, The industrial code reader further comprises: an image acquisition system, including a lens and an image sensor; an automatic focusing system, including a stepping motor and a motor drive chip, the motor drive chip being connected with the main control chip, the stepping motor being connected with the lens, the motor drive chip driving the stepping motor to rotate and in turn driving the lens to displace under the control of the main control chip, so as to realize automatic focusing; an optoelectronic limit switch, used for detecting the position change of the lens, outputting an electric signal and feeding back to the main control chip when detecting the focusing function of the automatic focusing system; the main control chip, used for judging whether the focusing function meets the requirement according to the electric signal fed back by the optoelectronic limit switch.

8. The industrial code reader of claim 7, wherein, The master control chip is further configured to start the image sensor to collect images when detecting an image collection signal, and process and analyze image data.

9. The industrial code reader of claim 1, wherein, The industrial code reader further comprises: A key circuit for user operation; An LED lighting circuit for providing required light.

10. The industrial code reader of any of claims 1 to 9, wherein, The master control chip is an MCU chip.