A multi-USB device exception handling system and method based on LORA technology
By adopting LORA technology's multi-USB device exception handling system on bank self-service terminals, it detects USB device communication abnormalities and automatically shuts down and restarts, solving the problem of wasted maintenance time caused by USB communication failures and ensuring business continuity.
Patent Information
- Application Number
- CN202410678285.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-29
AI Technical Summary
USB communication in bank self-service terminals is susceptible to external interference, causing communication connection failures. Maintenance personnel need to spend a lot of time on-site for repairs, affecting normal business processing.
Using a multi-USB device exception handling system based on LORA technology, through N LORA-USB on-off controllers, LORA main control and terminal control modules, it detects communication abnormalities of USB devices and sends power-on and off instructions to power off the target USB device. Then power on again to realize automatic restoration of communication.
There is no need to plug and unplug on site, which saves time in dealing with USB communication abnormalities and ensures the normal operation of bank self-service terminal services.
Smart Images

Figure CN118277145B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of financial equipment, and in particular relates to a multi-USB device exception processing system and method based on LORA technology. Background Art
[0002] At present, bank self-service terminals use multiple USB communication function modules. For example, USB devices with main functions such as capacitive electromagnetic screen, password keyboard, camera, second-generation ID card scanner, etc. all use USB interface for communication.
[0003] During USB communication, it is easy to be disturbed by external factors, resulting in communication failure. At this time, maintenance personnel need to manually unplug and plug the USB interface before USB communication can be restored to normal. However, since bank self-service terminals are set up in offline bank branches everywhere, maintenance personnel need to spend a lot of time to repair the USB communication failure, which makes USB communication recovery untimely and affects the normal handling of business. Summary of the invention
[0004] In order to make up for the defects of the prior art, the present invention provides a system and method for handling exceptions of multiple USB devices based on LORA technology.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] In the first aspect, a multi-USB device exception handling system based on LORA technology is provided, which is applied to a bank self-service terminal. The bank self-service terminal is connected to N USB devices, where N is a natural number greater than 1. The system includes:
[0007] N LORA-USB on-off controllers, LORA master control and terminal control modules;
[0008] One LORA-USB on-off controller corresponds to one USB device;
[0009] The USB device establishes a power supply line between the corresponding LORA-USB on-off controller and the power supply;
[0010] The terminal control module respectively establishes USB communication connection with N USB devices through N LORA-USB on-off controllers;
[0011] The LORA master controller and N LORA-USB on-off controllers are connected through LORA technology;
[0012] The terminal control module is connected to the LORA master control via a serial communication interface;
[0013] The terminal control module is used to detect whether the USB communication with N USB devices is normal; when the USB communication of the target USB device is abnormal, the USB communication abnormality signal of the target USB device is sent to the LORA master control;
[0014] The LORA master control is used to send a power-on / off instruction to the target LORA-USB on / off controller corresponding to the target USB device according to the USB communication abnormal signal, so that the target LORA-USB on / off controller controls the target USB device to power off and then power on according to the power-on / off instruction.
[0015] Furthermore, the terminal control module includes:
[0016] SP driver and terminal controller;
[0017] The SP driver is used to detect in real time whether the USB communications of N USB devices are normal; the abnormal USB device is used as the target USB device, and the device identification of the target USB device is sent to the terminal controller;
[0018] The terminal controller is used to generate a USB communication abnormality signal according to the device identification and send the USB communication abnormality signal to the LORA master control.
[0019] Furthermore, the LORA master control includes:
[0020] Main controller and main LORA transceiver module;
[0021] The main control LORA transceiver module is used to receive the USB communication abnormality signal sent by the terminal controller and send it to the main controller;
[0022] The main controller is used to obtain the device identification of the target USB device according to the USB communication abnormal signal analysis, determine the corresponding target Lora-USB on-off controller according to the device identification, generate a power on and off instruction, and send the power on and off instruction to the target Lora-USB on-off controller through the main control Lora transceiver module.
[0023] Furthermore, the command string of the power-on and power-off command includes a power-off command character, a power-off duration character and a power-on command character in order of precedence.
[0024] The LORA-USB on-off controller includes:
[0025] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0026] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0027] The on-off control chip is used to parse the command string of the power-on and off commands, and obtain the power-off command character, the power-off duration character and the power-on command character in sequence; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; determine the power-off duration of the target USB device according to the power-off duration character; when the power-off duration ends, send the power-on command to the on-off switch according to the power-on command character, so that the target USB device is powered on.
[0028] Furthermore, the command string of the power on / off command includes a power off command character and a power on command character in a certain order.
[0029] The LORA-USB on-off controller includes:
[0030] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0031] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0032] The on-off control chip is used to parse the command string of the power on and off command, obtain the power-off command character and the power-on command character according to the sequence; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; when the target USB device is powered off, the preset power-off clock is used for timing, and when the preset time is reached, send the power-on command to the on-off switch according to the power-on command character, so that the target USB device is powered on.
[0033] Furthermore, the command string of the power-on and power-off command includes a power-off command character.
[0034] The LORA-USB on-off controller includes:
[0035] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0036] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0037] The on-off control chip is used to parse the command string of the power-on and off commands to obtain the power-off command character; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; when the target USB device is powered off, a preset power-off clock is used for timing, and when the preset time is reached, a power-on command is automatically generated and sent to the on-off switch, so that the target USB device is powered on.
[0038] Furthermore,
[0039] The on-off control chip is also used to generate the same feedback signal according to the instruction string of the on-off instruction when receiving the on-off instruction through the on-off LORA transceiver module, and send the feedback signal to the LORA master control through the on-off LORA transceiver module;
[0040] The main controller is used to receive the feedback signal through the main control LORA transceiver module, analyze whether the feedback signal is the same as the character content of the power on and off command, if the same, it is determined that the command is received successfully; if not, it is determined that the command reception fails, and continue to generate subsequent power on and off commands and send them to the LORA-USB on and off controller.
[0041] In the second aspect, a method for handling multiple USB device exceptions based on LORA technology is provided, and the system for handling multiple USB device exceptions based on LORA technology in the first aspect above is applied, and the method includes:
[0042] The terminal control module detects whether the USB communication with N USB devices is normal;
[0043] When the USB communication of the target USB device is abnormal, a USB communication abnormality signal of the target USB device is sent to the LoRa master control;
[0044] The LORA master controller sends a power on / off command to the target LORA-USB on / off controller corresponding to the target USB device according to the USB communication abnormality signal;
[0045] The target LORA-USB on-off controller controls the target USB device to power off and then power on according to the power on and off instructions.
[0046] The beneficial effects achieved by the present invention are:
[0047] In the multi-USB device exception handling system based on LORA technology, there are N LORA-USB on-off controllers, LORA main control and terminal control module; one LORA-USB on-off controller corresponds to one USB device; the USB device establishes a power supply line with the power supply through the corresponding LORA-USB on-off controller; the terminal control module respectively connects with the N USB devices through the N LORA-USB on-off controllers for USB communication; the LORA main control and the N LORA-USB on-off controllers are connected through the LORA technology; the terminal control module is connected to the LORA main control through the serial communication interface; the terminal control module is used to detect whether the USB communication with the N USB devices is normal; when the USB communication of the target USB device is abnormal, the USB communication abnormality signal of the target USB device is sent to the LORA main control; the LORA main control is used to send a power-on and power-off instruction to the target LORA-USB on-off controller corresponding to the target USB device according to the USB communication abnormality signal, so that the target LORA-USB on-off controller controls the target USB device to power off according to the power-on and power-off instruction, and then powers on. This makes it unnecessary for maintenance personnel to go to the site to plug and unplug the USB interface, saving time for handling USB communication abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a structural diagram of the multi-USB device exception handling system based on LORA technology of the present invention;
[0049] Figure 2 The present invention is a flowchart of a method for handling exceptions of multiple USB devices based on LORA technology. DETAILED DESCRIPTION
[0050] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0051] In the present invention, a multi-USB device exception handling system based on LORA technology is applied in the financial field, especially in a bank self-service terminal. The bank self-service terminal is connected to N USB devices, where N is a natural number greater than 1. The USB device can be a device with main functions such as a capacitive electromagnetic screen, a password keyboard, a camera, and a second-generation ID scanner.
[0052] like Figure 1 As shown, an embodiment of the present invention provides a multi-USB device exception handling system based on LORA technology, including:
[0053] N LORA-USB on-off controllers 101, LORA master control 102 and terminal control module 103;
[0054] One LORA-USB on-off controller 101 corresponds to one USB device;
[0055] The USB device establishes a power supply line with the power supply through the corresponding LORA-USB on-off controller 101; the power supply is also set in the bank self-service terminal;
[0056] The terminal control module 103 respectively performs USB communication connection with N USB devices through N LORA-USB on-off controllers 101;
[0057] The LORA master control 102 and the N LORA-USB on-off controllers 101 are connected through the LORA technology; the LORA technology is a long-range radio (Long Range Radio). In this embodiment, the frequency used by LORA can be specifically 433MHz;
[0058] The terminal control module 103 is connected to the LORA master control 102 via a serial communication interface, and the serial communication interface is specifically a COM port;
[0059] The terminal control module 103 is used to detect whether the USB communication with N USB devices is normal; when the USB communication of the target USB device is abnormal, a USB communication abnormality signal of the target USB device is sent to the LORA master control 102;
[0060] The LORA master 102 is used to send a power-on / off instruction to the target LORA-USB on / off controller 101 corresponding to the target USB device according to the USB communication abnormality signal, so that the target LORA-USB on / off controller 101 controls the target USB device to power off and then power on according to the power-on / off instruction. After powering off, powering on again is equivalent to the maintenance personnel unplugging and plugging the USB device.
[0061] Combination Figure 1 In some embodiments of the present invention, the terminal control module 103 includes:
[0062] SP driver and terminal controller;
[0063] The SP driver is used to detect in real time whether the USB communications of N USB devices are normal; the abnormal USB device is used as the target USB device, and the device identification of the target USB device is sent to the terminal controller; the device identification is a unique identification of the USB device;
[0064] The terminal controller is used to generate a USB communication abnormality signal according to the device identifier and send the USB communication abnormality signal to the LORA master control 102.
[0065] Combination Figure 1In some embodiments of the present invention, the LORA master 102 includes:
[0066] Main controller and main LORA transceiver module;
[0067] The main control LORA transceiver module is used to receive the USB communication abnormality signal sent by the terminal controller and send it to the main controller;
[0068] The main controller is used to obtain the device identification of the target USB device according to the USB communication abnormal signal analysis, determine the corresponding target Lora-USB on-off controller 101 according to the device identification, generate a power on and off instruction, and send the power on and off instruction to the target Lora-USB on-off controller 101 through the main control Lora transceiver module.
[0069] Combination Figure 1 In some embodiments of the present invention, the instruction string of the power-on and power-off instruction includes a power-off instruction character, a power-off duration character and a power-on instruction character in a certain order.
[0070] The LORA-USB on-off controller 101 includes:
[0071] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0072] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0073] The on-off control chip is used to parse the command string of the power-on and off commands, and obtain the power-off command character, the power-off duration character and the power-on command character in sequence; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; determine the power-off duration of the target USB device according to the power-off duration character; when the power-off duration ends, send the power-on command to the on-off switch according to the power-on command character, so that the target USB device is powered on.
[0074] Combination Figure 1 In some embodiments of the present invention, the instruction string of the power on / off instruction includes a power off instruction character and a power on instruction character in a certain order.
[0075] The LORA-USB on-off controller 101 includes:
[0076] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0077] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0078] The on-off control chip is used to parse the command string of the power on and off command, obtain the power-off command character and the power-on command character according to the sequence; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; when the target USB device is powered off, the preset power-off clock is used for timing, and when the preset time is reached, send the power-on command to the on-off switch according to the power-on command character, so that the target USB device is powered on.
[0079] Combination Figure 1 In some embodiments of the present invention, the instruction string of the power-on and power-off instructions includes a power-off instruction character.
[0080] The LORA-USB on-off controller 101 includes:
[0081] On-off power switch, on-off control chip and on-off LORA transceiver module;
[0082] The on / off LORA transceiver module is used to receive the power on / off command sent by the main control LORA transceiver module;
[0083] The on-off control chip is used to parse the command string of the power-on and off commands to obtain the power-off command character; send the power-off command to the on-off switch according to the power-off command character, so that the target USB device is powered off; when the target USB device is powered off, a preset power-off clock is used for timing, and when the preset time is reached, a power-on command is automatically generated and sent to the on-off switch, so that the target USB device is powered on.
[0084] It should be noted that after the LORA master sends the power-on and power-off command, the LORA-USB on-off controller may not receive it due to problems such as signal packet loss, and the automatic power-on and power-off cannot be executed. In order to correctly execute the automatic power-on and power-off, the LORA-USB on-off controller needs to provide feedback. The specific process is as follows:
[0085] The on-off control chip is also used to generate the same feedback signal according to the instruction string of the on-off instruction when receiving the on-off instruction through the on-off LORA transceiver module, and send the feedback signal to the LORA master control 102 through the on-off LORA transceiver module;
[0086] The main controller is used to receive the feedback signal through the main control LORA transceiver module, analyze whether the feedback signal is the same as the character content of the power on and off instruction, if the same, it is determined that the instruction is received successfully; if not, it is determined that the instruction reception fails, and continue to generate subsequent power on and off instructions and send them to the LORA-USB on and off controller 101.
[0087] Specifically, the control chip of the USB on-off controller is STM32F101CX. Assuming that the instruction string of the power-on and power-off instructions generated by the LORA master is (STX, 'P', char, ETX), then STM32F101CX must return the string (STX, 'P', char, ETX). For the char in the string, define:
[0088] 0x31 The USB interface is powered on;
[0089] 0x30 USB interface is powered off;
[0090] For example: 0x02 0x50 0x31 0x03 means that the USB interface is powered on. Only when the returned data is consistent with the received data can it be said that the command is successfully received.
[0091] The working principle of the embodiment of the present invention is as follows:
[0092] In the multi-USB device exception handling system based on LORA technology, there are N LORA-USB on-off controllers, a LORA main control and a terminal control module; one LORA-USB on-off controller corresponds to one USB device; the USB device establishes a power supply line with the power supply through the corresponding LORA-USB on-off controller; the terminal control module respectively establishes USB communication connection with the N USB devices through the N LORA-USB on-off controllers; the LORA main control and the N LORA-USB on-off controllers are connected through the LORA technology; the terminal control module is connected to the LORA main control through a serial communication interface; the terminal control module is used to detect whether the USB communication with the N USB devices is normal; when the USB communication of the target USB device is abnormal, the USB communication abnormality signal of the target USB device is sent to the LORA main control; the LORA main control is used to send a power on and off instruction to the target LORA-USB on-off controller corresponding to the target USB device according to the USB communication abnormality signal, so that the target LORA-USB on-off controller controls the target USB device to power off according to the power on and off instruction, and then powers on. By turning off the power and then turning it on again, it is equivalent to realizing the plugging and unplugging operation by maintenance personnel, and the power on and off is controlled by instructions, so the maintenance personnel do not need to go to the site to plug and unplug the USB interface, which saves the time of handling USB communication anomalies and ensures the normal business of the bank's self-service terminal.
[0093] like Figure 2 As shown, an embodiment of the present invention provides a method for handling multiple USB device exceptions based on LORA technology, including:
[0094] 201, the terminal control module detects whether the USB communication with N USB devices is normal;
[0095] 202, when the USB communication of the target USB device is abnormal, a USB communication abnormality signal of the target USB device is sent to the LoRa master control;
[0096] 203, the LORA master controller sends a power on / off instruction to the target LORA-USB power on / off controller corresponding to the target USB device according to the USB communication abnormality signal;
[0097] 204, the target LORA-USB on-off controller controls the target USB device to power off and then power on according to the power on-off instruction.
[0098] The principles of the embodiments of the present invention are as follows:
[0099] The terminal control module detects whether the USB communication with N USB devices is normal; when the USB communication of the target USB device is abnormal, the target USB device's USB communication abnormality signal is sent to the LORA main control; according to the USB communication abnormality signal, the LORA main control sends a power-on and power-off instruction to the target LORA-USB on-off controller corresponding to the target USB device, so that the target LORA-USB on-off controller controls the target USB device to power off and then power on according to the power-on and power-off instruction. Powering on after powering off is equivalent to realizing the plug-in and unplug operation of the maintenance personnel, and the power on and off is controlled by the instruction, so the maintenance personnel do not need to go to the site to plug and unplug the USB interface, which saves time in handling USB communication abnormalities and ensures the normal business of the bank's self-service terminal.
[0100] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.
Claims
1. A multi-USB device exception handling system based on LORA technology, characterized in that: Applied to a bank self-service terminal, the bank self-service terminal is connected to N USB devices, where N is a natural number greater than 1, and the system includes: N LORA-USB on-off controllers, LORA master control and terminal control modules; One LORA-USB on-off controller corresponds to one USB device; The USB device establishes a power supply circuit between the corresponding LORA-USB on-off controller and the power supply; The terminal control module is connected to the N USB devices through the N LORA-USB on-off controllers for USB communication; The LORA master control and the N LORA-USB on-off controllers are connected via LORA technology; The terminal control module is connected to the LORA master via a serial communication interface; The terminal control module is used to detect whether the USB communication with the N USB devices is normal; when the USB communication of the target USB device is abnormal, send a USB communication abnormality signal of the target USB device to the LORA master control; The LORA master is used to send a power-on / off instruction to the target LORA-USB on / off controller corresponding to the target USB device according to the USB communication abnormality signal, so that the target LORA-USB on / off controller controls the target USB device to power off and then power on according to the power-on / off instruction; The terminal control module includes: an SP driver and a terminal controller; The SP driver is used to detect in real time whether the USB communications of the N USB devices are normal; taking the abnormal USB device as the target USB device, and sending the device identification of the target USB device to the terminal controller; The terminal controller is used to generate a USB communication abnormality signal according to the device identification, and send the USB communication abnormality signal to the LORA master control; The LORA master control includes: a main controller and a main control LORA transceiver module; The main control LORA transceiver module is used to receive the USB communication abnormality signal sent by the terminal controller and send it to the main controller; The main controller is used to obtain the device identification of the target USB device according to the USB communication abnormal signal, determine the corresponding target Lora-USB on-off controller according to the device identification, generate a power on and off instruction, and send the power on and off instruction to the target Lora-USB on-off controller through the main control Lora transceiver module; When the instruction string of the power-on and power-off instruction includes a power-off instruction character, a power-off duration character and a power-on instruction character in a certain order, the LORA-USB on-off controller includes: On-off power switch, on-off control chip and on-off LORA transceiver module; The on-off LORA transceiver module is used to receive the on-off instruction sent by the master control LORA transceiver module; The on-off control chip is used to parse the instruction string of the power-on-off instruction, obtain the power-off instruction character, the power-off duration character and the power-on instruction character according to the sequence; send the power-off instruction to the on-off switch according to the power-off instruction character, so that the target USB device is powered off; determine the power-off duration of the target USB device according to the power-off duration character; when the power-off duration ends, send the power-on instruction to the on-off switch according to the power-on instruction character, so that the target USB device is powered on; When the instruction string of the power-on and power-off instruction includes a power-off instruction character and a power-on instruction character in a certain order, the LORA-USB on-off controller includes: On-off power switch, on-off control chip and on-off LORA transceiver module; The on-off LORA transceiver module is used to receive the on-off instruction sent by the master control LORA transceiver module; The on-off control chip is used to parse the instruction string of the power-on-off instruction, obtain the power-off instruction character and the power-on instruction character according to the sequence; send the power-off instruction to the on-off switch according to the power-off instruction character, so that the target USB device is powered off; when the target USB device is powered off, a preset power-off clock is used for timing, and when the preset time is reached, send the power-on instruction to the on-off switch according to the power-on instruction character, so that the target USB device is powered on; When the instruction string of the power-on and power-off instruction includes a power-off instruction character, the LORA-USB on-off controller includes: On-off power switch, on-off control chip and on-off LORA transceiver module; The on-off LORA transceiver module is used to receive the on-off instruction sent by the master control LORA transceiver module; The on-off control chip is used to parse the instruction string of the power-on and off instructions to obtain the power-off instruction character; send the power-off instruction to the power-on and off switch according to the power-off instruction character, so that the target USB device is powered off; when the target USB device is powered off, a preset power-off clock is used for timing, and when a preset time is reached, a power-on instruction is automatically generated and sent to the power-on and off switch, so that the target USB device is powered on; The on-off control chip is also used to generate the same feedback signal according to the instruction string of the on-off instruction when receiving the on-off instruction through the on-off LORA transceiver module, and send the feedback signal to the LORA master control through the on-off LORA transceiver module; The main controller is used to receive the feedback signal through the main control LORA transceiver module, analyze whether the feedback signal is the same as the character content of the power on and off instruction, and if so, determine that the instruction is received successfully; if not, determine that the instruction fails to be received, continue to generate subsequent power on and off instructions and send them to the LORA-USB on and off controller.
2. A method for handling multiple USB device exceptions based on LORA technology, characterized in that: The multi-USB device exception handling system based on LORA technology as described in claim 1 is applied, and the method includes: The terminal control module detects whether the USB communication with N USB devices is normal; When the USB communication of the target USB device is abnormal, a USB communication abnormality signal of the target USB device is sent to the LoRa master control; The LORA master sends a power on / off instruction to the target LORA-USB on / off controller corresponding to the target USB device according to the USB communication abnormality signal; The target LORA-USB on-off controller controls the target USB device to power off and then power on according to the power on-off instruction; The terminal control module includes: an SP driver and a terminal controller; The SP driver detects in real time whether the USB communications of the N USB devices are normal; the abnormal USB device is used as the target USB device, and the device identification of the target USB device is sent to the terminal controller; The terminal controller generates a USB communication abnormality signal according to the device identifier, and sends the USB communication abnormality signal to the LORA master control; The LORA master control includes: a main controller and a main control LORA transceiver module; The main control LORA transceiver module receives the USB communication abnormality signal sent by the terminal controller, and sends it to the main controller; The main controller obtains the device identification of the target USB device according to the USB communication abnormal signal, determines the corresponding target Lora-USB on-off controller according to the device identification, generates a power on and off instruction, and sends the power on and off instruction to the target Lora-USB on-off controller through the main control Lora transceiver module; The LORA-USB on-off controller includes: an on-off power switch, an on-off control chip and an on-off LORA transceiver module; When the instruction string of the power-on and power-off instruction includes a power-off instruction character, a power-off duration character and a power-on instruction character in a sequence, the on-off LORA transceiver module receives the power-on and power-off instruction sent by the master LORA transceiver module; the on-off control chip parses the instruction string of the power-on and power-off instruction, and obtains the power-off instruction character, the power-off duration character and the power-on instruction character in a sequence; sends a power-off instruction to the on-off switch according to the power-off instruction character, so that the target USB device is powered off; determines the power-off duration of the target USB device according to the power-off duration character; when the power-off duration ends, sends a power-on instruction to the on-off switch according to the power-on instruction character, so that the target USB device is powered on; When the instruction string of the power-on and power-off instruction includes a power-off instruction character and a power-on instruction character according to a sequence, the on-off LORA transceiver module receives the power-on and power-off instruction sent by the master LORA transceiver module; the on-off control chip parses the instruction string of the power-on and power-off instruction, and obtains a power-off instruction character and a power-on instruction character according to a sequence; a power-off instruction is sent to the on-off switch according to the power-off instruction character, so that the target USB device is powered off; when the target USB device is powered off, a preset power-off clock is used for timing, and when a preset duration is reached, a power-on instruction is sent to the on-off switch according to the power-on instruction character, so that the target USB device is powered on; When the power-on and power-off instruction string includes a power-off instruction character, the on-off LORA transceiver module receives the power-on and power-off instruction sent by the master LORA transceiver module; the on-off control chip parses the power-on and power-off instruction string to obtain a power-off instruction character; according to the power-off instruction character, a power-off instruction is sent to the on-off switch to power off the target USB device; when the target USB device is powered off, a preset power-off clock is used for timing, and when the preset time is reached, a power-on instruction is automatically generated and sent to the on-off switch to power on the target USB device; After the on-off control chip sends a power-on instruction to the on-off switch, the method further includes: When the on-off control chip receives the on-off power instruction through the on-off LORA transceiver module, it generates the same feedback signal according to the instruction string of the on-off power instruction, and sends the feedback signal to the LORA master control through the on-off LORA transceiver module; The main controller receives the feedback signal through the main control LORA transceiver module, analyzes whether the feedback signal is the same as the character content of the power on and off instruction, and if so, determines that the instruction is received successfully; if not, determines that the instruction fails to be received, continues to generate subsequent power on and off instructions and sends them to the LORA-USB on and off controller.
Citation Information
Patent Citations
Method and system of exchanging control information in bank self-service terminal
CN106874127A
Information monitoring system and method
CN110012099A
USB peripheral control device and system and control method thereof
CN110046108A
Intelligent connection system
CN113596799A
Remote switch control terminal with holding function based on Lora communication technology
CN209606800U
