A USB to LORA wireless serial port data transmission transceiver

By designing a USB to LORA wireless serial data transmission transceiver and using USB interface and radio frequency technology, the problems of complex operation and high cost in the existing technology are solved, and high-performance, low-power consumption long-distance wireless data transmission is achieved, which is suitable for Various industrial and IoT applications.

CN112600584BActive Publication Date: 2024-08-23GUANGZHOU DTECH ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011553041.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-08-23
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

Among the existing LORA wireless serial data communication products, the DB9 interface and plug-in terminal block method are troublesome to use and require additional accessories, resulting in difficult operation for customers, high costs, and waste of material resources.

Method used

Design a USB to LORA wireless serial port data transmission transceiver, using USB interface, USB to serial port chip, microcontroller data processing chip, RF data transmitting and receiving chip, RF switch chip and field effect transistor to realize data through serial port communication and SPI signal Transmission, supports wireless 433MHz frequency band to achieve wireless data transmission.

Benefits of technology

Provides a high-performance, low-power wireless data transmission solution, suitable for long-distance industrial serial communication, with wide coverage, supporting one-to-one, one-to-many or many-to-many data transmission, reducing operational complexity and cost , avoiding the need for wiring, and the transmission distance reaches 3 kilometers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112600584B
    Figure CN112600584B
Patent Text Reader

Abstract

This invention discloses a USB-to-LoRa wireless serial data transmission transceiver, comprising a USB interface J3, a USB-to-serial chip U4, a microcontroller data processing chip U3, an RF data transmitter and receiver chip U2, a field-effect transistor Q1, an RF switch chip U1, and an RF antenna mount J1. The USB interface J3 and the USB-to-serial chip U4 are connected via serial communication. The microcontroller data processing chip U3 and the RF data transmitter and receiver chip U2 are connected via circuitry. The VR-PA pin of the RF data transmitter and receiver chip U2 is connected to the RF2 pin of the RF switch chip U1. The RX / TX / RFMOD pins of the RF data transmitter and receiver chip U2 are connected to the gate (G) pin of the field-effect transistor Q1. The drain (D) pin of the field-effect transistor Q1 is connected to the VC2 pin of the RF switch chip U1. The RFC pin of the RF switch chip U1 is connected to the RF antenna mount J1. This invention is applied in serial data communication scenarios, featuring bidirectional transmission and reception, ease of use, and reduced capital costs and material resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless serial port data communication products, and specifically to the technology of USB to LORA wireless serial port data transmission transceiver. Background Art

[0002] At present, LORA wireless serial data communication products are mainly applied to products in the form of DB9 interfaces and plug-in terminals. This method can be used in most equipment applications, but it is too troublesome to use and requires other accessories to achieve wireless communication of equipment. For example, when a certain RS232 to LORA wireless serial data transceiver on the market is connected to the on-site computer equipment, it is also necessary to add a male to female RS232 data cable before it can be used. This not only makes it very troublesome for customers to operate, but more importantly, the cost of customers becomes higher, and it also causes a waste of material resources. Summary of the invention

[0003] The purpose of the present invention is to provide a USB to LORA wireless serial port data transmission transceiver, which is used in serial port data communication scenarios, has a two-way transceiver function, is easy to use and reduces capital costs and material resources.

[0004] The purpose of the present invention is achieved through the following technical solutions.

[0005] A USB to LORA wireless serial port data transmission transceiver, characterized in that the USB to LORA wireless serial port data transmission transceiver includes a USB interface J3, a USB to serial port chip U4, a single-chip microcomputer data processing chip U3, a radio frequency data transmitting and receiving chip U2, a field effect tube Q1, a radio frequency switch chip U1, and a radio frequency antenna base J1.

