Multi-device data transceiving system based on Linux platform
By adopting a multi-device data transceiver system based on Linux platform in intelligent CNC machine tools, and using USB to serial port driver and Modbus protocol, the problem of data packet loss and delay caused by unsmooth network interaction is solved, and real-time collection of machine tool status is achieved. and control, improving the stability and productivity of the processing process.
Patent Information
- Application Number
- CN202322656078.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-09-28
AI Technical Summary
In the intelligent CNC machine tool machining center, due to unsmooth network interaction, data packet loss and network delay result, and the machine tool processing status cannot be obtained in real time, which hinders the improvement of the processing process and production capacity.
A multi-device data transceiver system based on the Linux platform is used to convert the USB data in the control center into serial port data through the USB to serial port driver, and communicate with the transceiver device through the Modbus protocol. The RS485 interface is used to implement hardware communication to ensure the stability and reliability of the data. sex.
It achieves stable collection and control of data from multiple devices, avoids network delays and packet loss problems, improves the real-time and integrity of data, and ensures timely feedback on the real-time status of machine tools and the smooth progress of the processing process.
Smart Images

Figure CN221807129U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of data transceiver systems, in particular to a multi-device data transceiver system based on a Linux platform. Background Art
[0002] In intelligent CNC machine tool processing centers, since multiple devices occupy a large area, network interaction is often used for data exchange and communication. However, as the data volume gradually increases, packet loss and network delays will occur during the data collection process of the machine tool. As a result, the real-time processing status of the machine tool cannot be obtained, and problems cannot be fed back in time, which hinders the overall processing process and ultimately leads to a decrease in production capacity.
[0003] In response to the problem of data loss caused by poor network interaction, the utility model provides a multi-device data transceiver system based on the Linux platform for data acquisition and control, avoiding the risk of network instability, obtaining the real-time status of the machine tool through hardware communication, and achieving timely processing of business. Utility Model Content
[0004] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the description and other drawings.
[0005] The purpose of the present utility model is to overcome the above-mentioned shortcomings and provide a multi-device data transceiver system based on the Linux platform. The system establishes a control center module and a web page module based on the Linux platform. Through the USB to serial port driver, the USB data originally in the control center is converted into serial port data. The serial port is connected to multiple transceiver devices in series and each transceiver device is assigned a unique identifier. By inputting an identifier command at the input end, the transceiver device with a specific identifier can be controlled to collect data in the device. Accordingly, since each transceiver device has a unique identifier, it can also be identified when actively sending information, thereby completing data transmission and achieving stability, integrity and reliability of the data collection process.
[0006] The utility model provides a multi-device data transceiver system based on a Linux platform, comprising a webpage module and a control center module built on the Linux platform, a plurality of transceiver devices, and a USB-to-serial port driver connected between the plurality of transceiver devices and the control center module. The webpage module is provided with an input terminal, the control center module is connected to the webpage module, and each transceiver device is assigned a unique identifier. The input terminal communicates with the transceiver device by inputting the unique identifier, thereby collecting and transmitting data from the plurality of transceiver devices. The data in the control center module is a USB signal, while the data used by the transceiver device is a serial port signal, which cannot communicate with each other. Therefore, a USB-to-serial port driver is provided at the output port of the control center module to convert the signal type and enable communication between the two. At the same time, in order to enable a single master device to control multiple slave devices, each slave device, i.e., the transceiver device, is assigned a unique identifier. The user can select to activate all or some of the slave devices by inputting an identifier command at the input terminal of the webpage module. Accordingly, if a transceiver device actively sends a signal, the control center module can distinguish which device initiated the signal due to its unique identifier.
[0007] In some embodiments, one end of the USB-to-serial driver is connected to the control center module, and the other end of the USB-to-serial driver is connected to a first transceiver device within the plurality of transceiver devices. Because the transceivers are connected in series, the USB-to-serial driver is connected to the first transceiver device, and the remaining transceivers are connected in series sequentially. The specific connection method and connection cables can be referenced in the prior art and will not be described in detail here.
[0008] In some embodiments, the remaining transceiver devices are sequentially connected in series with the first transceiver device. The series connection method does not produce branches that are too far away on the trunk line, and has a smaller impact on the signal. Generally speaking, branches exceeding 20m will have a negative impact on the bus, and in severe cases, it will cause the distribution of transmitted data to be lost. The series connection method can avoid data loss.
[0009] In some embodiments, the USB to serial port driver is provided in the Linux platform. The USB to serial port driver can be understood as a software that is installed in the Linux system and outputs a serial port signal directly after the driver converts the signal.
[0010] In some embodiments, a database for storing data is also included, which is built on a Linux platform and is connected to the control center module. The database is equivalent to a storage center, which stores the collected or sent data in the database for recording and viewing.
[0011] In some embodiments, data conversion between the control center module and the transceiver device is implemented using the Modbus protocol. Modbus is a protocol between a master device and a slave device, used to access the configuration and read measures of a slave device. The master device system initiates the exchange, and the slave device responds, thereby collecting and transmitting data. The slave device does not send any messages before the master device requests it. Since multiple devices can be connected in parallel on the RS485 bus, each slave device must use a unique identifier on the bus. Entering the corresponding identifier can initiate data exchange with the slave device.
[0012] In some embodiments, the serial port of the USB-to-serial driver is an RS485 interface. RS485 can connect up to 32 nodes on the same bus, enabling true multi-point communication. However, it generally uses a master-slave communication mode, where one master connects to multiple slaves. The RS485 interface is the preferred serial interface due to its excellent anti-interference ability, long transmission distance, and multi-station capability.
[0013] In some embodiments, the transceiver includes a CNC machine tool and a PLC control device. Based on the RS485 interface, the control center can control different data types according to the developed functional programs, thereby achieving control of the CNC machine tool and the PLC control device.
[0014] In some embodiments, the control center module can individually activate a transceiver device using a unique identifier. In the case where each device or machine tool has a unique identifier, a user can directly input a specific identifier at the input terminal to individually control a device or machine tool.
[0015] By adopting the above technical solution, the beneficial effects of the utility model are:
[0016] The utility model converts the USB data originally in the control center into serial port data through a USB to serial port driver. The serial port is connected to multiple transceiver devices in series and each transceiver device is assigned a unique identifier. By inputting an identifier command at the input end, the transceiver device with a specific identifier can be controlled to start, thereby collecting data in the device, realizing data collection and control of multiple transceiver devices. Compared with traditional software communication, it avoids the problems of network delay and packet loss, and can achieve the purpose of communication through data storage and control. In addition, the data collection and signal control method is realized through the hardware method of circuit connection, which improves the stability, integrity and reliability of data.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
[0018] Undoubtedly, these and other objects of the present invention will become more apparent after the following detailed description of the preferred embodiments with reference to various drawings and figures.
[0019] In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, one or more preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation to the present invention.
[0021] In the drawings, like components are given like reference numerals, and the drawings are schematic and not necessarily drawn to scale.
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only one or several embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on such drawings without paying any creative work.
[0023] Figure 1 This is a schematic diagram of the overall process of a multi-device data transceiver system in some embodiments of the present invention;
[0024] Figure 2 This is a schematic diagram of the physical structure of a multi-device data transceiver system in some embodiments of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but are not intended to limit the present invention.
[0026] In addition, in the description of the present invention, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "axial", "radial", "circumferential", etc., indicating the orientation or position relationship, are based on the orientation or position relationship 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 device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0027] In this utility model, unless otherwise expressly specified or limited, terms such as "installed," "connected," "connect," and "fixed" should be interpreted broadly. For example, they may refer to fixed connections, removable connections, or integration; they may refer to direct connections or indirect connections through an intermediate medium; they may refer to internal communication between two components or interaction between two components. However, the term "direct connection" indicates that the two connected entities are not connected through a transitional structure, but are connected solely through a connecting structure to form a single entity. Those skilled in the art will understand the specific meanings of these terms in this utility model based on the specific circumstances.
[0028] In the present invention, unless otherwise clearly specified and limited, the first feature "above" or "below" the second feature may be that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in an appropriate manner in any one or more embodiments or examples.
[0029] Reference Figure 1 , Figure 1 Schematic diagram of the overall process of a multi-device data transceiver system in some embodiments of the present invention.
[0030] According to some embodiments of the present invention, a multi-device data transceiver system based on a Linux platform is provided, comprising a webpage module and a control center module established on the Linux platform, a plurality of transceiver devices, and a USB-to-serial driver connected between the plurality of transceiver devices and the control center module. The webpage module is provided with an input terminal, the control center module is connected to the webpage module, and each transceiver device is assigned a unique identifier. The input terminal communicates with the transceiver device by inputting the unique identifier, collecting and transmitting data from the plurality of transceiver devices. The data in the control center module is a USB signal, while the data used by the transceiver device is a serial port signal, which cannot communicate with each other. Therefore, a USB-to-serial driver is provided at the output port of the control center module to convert the signal type and enable communication between the two. At the same time, to enable a single master device to control multiple slave devices, each slave device, i.e., the transceiver device, is assigned a unique identifier. A user can select to activate all or some of the slave devices by inputting an identifier command at the input terminal of the webpage module. Accordingly, if a transceiver device actively sends a signal, the control center module can distinguish which device initiated the signal due to its unique identifier.
[0031] The USB to serial port driver is set in the Linux platform. The USB to serial port driver can be understood as a software that is installed in the Linux system. After the driver converts the signal, the output is directly the serial port signal.
[0032] The system of the present invention also includes a database for storing data, which is established on a Linux platform and is connected to the control center module. The database is equivalent to a storage center, which stores the collected or sent data in the database for recording and viewing.
[0033] Data conversion between the control center module and the transceiver is achieved through the Modbus protocol. Modbus is a protocol between master and slave devices, used to access the configuration and read measures of slave devices. The master system initiates the exchange, and the slave device responds, thereby collecting and transmitting data. The slave device does not send any messages before the master device requests it. Since multiple devices can be connected in parallel on the RS485 bus, each slave device must use a unique identifier on the bus. Entering the corresponding identifier can initiate data exchange with the slave device.
[0034] The serial port of this USB-to-serial driver is an RS485 interface. RS485 can connect up to 32 nodes on the same bus, enabling true multi-point communication. However, it generally uses a master-slave communication method, where one master connects to multiple slaves. The RS485 interface is the preferred serial interface due to its excellent anti-interference ability, long transmission distance, and multi-station capability.
[0035] Reference Figure 2 , Figure 2 This is a schematic diagram of the physical structure of a multi-device data transceiver system in some embodiments of the present invention.
[0036] According to some embodiments of the present invention, one end of the USB-to-serial driver is optionally connected to the control center module, and a first transceiver device is provided within the plurality of transceiver devices, with the other end of the USB-to-serial driver connected to the first transceiver device. Because the transceivers are connected in series, the USB-to-serial driver is connected to the first transceiver device, and the remaining transceivers are connected in series sequentially. The specific connection method and connection lines can be referred to in the prior art and will not be described in detail here.
[0037] The remaining transceivers are connected in series with the first transceiver. The series connection method does not produce branches that are too far away on the trunk line, and has a smaller impact on the signal. Generally speaking, branches exceeding 20m will have a negative impact on the bus, and in severe cases, it will cause the distribution of transmitted data to be lost. The series connection method can avoid data loss.
[0038] The transceiver includes CNC machine tools and PLC control equipment. Based on the RS485 interface, the control center can control different data types according to the different functional programs developed, thereby realizing the control of CNC machine tools and PLC control equipment.
[0039] The control center module can open a transceiver device individually through a unique identifier. In the case where each device or machine tool has a unique identifier, the user can directly input a specific identifier at the input end to control a device or machine tool individually.
[0040] The working principle of this utility model:
[0041] First, a control center and web page interface that can realize specific functions are developed based on the Linux platform. The unique identifiers of multiple transceiver devices are entered on the web page. Through USB to serial communication and Modbus communication protocol, instructions are sent to the transceiver devices. According to the unique identifier in the instruction, the corresponding transceiver device is found for data collection and control, and the collected data is stored in the database, thereby realizing data collection and control of specific transceiver devices.
[0042] It should be understood that the embodiments disclosed herein are not limited to the specific processing steps or materials disclosed herein, but should extend to equivalent substitutions of such features understood by those skilled in the relevant art. It should also be understood that the terminology used herein is for the purpose of describing specific embodiments only and is not intended to be limiting.
[0043] The "embodiment" mentioned in the specification means that the specific features or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, the phrase or "embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment.
[0044] Furthermore, the described features or characteristics may be combined in any other suitable manner into one or more embodiments. In the above description, some specific details, such as thickness, quantity, etc., are provided to provide a comprehensive understanding of the embodiments of the present invention. However, those skilled in the relevant art will appreciate that the present invention may be implemented without one or more of the above specific details or may be implemented using other methods, components, materials, etc.
Claims
1. A multi-device data transceiver system based on Linux platform, It is characterized in that include A webpage module is established based on a Linux platform and is provided with an input terminal; A control center module, which is established based on a Linux platform and is connected to the webpage module; A plurality of transceiver devices, each of which is assigned a unique identifier; A USB to serial port driver connected between the plurality of transceiver devices and the control center module; The input end is connected with the transceiver device by inputting a unique identifier, collecting and sending data of several transceivers, and the data conversion between the control center module and the transceiver device is realized by the Modbus protocol.
2. The multi-device data transceiver system based on the Linux platform according to claim 1, It is characterized in that One end of the USB to serial port driver is connected to the control center module, and a first transceiver device is arranged in the plurality of transceiver devices, and the other end of the USB to serial port driver is connected to the first transceiver device.
3. The multi-device data transceiving system based on Linux platform according to claim 2, It is characterized in that The remaining transceiver devices are connected in series with the first transceiver device in sequence.
4. The multi-device data transceiving system based on the Linux platform according to claim 1, It is characterized in that The USB to serial port driver is arranged in the Linux platform.
5. The multi-device data transceiving system based on Linux platform according to claim 1, It is characterized in that It also includes a database for storing data, which is established based on a Linux platform and is connected to the control center module.
6. The multi-device data transceiving system based on Linux platform according to claim 1, It is characterized in that The serial port of this USB to serial port driver is RS485 interface.
7. The multi-device data transceiving system based on Linux platform according to claim 1, It is characterized in that The transceiver equipment includes a CNC machine tool and a PLC control device.
8. The multi-device data transceiving system based on Linux platform according to claim 1, It is characterized in that The control center module can individually open the transceiver device through a unique identifier.
