Burning equipment
By providing a burning device including communication modules and control modules, the problem of inconsistent writing of touch screen programs and relying on manual operations is solved, and a more efficient and standardized program writing process is achieved.
Patent Information
- Application Number
- CN202411962485.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-23
AI Technical Summary
In the prior art, the writing methods of touch screen programs are not uniform and rely on manual operations by burners, which can easily lead to problems such as incomplete writing, missed writing, and incorrect writing, and the level of intelligence and standardization is low.
A recording device is provided, including a first communication module for connecting to a touch screen, a second communication module for connecting to an input and output device, and a control module is responsible for program writing and input and output operations. The device transmits data through a communication module and a touch screen, and controls the printer to print labels and other documents after successful writing.
It improves the intelligence and standardization of program burning, avoids the problems of incomplete writing, missed writing, and miswrite writing, and realizes a more unified and efficient program writing process.
Smart Images

Figure CN120029515A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of burning, and more specifically, to a burning device. Background Art
[0002] In the field of computer room temperature control, base station temperature control and energy storage temperature control products, touch screens are common user interaction media. Since temperature control product manufacturers usually do not produce touch screens themselves, but use integrated touch screen products that can be used for secondary development, the way to write programs to these touch screen products mostly relies on SD cards and USB flash drives.
[0003] However, different models of touch screens have different writing methods. Some only support SD card writing, while others support both SD card and USB flash drive writing. In addition, since SD cards are inconvenient to take, USB flash drives are preferred if available in actual operation, making it difficult to unify the program writing method and the standardization level is low. In addition, since the existing program writing (burning) method relies on manual operation by the burner, if the burner does not operate properly, it is easy to cause problems such as incomplete writing, missing writing, and wrong writing. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a burning device, aiming to solve the technical problems of low intelligence and standardization levels in existing program burning solutions.
[0005] To achieve the above object, according to a first aspect of the present application, a burning device is provided, the burning device comprising:
[0006] A first communication module, used to establish a communication connection with the touch screen;
[0007] Two or more second communication modules, used to connect to different input and output devices respectively;
[0008] A control module connected to the first communication module and the second communication module respectively, wherein the control module is configured as follows:
[0009] In response to a program writing operation, determining a target program file corresponding to the program writing operation, and writing the target program file to the touch screen based on the first communication module;
[0010] After receiving the writing success prompt information fed back by the touch screen, the corresponding input and output device is controlled based on the second communication module to perform the corresponding input and output operation.
[0011] Optionally, in a possible implementation of the first aspect,
[0012] The first communication module includes: a first USB interface, which is used to connect to the RS-485 interface of the touch screen through a USB to RS-485 converter and a docking terminal to establish a hardware communication link between the burning device and the touch screen;
[0013] The second communication module includes: a second USB interface for connecting to a printer in the input and output device;
[0014] The controller is configured to execute the control of the corresponding input / output device to execute the corresponding input / output operation based on the second communication module as follows:
[0015] Calling a print driver corresponding to the second USB interface to drive the printer to print a label corresponding to the target program file, wherein the information contained in the label includes at least one of the following: the name and version number of the target program file, the name and version number of the display component, and a date code.
[0016] Optionally, in a possible implementation manner of the first aspect, the burning device further includes:
[0017] A display module, used to display a program writing operation interface to the user, wherein the program writing operation interface displays a plurality of operation options for interactive operation;
[0018] The control module is further configured to determine burning information related to the target program file in response to a user's operation on the operation option.
[0019] Optionally, in a possible implementation of the first aspect, the operation options include: an interface selection item, a baud rate setting item, a program search item, a write mode setting item, and a start write option;
[0020] The control module is further configured to: in response to the operation of the interface selection item, configure at least one USB interface, and in response to the operation of the baud rate setting item, set the baud rate, in response to the operation of the program search item, retrieve the corresponding target program file, and in response to the operation of the write mode setting item, determine the corresponding write mode;
[0021] The control module is further configured to: in response to an operation on the start writing option, determine that the program writing operation is received.
[0022] Optionally, in a possible implementation of the first aspect, the operation options further include: screen size and model items, demand quantity setting items, and automatic label printing options;
[0023] The control module is also configured to: determine the screen size and model of the touch screen in response to the operation of the screen size and model item, determine the required number of times to write the target program file to the touch screen in response to the operation of the demand setting item, and control the printer connected to the second communication module to automatically print a label corresponding to the target program file in response to the operation of the automatic print label option.
[0024] Optionally, in a possible implementation of the first aspect,
[0025] The control module is also configured to: before writing the target program file to the touch screen, send a download instruction to the touch screen, and wait for the touch screen to return a response instruction; if the touch screen returns a response instruction timeout or an instruction error, determine that the write has failed; if the response instruction is valid, start executing the action of writing the target program file to the touch screen.
[0026] Optionally, in a possible implementation of the first aspect,
[0027] The control module is also configured to: after writing the target program file to the touch screen, determine whether there are other data packets that have not been written, and if there are no other data packets that have not been written, determine that the write operation has been completed; if there are other data packets that have not been written, send the sequence numbers of the other data packets to the touch screen, and wait for the touch screen to return a response instruction.
[0028] Optionally, in a possible implementation of the first aspect,
[0029] The control module is also configured to: if the touch screen returns a response instruction timeout and the number of instruction errors exceeds the error number limit, determine that the write has failed; if the touch screen returns a response instruction but the number of instruction errors does not exceed the error number limit, add 1 to the number of errors and resend the other data packets, and clear the number of errors when the response instruction is valid.
[0030] Optionally, in a possible implementation manner of the first aspect, the burning device further includes:
[0031] A power module, used to provide power to the touch screen;
[0032] A verification module, used for comparing the current target program file in the touch screen with the target program file described in the label on the touch screen to see whether they are consistent;
[0033] The control module is further configured to determine that the target program file has been successfully written to the touch screen when the current target program file in the touch screen is consistent with the target program file described in the label on the touch screen.
[0034] Optionally, in a possible implementation manner of the first aspect, the second communication module further includes at least one USB interface as follows:
[0035] A third USB interface is used to connect a barcode scanner in the input and output device, and the barcode scanner is used to scan the label on the touch screen to obtain the information of the label;
[0036] The fourth USB interface is used to connect a USB flash drive in the input / output device or an SD card used in conjunction with a card reader;
[0037] The fifth USB interface is used to connect a keyboard in the input and output device.
[0038] The burning device provided in the embodiment of the present application is used to establish a communication connection with the touch screen through a first communication module; two or more second communication modules are used to respectively connect different input and output devices; control modules are respectively connected to the first communication module and the second communication module, and the control module is configured to: in response to a program writing operation, determine a target program file corresponding to the program writing operation, and write the target program file to the touch screen based on the first communication module; after receiving a successful writing prompt message fed back by the touch screen, control the corresponding input and output device to perform the corresponding input and output operation based on the second communication module. The burning device is used to write the target program file corresponding to the program writing operation to the touch screen, and the functional scope of the burning device is expanded through the second communication module, which can improve the intelligence and standardization level of program burning, and effectively avoid the problem of inconsistent program writing methods or reliance on manual operation by the burning operator. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 It is a structural schematic diagram of a burning device provided in an embodiment of the present application;
[0041] Figure 2 This is a schematic diagram of an optional connection between a burning device and a touch screen provided in an embodiment of the present application;
[0042] Figure 3This is a schematic diagram of an optional program writing interface provided in an embodiment of the present application;
[0043] Figure 4 It is a flowchart of an optional burning method provided in an embodiment of the present application;
[0044] Figure 5 This is a schematic diagram of an optional connection between a burning device and a touch screen provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0046] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0047] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0048] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0049] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0050] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0051] In the field of computer room temperature control, base station temperature control and energy storage temperature control products, touch screens are common user interaction media. Since temperature control product manufacturers usually do not produce touch screens themselves, but use integrated touch screen products that can be used for secondary development, the way to write programs to these touch screen products mostly relies on SD cards and USB flash drives.
[0052] However, different models of touch screens have different writing methods. Some only support SD card writing, while others support both SD card and USB flash drive writing. In addition, since SD cards are inconvenient to take, USB flash drives are preferred if available in actual operation, making it difficult to unify the program writing method. In addition, when there are many programs and touch screen models, if the burner does not operate properly, such as pulling out the USB flash drive or SD card before writing is completed, it will also lead to problems such as incomplete writing, missing writing, and wrong writing.
[0053] In addition, the conventional inspection method that only relies on visual inspection to see if the display interface is distorted is difficult to effectively detect the above-mentioned incomplete writing situation. It is even impossible to accurately judge when program A is required but program B is mistakenly written and the display interface is slightly different.
[0054] This application example provides an example of a burning device, which can be used, but not limited to, for burning program files for touch screen products such as room temperature control, base station temperature control, and energy storage temperature control. Figure 1 As shown, Figure 1 The schematic diagram of the structure of a burning device provided by the present application is shown, and the burning device comprises:
[0055] The first communication module 100 is used to establish a communication connection with the touch screen.
[0056] Two or more second communication modules (such as Figure 1 The second communication module a, marked as 200, and the second communication module b, marked as 300, are used to connect different input and output devices respectively.
[0057] The control module 400 is connected to the first communication module and the second communication module respectively, and the control module 400 is configured as follows:
[0058] In response to the program writing operation, a target program file corresponding to the program writing operation is determined, and the target program file is written to the touch screen based on the first communication module.
[0059] After receiving the writing success prompt information fed back by the touch screen, the corresponding input and output device is controlled based on the second communication module to perform the corresponding input and output operation.
[0060] In the present application example, the first communication module is used to establish a communication connection between the burning device and the touch screen. In practical applications, the burning device and the touch screen can be connected by serial communication protocols such as MODBUS485. For example, the first communication module establishes a connection between the physical layer and the data link layer with the corresponding communication interface (such as 485A, 485B interface) of the touch screen according to pre-set communication parameters (such as baud rate, data bit, stop bit, etc.), ensuring that data can be transmitted stably and accurately between the two.
[0061] In the example of the present application, more than two second communication modules, that is, multiple second communication modules, are also provided in the burning device, and the multiple second communication modules are respectively connected to different input and output devices. For example, one second communication module is connected to a printer to print relevant labels after the program is successfully written; another second communication module is connected to a keyboard to facilitate the operator to input information or perform command operations; and another second communication module is connected to a barcode scanner to obtain relevant identification information written by the program by scanning the barcode on the label. It should be understood that in the example of the present application, the above-mentioned two or more second communication modules are connected to different input and output devices through their respective adapted interface standards (such as USB interfaces, etc.), thereby expanding the functional scope of the burning device.
[0062] In the example of the present application, a control module is also provided in the burning device, which is connected to the first communication module and the second communication module respectively. The control module is responsible for controlling and coordinating the entire burning process of the burning device. Specifically, when a program write operation is triggered, the control module first determines the target program file corresponding to the program write operation in the storage area inside the burning device or in the storage device connected to the burning device according to the received instruction or related burning information (for example, the program number, version number, etc. entered by the operator through the connected keyboard, or the information obtained by scanning with a barcode scanner). For example, the controller finds the target program file corresponding to the program write operation according to the index information such as the program number by querying the local database or the online database.
[0063] Optionally, the local database uses an EXCEL table to store information. By performing a "search" operation on the table, other relevant information can be retrieved based on a specific information, and the program number and version number can be finally located, and then the corresponding program file can be found. The File folder storing the table cooperates with the driver folder storing the program file. Although only the local database function is currently implemented, it is theoretically possible to establish a connection with the online database PLM system, providing space for the expansion of data management.
[0064] Afterwards, the control module transmits the target program file to the touch screen according to the established communication protocol and data format through the first communication module. It should be understood that during the transmission process, mechanisms such as verification and error retransmission should be followed to ensure the integrity and accuracy of the program data. For example, if a data packet transmission method is adopted, each data packet will have a checksum calculation, and the touch screen will perform a check after receiving the data packet. If the check fails, the touch screen sends an error message to the burning device, and the control module of the burning device resends other data packets according to the error type and retransmission strategy (such as timeout retransmission, error retransmission, etc.) until the touch screen correctly receives and writes the program data based on the target program file.
[0065] When the touch screen completes the program writing, it sends a successful writing prompt message to the burning device. For example, the touch screen can pass the successful writing prompt message to the control module through the first communication module. After receiving the successful writing prompt message, the control module controls the corresponding input and output devices to perform corresponding operations through the corresponding second communication module according to the preset logic or the configuration of the operator. In one example, if the second communication module is connected to a printer, the control module sends a print instruction to the printer, telling the printer to print a label (a kind of stickable label, the above information can be directly printed on the label, or recorded through the barcode or QR code on the label) with the program number, version number, display component and version number, date and other information of the target program file, and the printer will complete the printing task according to the print instruction of the control instruction; if the second communication module is connected to a storage device (such as a USB flash drive or an SD card reader), some data related to this program writing (such as log information, etc.) can be stored in the storage device through the second communication device.
[0066] The burning device architecture and workflow provided by the example of the present application can improve the intelligence and standardization level of program burning, and expand the functional scope of the burning device through the second communication module, effectively avoid the program writing mode is not unified or rely on the manual operation of the burning staff, resulting in incomplete writing, missing writing, wrong writing problems. Specifically, the burning device is equipped with a first communication module, which is used to build a stable communication connection with the touch screen, so as to accurately transmit data information between the two. The burning device is also provided with more than two second communication modules, which are respectively connected to different input and output devices, thereby enhancing the expansibility and compatibility of the burning device. The control module of the burning device is connected to the first communication module and the second communication module respectively, determines the target program file corresponding to the received program write operation, and writes the target program file into the touch screen through the first communication module.
[0067] After the burning device receives the successful writing prompt information fed back by the touch screen, it is determined that the touch screen has successfully received and written the target program file, and then the control module controls the corresponding input and output devices to perform corresponding input and output operations through the second communication module. For example, after the target program file is written to the touch screen, the printer is controlled to print out a label with relevant information of the target program file, or other devices are controlled to perform data storage, display and other operations.
[0068] In one possible implementation, Figure 2 As shown, the first communication module includes: a first USB interface, which is used to connect to the RS-485 interface of the touch screen through a USB to RS-485 converter and a docking terminal to establish a hardware communication link between the burning device and the touch screen.
[0069] Optionally, when the USB interface is applicable to modern computer equipment (such as burning equipment, etc.), it has the characteristics of high speed and universality. The RS-485 interface of the touch screen is one of the serial communication interface standards, which can adopt differential signal transmission, has strong anti-interference ability and can support multiple devices connected to the same bus. In the example of this application, the adaptation between two different interface types can be achieved through a USB to RS-485 converter. For example, in the touch screen control scenario of some industrial intelligent production lines, the USB interface of the burning device can be easily connected to the converter, and then the converter is connected to the RS-485 interface of the touch screen through the docking terminal.
[0070] It should be understood that in the example of the present application, the docking terminal can specifically play the role of stabilizing the connection of the physical line, ensuring that the signal can be accurately transmitted between the interfaces, thereby successfully building a hardware communication link between the burning device and the touch screen.
[0071] After the hardware communication link between the burning device and the touch screen is established, data can be transmitted between the burning device and the touch screen. In this process, the communication protocol of the RS-485 interface can be specifically followed, but it is not limited to, such as the transmission and reception of data are carried out on two signal lines (commonly referred to as A line and B line) in the form of differential signals. When the control module of the burning device initiates the program write operation, the target program file can enter from the first USB interface, and is converted into data that meets the RS-485 standard through the USB to RS-485 converter, and then transmitted to the RS-485 interface of the touch screen through the docking terminal. At the same time, in order to ensure the accuracy of data transmission, data verification mechanisms such as checksum and parity check are also adopted.
[0072] In this application example, the USB to 485 driver can ensure stable communication between the burning device and the USB to 485 tooling. The tooling has strong compatibility and can work in Windows, MacOS, and Linux system environments, and can support a baud rate of up to 921600bps. The printer driver is responsible for realizing the precise control of the printer by the burning device so that the printer can perform the printing task as required. The keyboard driver enables the keyboard to input information normally on the burning device, and the barcode scanner driver ensures the effective connection and data transmission between the barcode scanner and the burning device. The barcode scanner can obtain relevant information through scanning operations and transmit it to the burning device.
[0073] In one possible implementation, Figure 2 As shown, the second communication module includes: a second USB interface for connecting to a printer in the input and output device.
[0074] The controller executes the corresponding input and output device to execute the corresponding input and output operation based on the second communication module and is configured as follows:
[0075] The printing driver corresponding to the second USB interface is called to drive the printer to print a label corresponding to the target program file, wherein the information contained in the label includes at least one of the following: the name and version number of the target program file, the name and version number of the display component, and the date code.
[0076] In the example of this application, the second USB interface is used to connect the printer, so that the burning device can easily interact with the printer. When the burning device is connected to the printer through the second USB interface, the burning device controls the printer to print the corresponding relevant labels through the locally running print driver after the touch screen program is successfully written. It should be understood that the print driver is a software program that serves as a bridge between the burning device and the printer, and can convert the print instructions sent by the burning device into operations that the printer can understand and execute. For example, after the touch screen program is written, the control module of the burning device sends a print instruction to the printer through the second USB interface according to the pre-set logic, and drives the printer to prepare for printing, such as feeding paper, initializing the print head, setting printing parameters, etc.
[0077] In an achievable embodiment, the label printed by the printer contains information corresponding to the target program file. Specifically, the name and version number of the program written into the touch screen can clarify the content and version of the program running on the touch screen, which is convenient for subsequent maintenance and upgrade management. The name and version number of the display component help to understand the information of the hardware components of the touch screen, and can quickly locate and match when display problems occur or the display component needs to be replaced. The date code can record the time when the program was written, providing a reference basis for the time dimension for production batch management, quality traceability, etc.
[0078] In the example of this application, in addition to the conventional data packet verification and calculation method, other safeguards are added to the verification mechanism of the program upgrade protocol. For example, in the initial stage of the program upgrade, the number of data packets is sent, and the number of data packets sent and received is compared to effectively avoid packet loss. At the same time, there are timeout retransmission and error retransmission mechanisms. In order to accurately identify and record the number of data packets, the packet number is expressed in a unique two-byte form, that is, the packet number is first, followed by the inverse of the packet number. There is no other additional verification method.
[0079] In one possible implementation, Figure 2 As shown, the second communication module also includes at least one USB interface as follows:
[0080] The third USB interface is used to connect a barcode scanner in an input and output device, and the barcode scanner is used to scan the label on the touch screen to obtain the information of the label;
[0081] The fourth USB interface is used to connect a USB flash drive in an input / output device or an SD card used with a card reader;
[0082] The fifth USB interface is used to connect a keyboard among input and output devices.
[0083] In the example of this application, since the USB interface is widely used and has the advantage of plug-and-play, no matter what brand or model of the barcode scanner, as long as it complies with the general USB communication standard, the physical connection between the barcode scanner and the burning device can be achieved without a complicated configuration process. After the barcode scanner is connected to the third USB interface, the label on the touch screen can be scanned to obtain the label information. When the barcode scanner is aligned with the label on the touch screen for scanning, the optical recognition technology is used to read the barcode or QR code on the label to obtain information such as the program and version number, display component and version number, date code, etc. In addition, the barcode scanner converts the read optical signal into a digital signal, and then transmits it to the control module of the burning device through the third USB interface.
[0084] In the example of this application, the fourth USB interface is used to provide the burning device with the ability to connect to a USB flash drive or an SD card (needs to be used with a card reader). For the SD card, although it has its own special interface standard, it can also be conveniently connected to the fourth USB interface after being converted into a USB interface format through a card reader. This allows users to directly use the USB flash drive to transfer and store data such as program files, or to take advantage of the portability and large capacity of the SD card (which may be more suitable in some specific scenarios) and flexibly select storage media according to actual conditions.
[0085] By configuring the third USB interface and the fourth USB interface in the burning device, the burning device can be more conveniently and flexibly connected to input and output devices such as barcode scanners, U disks and SD cards, realizing diversified data acquisition, transmission and storage functions, and further improving the functional architecture of the entire touch screen program burning and management system, so that it can better adapt to different production and application scenario requirements.
[0086] In a possible implementation, the burning device further includes:
[0087] The display module is used to show the user the program writing operation interface, such as Figure 3 As shown, the program is written into the operation interface to display multiple operation options for interactive operation.
[0088] In the present application example, display module can be understood as a visualization window that the burning device interacts with the user, for displaying the program write operation interface. It should be understood that in actual application scenarios, this display module can be implemented using technologies such as liquid crystal display (LCD) or organic light emitting diode display (OLED). For example, in industrial-grade burning equipment, a display screen with high resolution, high brightness and certain anti-interference ability can be selected to ensure that the user can also clearly view the operation interface under a complex industrial environment. The program write operation interface shown by the display module allows the user to intuitively obtain various information related to program write, and to perform corresponding operation selection.
[0089] Optionally, the operation options include: interface selection item, baud rate setting item, program search item, write mode setting item, and start writing option. Specifically:
[0090] Interface selection: allows users to select the appropriate communication interface according to the actual connection situation. For example, if the burning device has multiple interfaces for connecting to external devices (such as different USB interfaces or serial ports, etc.), users can specify the specific interface for data transmission with the touch screen or other related devices here. In some cases, there are multiple USB interfaces connected to different peripherals. By selecting the correct interface selection, users can ensure that data can be accurately transmitted between the burning device and the touch screen, avoiding communication failures caused by incorrect interface selection.
[0091] Baud rate setting: Baud rate is a key parameter in serial communication, which determines the speed of data transmission. Different devices support different baud rate ranges, and the baud rate setting item in the display module provides users with the ability to adjust according to requirements. For example, for some touch screens or other external devices that require higher data transmission speeds, users can select a higher baud rate in this setting, such as 115200bps or higher (if the device supports it) to speed up program writing; for some devices that require higher stability and longer transmission distances, you can choose a relatively low baud rate, such as 9600bps, to reduce the probability of data transmission errors.
[0092] Program search item: Since the burning device may need to process multiple different program files, the program search item provides a convenient way for users to quickly find the target program file, and search the local storage device (such as hard disk, SD card, etc.) or online database. For example, the user can enter the program name, version number, related product model or other keyword information in the search box of the program search item to search, and the display module will display the matching program file list, which is convenient for users to further select and determine the target program file to be written.
[0093] Write mode setting item: Considering that different devices may support different program writing methods (such as writing through USB flash drive, SD card, serial port, etc. mentioned above), the write mode setting item gives users the flexibility to choose according to the characteristics of the touch screen and actual needs. For example, if the target touch screen supports USB flash drive writing and the current USB flash drive has stored the correct program file, the user can select USB flash drive writing in the write mode setting item; if a more stable and reliable write operation is required through the serial port, the user can select the serial port writing method, and may also need to further perform corresponding serial port configuration in the interface selection item and baud rate setting item.
[0094] Start writing option: It can be understood as the trigger button for the user to start the program writing operation. After the user completes the above settings (interface selection, baud rate setting, program retrieval, writing method setting), click the start writing option, and the control module of the burning device will start to execute the program writing operation according to the burning information determined by the user.
[0095] In a possible implementation, the control module is further configured to: determine the burning information related to the target program file in response to the user's operation on the operation option.
[0096] In the example of this application, the control module can monitor in real time the user's operation of each operation option on the display module operation interface. For example, when the user selects an interface option, the control module records the interface type selected by the user, and guides the data flow to the selected interface during the subsequent data transmission process. In one example, if it is detected that the user selects the first USB interface as the communication interface with the touch screen, the control module configures the relevant hardware resources so that data can be transmitted through the first USB interface.
[0097] For the baud rate setting item, the control module can read the baud rate value set by the user and apply it to the communication parameter setting with the touch screen. During the process of writing the program to the touch screen, the control module can control the sending and receiving rhythm of the data according to the set baud rate to ensure that the data can be correctly transmitted between the burning device and the touch screen. For example, if the user sets the baud rate to 57600bps, the control module adjusts the parameters of the serial communication chip or the USB to serial port module and other related hardware to achieve stable data transmission at this baud rate.
[0098] When the user uses the program search item to search for program files, the control module starts the corresponding search algorithm and program. If it is a local search, the control module traverses the program file directory in the local storage device and performs matching searches based on the keywords entered by the user; if it involves an online database search, the control module sends a search request to the server through a network connection and receives the search results returned by the server. The searched program file information is then displayed on the display module for the user to further select and determine the target program file. When it is detected that the user has determined the target program file, the control module records the relevant path and information of the program file to facilitate subsequent write operations.
[0099] In terms of the write mode setting items, the control module determines which mode to use for program writing according to the user's choice. If the user chooses to write via USB flash drive, the control module first checks whether the USB flash drive is correctly connected and whether there is a legal target program file in it after the user clicks the start writing option, and then performs the program writing operation according to the USB flash drive reading and writing process; if it is serial port writing, the control module sends the program file data bit by bit to the touch screen according to the serial port communication protocol and the previously set baud rate and other parameters.
[0100] Finally, when the user clicks the start writing option, the control module can integrate all the previously collected burning information (including interface information, baud rate information, target program file information, writing mode information, etc.), and start the program writing process, in which the control module performs corresponding processing according to the feedback information of the touch screen (such as the response signal of the touch screen, error information, etc.) to ensure that the program writing operation can be successfully completed. For example, if the touch screen returns an error message during the writing process, the control module performs corresponding processing according to the error type, such as resending data, adjusting the baud rate, or prompting the user to check the hardware connection, etc.
[0101] In one possible implementation, the control module is further configured to: configure at least one USB interface in response to an operation on an interface selection item, set the baud rate in response to an operation on a baud rate setting item, retrieve the corresponding target program file in response to an operation on a program retrieval item, and determine the corresponding writing mode in response to an operation on a writing mode setting item.
[0102] In the example of this application, when it is detected that the user selects a specific USB interface in the interface selection item of the program writing operation interface, the control module first initializes the USB interface selected by the user, and specifically sets the electrical parameters of the USB interface, for example, setting the voltage and current limit of the interface, etc., to ensure that the burning device matches the connected external device (such as a touch screen, printer, barcode scanner, etc.) in electrical characteristics. For example, if the burning device is connected to a device that requires a specific voltage to be powered, the control module can adjust the output voltage of the USB interface connecting the two to meet the requirements of the device powered by a specific voltage to prevent damage to the device due to voltage mismatch.
[0103] At the same time, the control module can also allocate resources. For example, in the computer system (where the burning device is located), the USB interface shares resources such as the system bus and memory with other hardware resources. The control module allocates sufficient system resources, such as a memory buffer, to the selected USB interface for temporarily storing data during data transmission. For example, when data is transmitted to a touch screen, a memory buffer of a certain size can be allocated to store program data to be written to the touch screen, or to temporarily store data read from the touch screen, so as to ensure the smoothness and stability of data transmission.
[0104] In addition, the control module and the touch screen should follow the same program upgrade protocol, which includes a verification and error retransmission mechanism. The control module can also load the corresponding driver or driver module according to the type and characteristics of the selected USB interface, because different USB devices may require different drivers to achieve normal functions. For example, if the burning device is connected to a USB to RS-485 converter, the control module loads the driver of the converter so that it can correctly communicate with the touch screen connected through the converter; if the burning device is connected to a printer, the printer driver can be loaded accordingly to achieve control of the printing function.
[0105] In addition, if it is detected that the user has entered or selected a specific baud rate value in the baud rate setting item, the control module will adjust the parameters of the relevant communication hardware. If the communication is carried out with an external device through a serial port (such as a USB to serial port or a serial port built into the device), the control module writes the baud rate setting value into the register of the serial communication chip. For example, for a serial communication chip, such as a UART chip, the control module can calculate and set the clock division coefficient and other parameters inside the chip according to the set baud rate value to determine the data transmission rate.
[0106] While adjusting the baud rate, the control module can also determine other related communication parameters. For example, parameters such as data bits, stop bits, and parity bits need to match the baud rate or be set according to the device requirements. If the device requires 8 data bits, 1 stop bit, and no parity bit, the control module will set these parameters accordingly while setting the baud rate to ensure the consistency and correctness of the entire communication protocol.
[0107] Furthermore, the control module can also test or initialize the communication link after setting the baud rate. Specifically, it can send some test data or instructions to verify whether the newly set baud rate can work properly. For example, the control module sends a simple handshake signal or query command to the touch screen to observe whether the touch screen can respond correctly at the set baud rate. If the touch screen does not respond correctly, the control module can prompt the user to check the connection or reset parameters such as the baud rate.
[0108] When it is detected that the user enters the search conditions (such as program name, version number, product model, etc.) in the program search item, the control module starts the program search process. If it is a local search, the control module first determines the location of the local storage program file, including a specific folder of the hard disk, an SD card or other storage media. Then, according to the search conditions entered by the user, the program files in these storage locations are traversed. For example, in a folder on the local hard disk that is specifically used to store touch screen programs, the control module checks the program file names, version information, etc. in the folder one by one, and matches them with the conditions entered by the user. If it is a search based on the file name, the control module compares whether the file name matches the string entered by the user; if it is a search based on the version number, the control module extracts the version number information in the program file and compares it with the version number entered by the user.
[0109] In addition, in the example of the present application, if online retrieval is involved, the control module establishes a network connection with a remote server (such as a company's program database server), for example, the search criteria entered by the user are sent to the server, and then the search results returned by the server are received. In the process of communicating with the server, the control module follows a specific network protocol (such as HTTP protocol or a user-defined database access protocol). For example, the search criteria are encapsulated into a data packet that meets the protocol requirements and sent to the server. After processing, the server returns a data packet containing matching program file information, and the control module parses these data packets again, extracts the name, version, storage location and other information of the program file, and displays this information on the display module for the user to select.
[0110] After retrieving qualified program files, the control module records the path, size, checksum and other detailed information of these files so that the above detailed information can be used in subsequent program writing operations. For example, when writing a program, the control module reads the program data according to the file path and verifies the data integrity based on the checksum after writing is completed.
[0111] In another example, when the user selects a specific writing method (such as USB flash drive writing, SD card writing, serial port writing, etc.) in the writing method setting item, the control module determines the specific writing process and operation steps according to the selected writing method. If it is USB flash drive writing, the control module first checks whether the USB flash drive is correctly connected to the USB interface of the burning device, detects the connection status of the USB interface, and identifies the device type and file system format of the USB flash drive. For example, if the USB flash drive uses the FAT32 file system, the control module searches for the target program file in the USB flash drive according to the file storage structure and access rules of FAT32. Then, the program file data on the USB flash drive is read, and the data is written to the touch screen according to the communication protocol with the touch screen (such as MODBUS protocol, etc.). During the writing process, the control module monitors the data reading speed of the USB flash drive and the writing status of the touch screen to ensure that the data can be stably transferred from the USB flash drive to the touch screen.
[0112] In another example, if it is a serial port write, the control module directly sends the data of the target program file to the touch screen according to the serial port communication protocol based on the communication parameters such as the baud rate that have been set as described above, packages the program file data, adds the header, tail, checksum and other information, and then sends them to the touch screen packet by packet. During the sending process, the control module waits for the response signal of the touch screen and determines whether the data is received correctly based on the response signal. If the touch screen returns an error signal, the control module takes corresponding measures according to the error type (such as checksum error, data overflow error, etc.), such as retransmitting the data packet, adjusting the baud rate, or prompting the user to check the device connection. For example, if the checksum error is caused by interference during data transmission, the control module retransmits the data packet and appropriately reduces the baud rate when retransmitting to improve the reliability of data transmission.
[0113] In a possible implementation, the control module is further configured to: in response to an operation on a start write option, determine that a program write operation is received.
[0114] When the user operates the "Start Writing Option", it is equivalent to sending a clear program writing start instruction to the control module of the burning device. The control module is always monitoring the status changes of various options on the operation interface and the user's operation behavior. Once a click or trigger operation for the "Start Writing Option" is detected, it immediately recognizes and determines that a program writing operation initiated by the user has been received.
[0115] In this application example, the control module can first update the corresponding status flag in its internal program logic and mark the system status as "program writing started" to indicate that the entire burning device is about to enter the formal program writing process. For example, it may set a flag value in a specific register or memory area, and the subsequent sub-modules and processes can read this flag value to know that the current system is in the program writing stage and then perform the corresponding tasks.
[0116] Afterwards, the control module can quickly reconfirm and prepare various previously configured resources. For example, check whether the USB interface (or other related communication interface) previously configured by the user in the "Interface Selection Item" is still in a normal connection and available state, ensuring the stability of the hardware communication link with the touch screen and other related input and output devices. At the same time, it will recheck whether the baud rate and other communication parameters set according to the "Baud Rate Setting Item" are correct to ensure that the data can be transmitted at the expected speed and rules. In addition, it can also be confirmed whether the target program file retrieved through the "Program Search Item" is still complete and readable, and whether the storage path and other information are accurate, to prevent the program file from being unable to be used normally due to unexpected situations (such as storage medium failure, file being deleted by mistake, etc.).
[0117] Next, the control module can start the process logic related to data transmission, and start reading the target program file from the corresponding storage location (such as USB flash drive, local hard disk, etc.) according to the previously determined writing method (such as USB flash drive writing, serial port writing, etc. determined by the "writing method setting item"), and organize the data into data packets in an orderly manner according to the set data packet format, verification mechanism and other requirements, and then send them to the touch screen through the corresponding communication interface. During the above process, the control module can also continuously monitor the status of data transmission and the response information returned by the touch screen, etc., to ensure that the program writing operation can proceed smoothly.
[0118] Through the embodiment of the present application, the control module responds to the user's operation on the "start writing option" and, through the above series of processing steps, pushes the entire burning device into the program writing stage and coordinates the modules to work together to complete the writing of the program to the touch screen.
[0119] In one possible implementation, Figure 3As shown, the program writing operation interface also includes a plurality of operation options for interactive operation: screen size and model item, demand setting item, and automatic printing label option; the control module is also configured to: determine the screen size and model of the touch screen in response to the operation of the screen size and model item, determine the required number of times to write the target program file to the touch screen in response to the operation of the demand setting item, and control the printer connected to the second communication module to automatically print the label corresponding to the target program file in response to the operation of the automatic printing label option.
[0120] When the user operates on the screen size and model items, such as selecting a specific screen size (such as 4.3 inches, 7 inches, etc.) and model information, the control module can obtain the information entered by the user and record it. Different screen sizes and models differ in hardware configuration, display resolution, supported program functions, etc., and the control module can collect this information to perform targeted processing in subsequent program retrieval, writing, and verification. For example, if the touch screen of a certain model has specific display component driver requirements, the control module can select a matching program file version to write based on the model information to ensure that the touch screen can display and run normally after the program is written.
[0121] The control module can also use this information to verify whether the program file selected by the user is applicable to the current touch screen. It can compare the screen size and model information entered by the user with the program file compatibility information stored in the local or online database. For example, the local database of the burning device records that a certain program file is only applicable to a touch screen of a specific size and model. Through comparison, the control module can prompt the user whether the correct program file has been selected before writing the program, avoiding problems such as writing failure or abnormal operation of the touch screen due to the mismatch between the program and the touch screen.
[0122] When the user sets the required number of times to write the target program file to the touch screen in the demand setting item, the control module can record this value and count and control the program writing process. For example, if the user sets the required number to 1, the control module will add 1 to the number of times written each time the program is successfully written to a touch screen. When setting the write demand number, when non-numeric characters are entered as the write demand number, the keyboard does not respond and only allows the input of numbers. If the input number is 0, a prompt message "The write demand number must be an integer greater than 1" can be popped up, which effectively standardizes the write demand number.
[0123] When the user operates the automatic label printing option, the control module can decide whether to control the printer to automatically print the label corresponding to the target program file after the program is written successfully according to the user's choice. If the user chooses automatic printing, the control module will immediately send a print instruction to the printer connected to the second communication module after receiving the successful writing prompt returned by the touch screen. Before sending the print instruction, the control module can collect information related to the target program file, such as the name and version number of the program, the name and version number of the display component, the date code, etc., organize this information into a format that the printer can recognize and send it to the printer. For example, this information is arranged according to a specific label printing template format, and then the print data is transmitted to the printer through the second USB interface. The printer prints the corresponding information on the self-adhesive label according to the received data.
[0124] In the example of this application, the printed label can be affixed to the back of the touch screen manually or by machine, and the information on the label can be used to quickly identify the software and hardware configuration of the touch screen on the production line, which is convenient for product assembly, testing and quality inspection. For example, in the quality inspection link, the inspector can check the label information on the back of the touch screen to determine whether the touch screen has been written with the correct program, and whether its hardware information such as display components meets the requirements, thereby improving the inspection efficiency and accuracy. At the same time, the date code in the label can also be used to trace the production time of the product, providing important time clues for product after-sales service and quality problem troubleshooting.
[0125] In one possible implementation, Figure 4 As shown, the control module is also configured to: before writing the target program file to the touch screen, first send a download instruction to the touch screen, and wait for the touch screen to return a response instruction; if the touch screen returns a response instruction timeout or an instruction error, it is determined that the writing has failed; if the response instruction is valid, start executing the action of writing the target program file to the touch screen.
[0126] Before writing the target program file to the touch screen, the control module constructs and sends a download instruction to the touch screen. The download instruction can be used, but is not limited to, to indicate the following key information: the size of the download package, so that the touch screen knows in advance the size of the data volume of the program file transfer, so as to reasonably allocate its own cache and other resources to receive data; the communication baud rate information, which clearly informs the touch screen of the rate setting for subsequent data transmission to ensure that both parties communicate at a consistent speed; the file size parameter, to ensure that data transmission and storage can be carried out in an orderly manner. After sending the download instruction, the control module enters the waiting period for the touch screen to return a response instruction. During the waiting period, the control module sets a reasonable timeout period. The specific setting of the timeout period needs to comprehensively consider multiple factors such as the stability of the communication link and the response speed of the touch screen.
[0127] If the control module does not receive the response command returned by the touch screen within the set timeout period, it will be determined that the response command has timed out. If it is determined that the response command has timed out, the control module will determine that the program writing has failed based on the pre-set logic and can take corresponding measures, such as prompting the user that the reason for the writing failure may be the response timeout, and suggesting that the user check whether the communication line connection is normal and whether the touch screen is in normal working condition, so that the user can troubleshoot the problem and try to re-write the program.
[0128] In addition to the timeout situation, if the control module receives a response command returned by the touch screen, but finds that the command is incorrect after verification and other related processing, such as the format of the response command does not meet the agreed communication protocol requirements, or the key parameters in the command do not match the corresponding parameters in the download command, it will also be judged as a command error, that is, the touch screen failed to correctly understand or process the download command. The control module will also determine that the program write has failed and provide corresponding prompt information to the user based on the error type.
[0129] When the response command returned by the touch screen is verified to be valid, that is, the command format is correct, the parameters match, and it indicates that the touch screen is ready to receive the program file, the control module starts to execute the operation of writing the target program file to the touch screen. At this time, the control module divides and packages the data of the target program file according to the established program writing process (may add serial number, checksum and other information to ensure the accuracy of data transmission), and then sends the data to the touch screen package by package through the previously established communication link (such as the link connected by the first communication module), while continuously monitoring the reception feedback of the touch screen to ensure that the entire program writing process is completed smoothly.
[0130] The control module can be set to the baud rate supported by the touch screen, and the program number and version number or the display component number and version number or the model code are input to find the corresponding target program file. The control module first sends a download command to the touch screen, which also includes the download package size, communication baud rate, file size, and the storage path of the current program file on the touch screen, and waits for the screen to return a response command. If the response times out or the command is wrong, the program writing fails. If the response is valid, the program file starts to be written to the touch screen. After the writing is completed, it is determined whether there are other data packets that have not been written. If not, it is determined that the program writing has been completed. If there are still data packets that have not been transmitted, the sequence number of this data packet is sent to the touch screen, and the touch screen is waiting for a response. If the response times out or the error occurs, it is first determined whether the error count limit is exceeded. If it is not exceeded, the error count is increased by 1 and the data packet is resent. If the touch screen responds effectively, the error count is cleared, the data packet count is updated, and the count is increased by 1. Then it is determined whether there are still data packets waiting to be transmitted, and this cycle is repeated until there are no more data packets to be transmitted to complete the program download.
[0131] For example, if the timeout is 3 seconds or the number of transmission errors does not exceed 5 times, the data packet is retransmitted. Enter the program number and version number or display component number and version number or model code to find the corresponding program file, which can be achieved by scanning the code gun or by manual input. The program number and version number of the touch screen display interface should be the last data packet transmitted. The data packet format can be in the following format: first, a 1-byte data packet sequence number, followed by a 1-byte inversion of the above sequence number, then a fixed byte of data, and finally a 2-byte checksum, such as the sum of all the previous bytes and then the inversion. If the data in the data packet is not enough for the agreed fixed byte data, it is padded with 0 alignment, and the number of bytes in the data packet is fixed.
[0132] Through the embodiments of the present application, by adopting the above-mentioned method of first sending a download instruction and judging the writing result based on the response of the touch screen to the instruction, the control module can more accurately control the starting link of the program writing, improve the success rate and reliability of the program writing operation, and effectively avoid writing failures caused by communication problems or insufficient preparation of the touch screen.
[0133] In one possible implementation, the control module is further configured to: after writing the target program file to the touch screen, determine whether there are other data packets that have not been written; if there are no other data packets that have not been written, determine that the write operation has been completed; if there are other data packets that have not been written, send the sequence numbers of the other data packets to the touch screen, and wait for the touch screen to return a response instruction.
[0134] During the entire program writing process, the control module can first divide and package the target program file according to certain rules. Each data packet carries part of the program data and has corresponding identification information such as serial numbers. These data packets will be queued and transmitted in sequence when sent to the touch screen. While the writing operation is in progress, the control module records the data packets that have been sent.
[0135] If the control module checks and determines that there are no other data packets that have not been written, that is, the data of the entire target program file has been successfully transmitted to the touch screen in order, then it can be determined that the writing operation has been completed. After determining that the writing is completed, the control module can also update the relevant writing record log, record the completion time of the writing operation, the program file information involved, the relevant identification of the touch screen, etc., to facilitate subsequent query and tracing; at the same time, it can also decide whether to trigger subsequent operations related to the successful writing according to the previous user settings on the operation interface (such as whether to select the automatic printing label option, etc.), such as notifying the connected printer to print a label with the program and related information.
[0136] If there are other data packets that have not been written, the control module extracts the sequence numbers of these unwritten data packets and sends them to the touch screen. The purpose of sending the sequence number is to inform the touch screen which part of the data needs to be received next, so that the touch screen can make corresponding preparations, such as adjusting its own cache management, data receiving pointer, etc., to accurately receive subsequent data packets. After sending the sequence number, the control module enters the waiting state again, waiting for the touch screen to return a response instruction.
[0137] In the process of waiting for the touch screen to return the response command, there are also several situations similar to those after sending the download command. If the response command is not received after the timeout, or the received response command is found to have an error after verification and other processing, the control module will respond according to the preset error handling mechanism. For example, first determine whether the set error number limit is exceeded. If not, the error number is increased by 1 and the data packet sequence number is resent; if the error number limit has been exceeded, it may be determined that the write operation has failed, and the user is prompted with the problem and possible reasons, such as prompting that the data packet transmission failed due to repeated inability to communicate correctly with the touch screen, and suggesting that the user check whether the hardware connection is stable. If the response command returned by the touch screen is valid, it means that the touch screen is ready to receive the corresponding data packet. At this time, the control module will clear the error number, update the data packet count (such as marking the current data packet has been successfully processed, ready to send the next data packet, etc.), and then continue to send the unwritten data packet, and then determine again whether there are other data packets waiting to be transmitted, and so on. The cycle continues until there are no more data packets to be transmitted, and finally completes the program write operation.
[0138] Through the above method and steps, it can be ensured that all data of the target program file can be completely and accurately transmitted and stored in the touch screen, avoiding data loss or incomplete writing, thereby ensuring that the touch screen can work normally when the program is run subsequently, and no functional abnormalities or errors will occur due to missing data.
[0139] In one possible implementation, the control module is further configured as follows: if the touch screen returns a response command timeout and the number of command errors exceeds the error limit, it is determined that the write has failed; if the touch screen returns a response command but the number of command errors does not exceed the error limit, the number of errors is increased by 1 and other data packets are resent, and the number of errors is cleared to zero when the response command is valid.
[0140] In order to cope with various possible communication anomalies and ensure that write operations can be continuously attempted within a certain reasonable range and completed as successfully as possible, a limit on the number of errors can be set in advance.
[0141] When the touch screen returns a response command with a timeout, and after statistics, it is found that the number of command errors has exceeded the preset error limit, the control module determines that the program writing has failed. For example, the response command timeout may be due to reasons such as communication line interruption, long-term unresponsiveness of the touch screen, etc., and too many command errors mean that the communication process repeatedly fails to pass the data packet verification, the command format does not match, and other problems that seriously affect the correct data transmission. After determining that the writing has failed, the control module takes corresponding follow-up measures, such as sending a clear write failure prompt message to the user interface to inform the user that the program writing has not been successful, and at the same time lists the reasons for the failure in detail, so that the user can check the problem in a targeted manner and take corresponding solutions, such as checking whether the USB to RS-485 converter is working properly, whether the docking terminal connection is firm, and whether the touch screen is frozen.
[0142] If the touch screen returns a response command with an error, but statistics show that the number of command errors has not exceeded the set error limit, the control module will perform the corresponding error correction and continue to advance the write operation. First, the number of errors is increased by 1 to record the communication anomaly that occurred this time. Then, the control module resends the other data packets mentioned previously, that is, the data packets that have not been successfully written to the touch screen. When resending the data packet, the control module still follows the established communication protocol and data transmission rules, such as sending data according to the previously set baud rate and data packet format to ensure the integrity and accuracy of the data packet, and will also restart the waiting timer for the response command.
[0143] When the response command returned by the touch screen is verified to be valid, it indicates that the operation of resending the data packet has been successful, and the touch screen has correctly received the data packet and is ready for subsequent reception or processing. In this case, the control module clears the previously accumulated number of errors to zero, returning the error statistics to the initial state. At the same time, the control module also updates the counting information related to the data packet according to the current writing progress until all data packets are successfully transmitted to the touch screen, completing the program writing task.
[0144] Through the above method and steps, the stability and success rate of program writing operations can be guaranteed in a reasonable and effective manner, common communication errors can be automatically handled to a certain extent, and users can be promptly prompted with more serious writing problems, thereby improving the reliability of the burning device and user experience.
[0145] In one possible implementation, Figure 5 As shown, the burning device also includes:
[0146] A power module, used to provide power to the touch screen;
[0147] A test module is used to compare the current target program file in the touch screen with the target program file described in the label on the touch screen to see if they are consistent;
[0148] The control module is further configured to: when the current target program file in the touch screen is consistent with the target program file described in the label on the touch screen, determine that the target program file has been successfully written into the touch screen.
[0149] Optionally, the power module can be connected to the power interface of the touch screen through a connecting wire and a docking terminal to form a physical channel for transmitting power to the touch screen. The connecting wire needs to have good conductivity and a suitable wire diameter to carry the corresponding current, and the docking terminal ensures that the power output by the power module can be accurately transmitted to the power interface of the touch screen.
[0150] In this application example, the power module converts the input voltage of 200-240VAC into an output voltage of 12VDC with a power of 200W. It has multiple protection functions, including short circuit protection, overload protection, overvoltage protection and over-temperature protection. The heat dissipation is effectively guaranteed by the metal mesh shell, and the voltage accuracy is controlled within the range of ±1.5%. It can provide a stable wide voltage range (4.5-30VDC) input power supply for the touch screen to ensure the normal operation of the touch screen.
[0151] In this application example, a verification module is used to compare the current target program file in the touch screen with the target program file described in the label on the touch screen. The verification module reads the key identification information of the target program file actually stored and running in the touch screen, for example, including the name and version number of the program; in addition, the verification module can also obtain the relevant information of the target program file described in the label on the touch screen. The label usually indicates the program and version number, display component and version number, date code, etc. The verification module focuses on detecting the program and version number information.
[0152] Then, the obtained information about the program file is compared one by one. If the inspection module finds that the two are consistent, it means that the previous operation of writing the target program file to the touch screen was successful. On the contrary, if the comparison results are inconsistent, it means that an error occurred during the program writing process, and it is necessary to further investigate whether the inconsistency is caused by problems with the burning device itself, failure of the communication link, or abnormalities in the touch screen storage, so as to correct and rewrite the operation in time. When the control module receives the information fed back by the inspection module, indicating that the current target program file in the touch screen is consistent with the target program file described in the label on the touch screen, it is determined that the target program file has been successfully written to the touch screen.
[0153] Through the above method steps, the control module can further ensure the accuracy and reliability of the entire program writing operation. On the basis of the original program writing process and communication verification, it can minimize the touch screen operation failure caused by program errors and improve the quality and stability of the entire burning device in writing programs for the touch screen.
[0154] It should be noted that the burning device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0155] The functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0156] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0157] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0158] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments applied for herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0159] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0160] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0161] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A burning device, characterized in that: include: A first communication module, used to establish a communication connection with the touch screen; Two or more second communication modules, used to connect to different input and output devices respectively; A control module connected to the first communication module and the second communication module respectively, wherein the control module is configured as follows: In response to a program writing operation, determining a target program file corresponding to the program writing operation, and writing the target program file to the touch screen based on the first communication module; After receiving the writing success prompt information fed back by the touch screen, the corresponding input and output device is controlled based on the second communication module to perform the corresponding input and output operation.
2. The burning device according to claim 1, characterized in that: The first communication module includes: a first USB interface, which is used to connect to the RS-485 interface of the touch screen through a USB to RS-485 converter and a docking terminal to establish a hardware communication link between the burning device and the touch screen; The second communication module includes: a second USB interface for connecting to a printer in the input and output device; The controller is configured to execute the control of the corresponding input / output device to execute the corresponding input / output operation based on the second communication module as follows: Calling a print driver corresponding to the second USB interface to drive the printer to print a label corresponding to the target program file, wherein the information contained in the label includes at least one of the following: the name and version number of the target program file, the name and version number of the display component, and a date code.
3. The burning device according to claim 1, characterized in that: The burning device also includes: A display module, used to display a program writing operation interface, wherein the program writing operation interface displays a plurality of operation options for interactive operation; The control module is further configured to determine burning information related to the target program file in response to an operation on the operation option.
4. The burning device according to claim 3, characterized in that: The operation options include: interface selection item, baud rate setting item, program search item, write mode setting item, start writing option; The control module is further configured to: in response to the operation of the interface selection item, configure at least one USB interface, and in response to the operation of the baud rate setting item, set the baud rate, in response to the operation of the program search item, retrieve the corresponding target program file, and in response to the operation of the write mode setting item, determine the corresponding write mode; The control module is further configured to: in response to an operation on the start writing option, determine that the program writing operation is received.
5. The burning device according to claim 3, characterized in that: The operation options also include: screen size and model items, demand quantity setting items, and automatic label printing options; The control module is also configured to: determine the screen size and model of the touch screen in response to the operation of the screen size and model item, determine the required number of times to write the target program file to the touch screen in response to the operation of the demand setting item, and control the printer connected to the second communication module to automatically print a label corresponding to the target program file in response to the operation of the automatic print label option.
6. The burning device according to claim 1, characterized in that: The control module is further configured to: before writing the target program file to the touch screen, send a download instruction to the touch screen, and wait for the touch screen to return a response instruction; if the touch screen returns a response instruction timeout or an instruction error, determine that the writing fails; If the response instruction is valid, the action of writing the target program file into the touch screen is started.
7. The burning device according to claim 6, characterized in that: The control module is also configured to: after writing the target program file to the touch screen, determine whether there are other data packets that have not been written, and if there are no other data packets that have not been written, determine that the write operation has been completed; if there are other data packets that have not been written, send the sequence numbers of the other data packets to the touch screen, and wait for the touch screen to return a response instruction.
8. The burning device according to claim 7, characterized in that: The control module is also configured to: if the touch screen returns a response instruction timeout and the number of instruction errors exceeds the error number limit, determine that the write has failed; if the touch screen returns a response instruction but the number of instruction errors does not exceed the error number limit, add 1 to the number of errors and resend the other data packets, and clear the number of errors when the response instruction is valid.
9. The burning device according to any one of claims 1 to 8, characterized in that: The burning device also includes: A power module, used to provide power to the touch screen; Inspection module, used for: The control module is further configured to determine that the target program file has been successfully written to the touch screen when the current target program file in the touch screen is consistent with the target program file described in the label on the touch screen.
10. The burning device according to any one of claims 1 to 8, characterized in that: The second communication module further includes at least one USB interface as follows: A third USB interface is used to connect a barcode scanner in the input and output device, and the barcode scanner is used to scan the label on the touch screen to obtain the information of the label; The fourth USB interface is used to connect a USB flash drive in the input / output device or an SD card used in conjunction with a card reader; The fifth USB interface is used to connect a keyboard in the input and output device.