[0006] The USB interface J3 is connected to the USB-to-serial chip U4 through serial communication. After the USB interface J3 is inserted into the computer, the computer recognizes the USB-to-serial chip U4 and generates a new port number on the computer. After opening the upper computer, the port number is selected to send data to the USB-to-serial chip U4. The USB-to-serial chip U4 is connected to the single-chip microcomputer data processing chip U3 through serial communication. The USB-to-serial chip U4 receives the serial data signal through the pin "RXD". It is responsible for receiving the serial data sent from the serial port of the single-chip microcomputer data processing chip U3 and transmitting it to the computer through the USB signal. The USB-to-serial chip U4 sends the serial data signal through the pin "TXD". It is responsible for sending the serial data The single-chip data processing chip U3 is connected to the RF data transmitting and receiving chip U2. The single-chip data processing chip U3 receives the serial port data sent by the USB to serial port chip U4, packages and encrypts it, and then transmits the data packet to the RF data transmitting and receiving chip U2 through the SPI signal in the single-chip data processing chip U3 for data packet transmission. The VR-PA pin of the RF data transmitting and receiving chip U2 is connected to the RF2 pin of the RF switch chip U1, and the RFI-LF pin of the RF data transmitting and receiving chip U2 is connected to the RF1 pin of the RF switch chip U1. The RX / TX / The RFMOD pin is connected to the gate G pin of the field effect tube Q1, the drain D pin of the field effect tube Q1 is connected to the VC2 pin of the RF switch chip U1, the source S pin of the field effect tube Q1 is grounded, and the RFC pin of the RF switch chip U1 is connected to the ANT pin of the RF antenna base J1. After the RF data transmitting and receiving chip U2 receives the encrypted data packet sent by the single-chip computer data processing chip U3, it transmits the data to the RF switch chip U1 through VR-PA, and at the same time pulls up the RX / TX / RFMOD data flow control pin to output a high level to the field effect tube Q1. The field effect tube Q1 is pulled up by the RX / TX / RFMOD data flow control pin to output a high level to make the field effect tube The drain D of the third pin of Q1 outputs a high level to the RF switch chip U1. After the RF switch chip U1 receives the high level output of the drain D of the third pin of the field effect tube Q1, it outputs the high level to the VC2 pin to turn on the switch to the sending state. After the RF antenna base J1 receives the serial port data, it transmits the data to the RF switch chip U1. After receiving the serial port data, the RF switch chip U1 transmits the serial port data to the RF data transmitting and receiving chip U2 through the RF1 pin. At this time, the drain D of the third pin of the field effect tube Q1 outputs a low level to the VC2 pin to turn off the switch to the receiving state. After receiving the serial port data sent back by the RF switch chip U1, the RF data transmitting and receiving chip U2 performs packet processing and transmits the serial port data to the single-chip computer data processing chip U3 through the SPI signal.

[0007] The power output of the USB to serial port chip U4 provides DC3.3V power to the microcontroller data processing chip U3 and the RF data transmitting and receiving chip U2.

[0008] The single-chip data processing chip U3 is connected to the signal input pin 1 of the button "touch switch" via the 8th pin "PD0", which is the IO function pin. A pull-up resistor is added to the external pin "PD0" of the single-chip data processing chip U3 to put this pin in a high level state. When the touch switch is pressed, the 8th pin "PD0" is directly short-circuited with GND and the level is low at this time. When it remains low for 5 seconds, it will enter the configuration mode, and the communication parameters of the single-chip data processing chip U3 are set through the host computer software.

[0009] Compared with the prior art, the present invention has the following advantages:

[0010] The present invention is a multifunctional LORA wireless data transmission transceiver, which adopts LORA spread spectrum modulation transmission, a high-performance, high-reliability, high-stability and low-power wireless data transmission method, and is widely used in industrial serial port communications for small data and long distances. It has excellent performance in coverage area and power consumption, and is increasingly widely used in application scenarios of the Internet of Things. The present invention can also realize one-to-one, one-to-many, or many-to-many data transmission without distinguishing between the transmitting end and the receiving end.

[0011] The present invention provides a high-performance and low-cost solution for complex environments where wiring cannot be installed on site. It is a long-distance wireless communication solution, and its most prominent features are long distance and low power consumption, breaking through the coverage scenario that previously required wiring. This product uses the wireless 433MHz frequency band for wireless data transmission by default, and the supported wireless frequency band range is 410MHz-441MHz, with a transmission distance of 3 kilometers. Compared with LORA, GPRS, and 4G solutions, it does not require a monthly network rental fee (free frequency band application), and has a longer distance than WIFI and ZIGBEE.

[0012] The present invention is applied in serial data communication scenarios and uses as follows:

[0013] ① Wireless meter reading, such as smart electricity meter, smart water meter, smart gas meter, heat meter, etc.;

[0014] ② Changing physical quantities (temperature, humidity, water pressure, PM2.5 and other sensors);

[0015] ③ Wireless alarm (smoke detector, pyro-infrared);

[0016] ④Remote I / O controller (lighting control, air conditioning control);

[0017] ⑤Industrial application: connection of industrial machine tools, industrial automation instruments, long-distance irrigation equipment, access control, security control systems, highway scale data transmission, commercial cash registers and other equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a block diagram of the serial data transmission principle of the USB to LORA wireless serial data transmission transceiver of the present invention;

[0019] Figure 2 This is a block diagram of the serial data receiving principle of the USB to LORA wireless serial data transmission transceiver of the present invention;

[0020] Figure 3 The present invention is a serial data circuit diagram of the USB to LORA wireless serial data transmission transceiver. DETAILED DESCRIPTION

[0021] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0022] like Figure 1 , Figure 2 , Figure 3 The USB to LORA wireless serial port data transmission transceiver of the present invention includes a USB interface J3, a USB to serial port chip U4, a single-chip data processing chip U3, a radio frequency data transmitting and receiving chip U2, a field effect tube Q1, a radio frequency switch chip U1, and a radio frequency antenna base J1.

[0023] The serial communication connection between the USB interface J3 and the USB to serial port chip U4 realizes data transmission. Specifically, after the USB interface J3 is inserted into the computer, the computer recognizes the USB to serial port chip U4 and generates a new port number on the computer. After opening the upper computer and selecting the port number, the data is sent to the USB to serial port chip U4; the serial communication connection between the USB to serial port chip U4 and the single-chip microcomputer data processing chip U3 is realized. The USB to serial port chip U4 receives the data signal via the pin "RXD". It is responsible for receiving the serial port data sent from the serial port of the single-chip microcomputer data processing chip U3 and transmitting it to the computer through the USB signal. The chip U4 transmits data signals through the serial port via the pin "TXD", and is responsible for sending serial port data to the single-chip data processing chip U3 to realize data transmission output, that is, to realize data transmission between the USB-to-serial port chip U4 and the single-chip data processing chip U3; the single-chip data processing chip U3 is connected to the radio frequency data transmitting and receiving chip U2 by circuit, and data transmission is carried out between the two. Specifically, the single-chip data processing chip U3 receives the serial port data sent by the USB-to-serial port chip U4, packages it, encrypts it, and then transmits the data packet through the SPI signal in the single-chip data processing chip U3 to the radio frequency data transmitting and receiving chip U2 for data packet transmission;The VR-PA pin of the RF data transmitting and receiving chip U2 is circuit-connected with the RF2 pin of the RF switch chip U1, the RFI-LF pin of the RF data transmitting and receiving chip U2 is circuit-connected with the RF1 pin of the RF switch chip U1, the RX / TX / RFMOD pin of the RF data transmitting and receiving chip U2 is circuit-connected with the gate G pin of the field effect transistor Q1, the drain D pin of the field effect transistor Q1 is circuit-connected with the VC2 pin of the RF switch chip U1, the source S pin of the field effect transistor Q1 is grounded, the RFC pin of the RF switch chip U1 is circuit-connected with the ANT pin of the RF antenna base J1, and after receiving the encrypted data packet sent by the single-chip microcomputer data processing chip U3, the RF data transmitting and receiving chip U2 transmits the data to the RF switch chip U1 through the VR-PA, and at the same time pulls up the RX / TX / RFMOD data flow control pin. Output high level to field effect tube Q1, field effect tube Q1 is pulled up by RX / TX / RFMOD data flow control pin to output high level, so that field effect tube Q1 third pin drain D outputs high level to RF switch chip U1, RF switch chip U1 receives field effect tube Q1 third pin drain D output high level to VC2 pin to open the switch to send state, the RF antenna base J1 receives serial port data and transmits the data to RF switch chip U1, the RF switch chip U1 receives serial port data and transmits the serial port data to RF data transmitting and receiving chip U2 through RF1 pin, field effect tube Q1 third pin drain D outputs low level to VC2 pin to close the switch to receive state, RF data transmitting and receiving chip U2 receives serial port data transmitted from RF switch chip U1 and performs packet processing and transmits the serial port data to single-chip data processing chip U3 through SPI signal. ;

[0024] The power output of USB to serial port chip U4 supplies DC3.3V to the single-chip data processing chip U3 and the RF data transmitting and receiving chip U2. The single-chip data processing chip U3 is connected to the signal input pin 1 of the key "touch switch" through the 8th pin "PD0" or IO function pin. A pull-up resistor is added to the pin "PD0" of the single-chip data processing chip U3 to put this pin in a high level state. When the touch switch is pressed, the 8th pin "PD0" is directly short-circuited with GND, and the level is low at this time. If it remains low for 5 seconds, it will enter the configuration mode, and the communication parameters of the single-chip data processing chip U3 will be set through the host computer software. GND means grounding.

[0025] In the present invention, the functions of each chip are introduced as follows:

[0026] The single-chip data processing chip U3, model STM8L151G6U6: in the sending state, it receives the serial port data sent by the USB to serial chip CP2102N, packages and encrypts it, and then transmits the data packet to the RF data transmitting and receiving chip SX1278 through the SPI signal in the chip for data packet transmission; in the receiving state, it receives the serial port data sent back by the RF data transmitting and receiving chip SX1278, decrypts it, and then transmits the standard serial port data to the USB to serial chip CP2102N. Figure 3 In the circuit, the 8th pin "PD0" in the U3 chip STM8L151G6U6 is the IO function pin of the microcontroller, which is connected to the 1st pin of the button "touch switch". A pull-up resistor is added to the pin of the microcontroller to put this pin in a high level state. When the touch switch is pressed, the 8th pin of the microcontroller is directly short-circuited with GND and the level is low. When the microcontroller system detects that the pin level is low for 5 seconds, it will enter the configuration mode and the communication parameters of the microcontroller can be set through the host computer software. U3 chip STM8L151G6U6: Pin 16: NSS (CS) is the SPI signal "master / slave selection" function control pin; Pin 17: SCLK is the SPI signal "clock" function control pin; Pin 18: MOSI is the SPI signal "master output" function control pin; Pin 19: MISO is the SPI signal "master input" function control pin; Pin 20: NRESET (RF) is the signal "reset" function control pin; Pin 21: DIO0 is the signal "transmit interrupt mapping" function control pin.

[0027] The RF data transmitting and receiving chip U2, whose model is SW408: in the sending state, after receiving the encrypted data packet sent by the single-chip data processing chip U3, it transmits the data to the "RF switch chip SW408" through VR-PA and at the same time pulls up the RX / TX / RFMOD data flow control pin to output a high level to the "field effect transistor 2N7002"; in the receiving state, after receiving the serial port data sent back by the RF switch chip SW408, it performs packet processing and transmits the serial port data to the STM8L151G6U6 single-chip computer through the SPI signal. Figure 3 In the circuit, the 5th and 6th pins of the U2 chip SX1278 are connected to the 1st and 3rd pins of the 32MHz crystal oscillator "Y1" respectively, and a 15pF co-oscillation capacitor is added to each to make the SX1278 chip provide a stable working clock. The 25th and 27th pins of the U2 chip SX1278: Pin 27: PA-BOOSTO outputs a stable frequency output signal for high-power PA output through "L3, C19, C18, L4, C20, C13, L5, C21, L6, C14, C22"; Pin 25: VR-PA provides a stable power supply for the PA circuit through "C24, C25, L7". Figure 3 In the circuit, the first pin of the U2 chip SX1278 receives the signal from the U1 RF switch chip SW408 through "L2, C2, C5, C3" for signal filtering; the 20th pin "RXTX / RF_MOD" circuit of the U2 chip SX1278 has a signal directly connected to the 6th pin of the U1 RF switch chip SW408, and the other signal is connected to the 4th pin of the U1 "RF switch chip SW408" through a field effect transistor Q1 "2N7002". This part of the circuit uses The switching characteristics of the transistor Q1 are used to achieve high and low level switching. When the microcontroller U3 chip STM8L151G6U6 sends a data signal output to the U2 chip SX1278, the 20th pin "RXTX / RF_MOD" of the U2 chip SX1278 outputs a high level to turn on the field effect tube Q1 "2N7002" to make the 4th pin of the chip U1 "RF switch chip SW408" a high level. At this time, the data sent is sent from the 3rd pin RF2 of the chip U1 "RF switch chip SW408" to the 5th pin RFC.

[0028] RF switch chip U1, model SW408: When in the sending state, the third pin D of the field effect tube 2N7002 outputs a high level to the VC2 pin to turn on the switch to the sending state. At this time, the serial port data is transmitted to the RF antenna base J1 through the RFC pin; when in the receiving state, the RF switch chip SW408 receives the serial port data and transmits the serial port data to the RF data transmission and receiving chip SX1278 through the RF1 pin.

[0029] USB to serial chip CP2102N: When in the sending state, after receiving the serial port data sent by the computer, it sends the data to the STM8L151G6U6 microcontroller data processing chip through the TTL serial port signal; when in the receiving state, the serial port data received from the STM8L151G6U6 microcontroller through the TTL serial port is transmitted to the receiving computer software through the USB signal; the power output of the USB to serial port chip CP2102NU4 is provided to the microcontroller data processing chip and the RF data transmission and receiving chip, and the power supply is DC3.3V.

[0030] The important pin functions of the USB to serial chip CP2102N are as follows: Figure 3 The 25th pin "RXD" in the U4 chip CP2102N in the circuit is the serial port "receive" data signal, which is responsible for receiving the serial port data sent by the microcontroller serial port and transmitting it to the computer via the USB signal. The 26th pin "TXD" in the U4 chip CP2102N is the serial port "send" data signal, which is responsible for sending the serial port data to the microcontroller to realize data transmission output.

[0031] RF antenna base J1: In the sending state, the serial port data is transmitted to the antenna to realize wireless data transmission; in the receiving state, after receiving the serial port data, the data is transmitted to the RF switch chip SW408.

[0032] Field effect transistor Q1: The third pin D outputs a high level to the VC2 pin of the RF switch chip SW408 to open the switch to the sending state. When the microcontroller U3 chip STM8L151G6U6 sends a data signal output to the U2 chip SX1278, the 20th pin "RXTX / RF_MOD" of the U2 chip SX1278 outputs a high level to turn on the field effect transistor Q1 and make the 4th pin of the RF switch chip SW408 a high level. At this time, the data to be sent is sent from the 3rd pin RF2 of the RF switch chip SW408 to the 5th pin RFC; the third pin D outputs a low level to the VC2 pin of the RF switch chip SW408 to close the switch and put it in the receiving state.

[0033] The present invention is a product with two-way transceiver function, which can be used as a transmitter or a receiver and supports one-to-many communication mode. When used on site, only two products need to be purchased and used in combination, that is, one is used as a "transmitter" and the other is used as a receiver.

[0034] The following is a further explanation of the principle:

[0035] 1. After inserting the USB interface J3 into the "computer", the computer will recognize the USB serial port chip and generate a new port number on the computer. After opening the upper machine and selecting the port number, the data will be sent to the "USB to serial port chip CP2102N".

[0036] 2. After receiving the serial port data from the computer, the USB-to-serial chip CP2102N sends the data to the "STM8L151G6U6 microcontroller data processing chip" through the TTL serial port signal.

[0037] 3. The power output of the CP2102N chip U4 is used to provide DC3.3V power to the STM8L151G6U6 microcontroller data processing chip and the RF data transmitting and receiving SX1278 chip.

[0038] 4. The STM8L151G6U6 MCU data processing chip receives the serial port data sent by the serial chip CP2102N, packages and encrypts it, and then transmits the data packet through the SPI signal in the chip to the "RF data transmitting and receiving chip SX1278" for data packet sending.

[0039] 5. After receiving the encrypted data packet from the "STM8L151G6U6 microcontroller", the RF data transmitting and receiving chip SX1278 transmits the data to the RF switch chip SW408 through VR-PA and at the same time pulls up the RX / TX / RFMOD data flow control pin to output a high level to the field effect transistor 2N7002.

[0040] 6. The field effect tube 2N7002 is pulled up by the RX / TX / RFMOD data flow control pin to output a high level, so that the third pin D of the field effect tube 2N7002 outputs a high level to the RF switch chip SW408.

[0041] 7. The RF switch chip U1 receives the high level output from the third pin D of the field effect tube 2N7002 and passes it to the VC2 pin to open the switch to the sending state.

[0042] 8. The serial port data of the RF antenna base J1 is transmitted to the antenna through the RFC pin to realize wireless data transmission.

[0043] 9. After receiving the serial port data, the RF antenna base J1 transmits the data to the RF switch chip SW408.

[0044] 10. After receiving the serial port data, the RF switch chip U1 transmits the serial port data to the RF data transmitting and receiving chip SX1278 through the RF1 pin.

[0045] 11. At this time, the third pin D of the field effect tube 2N7002 outputs a low level to the VC2 pin, closing the switch and putting it in the receiving state.

[0046] 12. After receiving the serial port data sent back by the RF switch chip SW408, the RF data transmitting and receiving chip U2 performs packet processing and transmits the serial port data to the STM8L151G6U6 microcontroller through the SPI signal.

[0047] 13. The single-chip data processing chip U3 receives the serial port data sent back by the RF data transmitting and receiving chip SX1278, decrypts it and transmits the standard serial port data to the USB serial conversion chip CP2102N.

[0048] 14. The power output of the CP2102N chip U4 provides DC3.3V power to the STM8L151G6U6 microcontroller data processing chip and the RF data transmission and receiving SX1278 chip.

[0049] 15. The USB-to-serial port chip U4 receives the serial port data from the STM8L151G6U6 microcontroller through the TTL serial port and transmits it to the receiving computer software through the USB signal.

[0050] 16. After inserting the USB interface J3 of the product into the "computer", the computer will recognize the USB serial port chip and generate a new port number on the computer to connect and communicate with the USB serial chip CP2102N.

[0051] In the above text, the USB to serial chip CP2102N and the CP2102N chip U4 refer to the USB to serial port chip U4; the RF data transmitting and receiving chip SX1278, the U2 chip SX1278 and the SX1278 chip refer to the RF data transmitting and receiving chip U2; the STM8L151G6U6 microcontroller and the U3 chip STM8L151G6U6 refer to the microcontroller data processing chip U3; the RF switch chip SW408 and the chip U1 RF switch chip SW408 refer to the RF switch chip U1; the field effect transistor 2N7002 refers to the field effect transistor Q1.

[0052] The above product embodiment is one of the more preferred specific implementation methods of the present invention. The usual changes and substitutions made by those skilled in the art within the scope of this technical solution should be included in the protection scope of the present invention.

Claims

1. A USB to LORA wireless serial port data transmission transceiver, characterized in that The USB to LORA wireless serial port data transmission transceiver includes a USB interface J3, a USB to serial port chip U4, a single-chip data processing chip U3, a radio frequency data transmission and receiving chip U2, a field effect tube Q1, a radio frequency switch chip U1, and a radio frequency antenna base J1; The USB interface J3 is connected to the USB to serial port chip U4 through serial communication. After the USB interface J3 is inserted into the computer, the computer recognizes the USB to serial port chip U4 and generates a new port number on the computer. After opening the upper machine and selecting the port number, data is sent to the USB to serial port chip U4. The USB to serial port chip U4 is connected to the single-chip computer data processing chip U3 via a serial port communication for receiving or sending serial port data; The single-chip data processing chip U3 is connected to the radio frequency data transmitting and receiving chip U2 to perform data packet processing and transmission on the serial port data; The VR-PA pin of the RF data transmitting and receiving chip U2 is circuit-connected to the RF2 pin of the RF switch chip U1, the RFI-LF pin of the RF data transmitting and receiving chip U2 is circuit-connected to the RF1 pin of the RF switch chip U1, the RX / TX / RFMOD pin of the RF data transmitting and receiving chip U2 is circuit-connected to the gate G pin of the field effect transistor Q1, the drain D pin of the field effect transistor Q1 is circuit-connected to the VC2 pin of the RF switch chip U1, the source S pin of the field effect transistor Q1 is grounded, and the RFC pin of the RF switch chip U1 is circuit-connected to the ANT pin of the RF antenna base J1, and the RF switch chip U1 is controlled to be in a sending state or a receiving state through the field effect transistor Q1.

2. The USB to LORA wireless serial port data transmission transceiver according to claim 1, characterized in that : The USB to serial port chip U4 receives the serial port data signal through the pin "RXD", and is responsible for receiving the serial port data sent from the serial port of the single-chip data processing chip U3 and transmitting it to the computer through the USB signal. The USB to serial port chip U4 sends the serial port data signal through the pin "TXD", and is responsible for sending the serial port data to the single-chip data processing chip U3 to realize data transmission output; The single-chip data processing chip U3 receives the serial port data sent by the USB to serial port chip U4, packages it, and after encryption, transmits the data packet to the RF data transmitting and receiving chip U2 through the SPI signal in the single-chip data processing chip U3 for data packet transmission.

3. The USB to LORA wireless serial port data transmission transceiver according to claim 1, characterized in that After receiving the encrypted data packet sent by the single-chip data processing chip U3, the RF data transmitting and receiving chip U2 transmits the data to the RF switch chip U1 through the VR-PA, and at the same time pulls up the RX / TX / RFMOD data flow control pin to output a high level to the field effect transistor Q1. The field effect transistor Q1 is pulled up by the RX / TX / RFMOD data flow control pin to output a high level, so that the third pin drain D of the field effect transistor Q1 outputs a high level to the RF switch chip U1. The RF switch chip U1 receives the third pin drain D of the field effect transistor Q1 and outputs a high level. The level comes to the VC2 pin to open the switch. After receiving the serial port data, the RF antenna base J1 transmits the data to the RF switch chip U1. After receiving the serial port data, the RF switch chip U1 transmits the serial port data to the RF data transmitting and receiving chip U2 through the RF1 pin. At this time, the third pin drain D of the field effect tube Q1 outputs a low level to the VC2 pin to close the switch. After receiving the serial port data sent back by the RF switch chip U1, the RF data transmitting and receiving chip U2 performs packet processing and transmits the serial port data to the single-chip data processing chip U3 through the SPI signal.

4. The USB to LORA wireless serial port data transmission transceiver according to claim 1, characterized in that :The power output of USB to serial port chip U4 supplies DC3.3V to the microcontroller data processing chip U3 and the RF data transmitting and receiving chip U2.

5. The USB to LORA wireless serial port data transmission transceiver according to claim 1, characterized in that : The single-chip data processing chip U3 is connected to the signal input pin 1 of the button "touch switch" through the 8th pin "PD0", which is the IO function pin. A pull-up resistor is added to the external pin "PD0" of the single-chip data processing chip U3 to put this pin in a high level state. When the touch switch is pressed, the 8th pin "PD0" is directly short-circuited with GND and the level is low at this time. When it remains at a low level for 5 seconds, it will enter the configuration mode, and the communication parameters of the single-chip data processing chip U3 are set through the host computer software.