CN107015930B - USB expansion device and method based on Lora technology - Google Patents

USB expansion device and method based on Lora technology Download PDF

Info

Publication number
CN107015930B
CN107015930B CN201710209804.6A CN201710209804A CN107015930B CN 107015930 B CN107015930 B CN 107015930B CN 201710209804 A CN201710209804 A CN 201710209804A CN 107015930 B CN107015930 B CN 107015930B
Authority
CN
China
Prior art keywords
lora
mode
expander
usb
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710209804.6A
Other languages
Chinese (zh)
Other versions
CN107015930A (en
Inventor
张铁军
俞浩
钟景维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Emaga Interconnect Technologies Co ltd
Original Assignee
Emaga Interconnect Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Emaga Interconnect Technologies Co ltd filed Critical Emaga Interconnect Technologies Co ltd
Priority to CN201710209804.6A priority Critical patent/CN107015930B/en
Publication of CN107015930A publication Critical patent/CN107015930A/en
Application granted granted Critical
Publication of CN107015930B publication Critical patent/CN107015930B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R13/00Details of coupling devices of the kinds covered by groups H01R12/70 or H01R24/00 - H01R33/00
    • H01R13/66Structural association with built-in electrical component
    • H01R13/665Structural association with built-in electrical component with built-in electronic circuit
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01RELECTRICALLY-CONDUCTIVE CONNECTIONS; STRUCTURAL ASSOCIATIONS OF A PLURALITY OF MUTUALLY-INSULATED ELECTRICAL CONNECTING ELEMENTS; COUPLING DEVICES; CURRENT COLLECTORS
    • H01R31/00Coupling parts supported only by co-operation with counterpart
    • H01R31/06Intermediate parts for linking two coupling parts, e.g. adapter
    • H01R31/065Intermediate parts for linking two coupling parts, e.g. adapter with built-in electric apparatus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/24Interrupt
    • G06F2213/2406Generation of an interrupt or a group of interrupts after a fixed or calculated time elapses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a Universal Serial Bus (USB) expansion device based on a local area network (Lora) technology, which comprises a Lora transceiver and a microcontroller, wherein the microcontroller comprises an interrupt controller, an Serial Peripheral Interface (SPI) and a USB interface connected with intelligent equipment, and the Lora transceiver is respectively connected with the interrupt controller and the SPI. The invention also provides a USB expansion method based on the Lora technology. The beneficial effects of the invention are as follows: the intelligent device with the USB interface can be converted into the node, gateway or gateway server integrated device of the LoRaWAN, so that the intelligent device can become a part of the LoRaWAN, data acquisition or control of the intelligent device on other LoRa nodes is realized, or the intelligent device is acquired or controlled, and the application scene of the LoRa is richer.

Description

USB expansion device and method based on Lora technology
Technical Field
The invention relates to a USB expansion device, in particular to a USB expansion device and method based on Lora technology.
Background
Existing smart devices, including smartphones, computers, smart set-top boxes, smart routers, smart televisions, etc., all possess powerful processors and are based on complex operating systems, such as android, IOS, windows, linux and its derivative versions, etc., most of which possess USB interfaces, but these devices cannot be directly accessed into the LoRaWAN, becoming part of the LoRaWAN.
If a LoRaWAN network needs to be built, a brand new LoRaWAN gateway device or node hardware device needs to be designed and manufactured, which is unnecessary and an additional cost for some scenes.
How to better utilize the hardware performance of the existing intelligent device and the advantage of being able to connect to an IP network, so that the existing intelligent device becomes a part of a low-power wide area network, namely a lorewan, is a problem at present.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a USB expansion device and method based on the Lora technology.
The invention provides a Universal Serial Bus (USB) expansion device based on a local area network (Lora) technology, which comprises a Lora transceiver and a microcontroller, wherein the microcontroller comprises an interrupt controller, an Serial Peripheral Interface (SPI) and a USB interface connected with intelligent equipment, and the Lora transceiver is respectively connected with the interrupt controller and the SPI.
The invention also provides a USB expansion method based on the Lora technology, which comprises the following steps: s1, enumerating a LoRa expander;
s2, initializing the LoRa expander by the intelligent equipment;
s3, switching working modes of a LoRa transceiver in the LoRa expander;
s4, sending data through the LoRa expander;
s5, receiving data through the LoRa expander.
As a further development of the invention, step S1 comprises the following sub-steps:
s11, detecting insertion of USB equipment, and supplying power to the equipment by using VBUS;
s12, initializing USB equipment;
s13, the intelligent device reads the device descriptor and the interface descriptor of the USB device;
s14, judging whether the USB device base class is a wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s15, judging whether the USB equipment subclass is a LoRa wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s16, judging whether the protocol type of the USB equipment is a LoRa expander protocol, if so, performing the next step, and if not, using other protocols to operate.
As a further development of the invention, step S2 comprises the following sub-steps:
s21, enumeration is successful;
s22, obtaining the transceiver model and the technical index through a configuration endpoint (hereinafter referred to as an endpoint A) and an endpoint (hereinafter referred to as an endpoint B) for reading the configuration result;
s23, resetting the role of the LoRa expander;
s24, setting the roles of the LoRa expander;
s25, setting the functional attribute of the LoRa expander;
s26, enabling the LoRa expander to enter a working state;
s27, initializing the LoRa expander successfully.
As a further improvement of the present invention, step S3 includes a Sleep mode, a Stdby mode, a Tx mode, and an Rx mode, wherein the Sleep mode is switched to the Stdby mode, the Stdby mode is switched to the Tx mode or the Rx mode, the Tx mode is switched to the Sleep mode, and the Rx mode is switched to the Sleep mode.
As a further development of the invention, step S4 comprises the following sub-steps:
s41, an endpoint (hereinafter referred to as 'endpoint C') writing transmission data to the LoRa transceiver receives data from the intelligent device;
s42, judging whether the data format is correct, if so, carrying out the next step, and if so, returning the data format error through an endpoint reading the data received by the LoRa transceiver, hereinafter referred to as 'endpoint D';
s43, adding the data into a transmission queue;
s44, the data transmission is completed;
s45, waiting to be in a transmittable state;
s46, randomly selecting a channel;
s47, waiting for the end of the duty cycle;
s48, switching from a Sleep mode to a Stdby mode;
s49, entering a Tx mode, and writing into a FIFO of the LoRa transceiver;
s410, waiting for a transmission completion interrupt;
s411, closing the transmission interrupt;
s412, opening a receiving timer;
s413, entering a sleep mode;
s414, returning successful sending through the endpoint D.
As a further development of the invention, step S5 comprises the following sub-steps:
s51, overtime of a receiving timer;
s52, switching from a Sleep mode to a Stdby mode;
s53, switching to an Rx mode, enabling a receiving interrupt, and enabling a receiving timeout timer;
s54, judging whether the receiving is overtime, if not, carrying out the next step, if so, closing the receiving interruption, entering a Sleep mode, and returning to the receiving overtime through the endpoint D;
s55, triggering a receiving interrupt;
s56, closing the receiving interrupt;
s57, closing a receiving timeout timer;
s58, entering a Sleep mode;
and S59, sending the received data to the intelligent device through the endpoint D.
The beneficial effects of the invention are as follows: the intelligent device with the USB interface can be converted into the node, gateway or gateway server integrated device of the LoRaWAN, so that the intelligent device can become a part of the LoRaWAN, data acquisition or control of the intelligent device on other LoRa nodes is realized, or the intelligent device is acquired or controlled, and the application scene of the LoRa is richer.
Drawings
Fig. 1 is a schematic diagram of a USB expansion device based on the Lora technology of the present invention.
Fig. 2 is a flowchart of enumeration of a Lora extender of a method for USB extension based on the Lora technology of the present invention.
Fig. 3 is a flowchart of initializing a Lora expander by an intelligent device according to a method for USB expansion based on the Lora technology of the present invention.
Fig. 4 is a flowchart for switching working modes of a Lora transceiver in a Lora expander of a USB expansion method based on the Lora technology.
Fig. 5 is a flow chart of transmitting data through a Lora extender in a method for USB extension based on the Lora technology according to the present invention.
Fig. 6 is a flow chart of a method for USB expansion based on the Lora technology for receiving data by the Lora expander according to the present invention.
Detailed Description
The invention is further described with reference to the following description of the drawings and detailed description.
As shown in fig. 1 to 6, a USB extension device based on the Lora technology includes a Lora transceiver 100 and a microcontroller, the microcontroller includes an interrupt controller 200, an SPI interface 300, and a USB interface 400 connected to a smart device, and the Lora transceiver 100 is connected to the interrupt controller 200 and the SPI interface 300, respectively.
The invention adopts the mode of adding the Lora video module and the USB, can convert the existing intelligent equipment with the USB interface into the equipment integrating the LoRaWAN node, gateway or gateway server, can become a part of the LoRaWAN, realizes the data acquisition or control of the intelligent equipment on other LoRa nodes, or the intelligent equipment is acquired or controlled, and ensures that the application scene of the LoRa is more abundant.
The USB expansion device of LoRa is called as a LoRa expander for short, and the intelligent device with the USB interface is called as an intelligent device for short. The LoRa radio frequency transceiver module is referred to simply as "LoRa transceiver 100". The existing intelligent equipment with the USB interface refers to a smart phone, a personal computer, an intelligent router, an intelligent network set top box and the like.
The USB interface herein refers broadly to all physical interfaces supporting USB protocols, such as USB type a, USB type B, USB type C, USB micro, and USB mini.
The LoRa expander is connected with the intelligent device through the USB interface 400.
The intelligent Device is used as a USB Host, and the LoRa extender is used as a USB Device. The two parties communicate through the protocol of the invention.
The LoRa expander encapsulates and abstracts the original operation mode of the LoRa transceiver, and considers that the data transmission delay of the USB is more than millisecond level and is not suitable for the intelligent device to directly and singly operate the register of the LoRa transceiver, so that the LoRa expander realizes several types (Class A, class B, class C and the like) of the LoRaWAN terminal equipment and protocols of the LoRaWAN gateway. The intelligent device can select and configure the role of the LoRa expander (including LoRaWAN terminal equipment, loRaWAN gateway or self-defined role, hereinafter referred to as "role") so as to realize the access of the intelligent device to the LoRaWAN. The application mode of the LoRaWAN is realized by the intelligent equipment. The LoRa extender also provides a self-defined role approach in view of the flexibility of use, and the private protocol and communication approach can be implemented using a batch configuration of the registers of the LoRa transceiver.
The hardware block diagram of the LoRa extender is shown in fig. 1.
The LoRa extender provides 4 endpoints using interrupt transmission mode for transceiving data, wherein:
1. a configuration endpoint (hereinafter "endpoint a") which is an OUT endpoint for configuring the lorewan role, configuring the lorewan function attributes, batch writing the registers of the LoRa transceiver;
2. an endpoint that reads the configuration result (hereinafter referred to as "endpoint B"), which is an IN endpoint, is used to obtain the configuration result and to batch read the return values of the registers of the LoRa transceiver.
3. An endpoint (hereinafter referred to as "endpoint C") for writing transmission data to the LoRa transceiver is an OUT endpoint for writing desired transmission data and corresponding length to the transmission buffer of the LoRa transceiver, where information such as channel, data rate, transmission power, etc. can be selectively written for transmission.
4. An endpoint for reading data received by the LoRa transceiver is an IN endpoint for reading data from the receive buffer of the LoRa transceiver, where the information includes the length of the received data frame, channel, data rate, link margin, RSSI, signal to noise ratio, etc.
The intelligent device can read the model of the LoRa transceiver carried by the LoRa extender and basic technical indexes. It is further clear how to apply the LoRa expander.
When the smart device wishes for the LoRa extender to switch from one role to another, a reset command can be sent through endpoint a and information of the success of the reset can be read from endpoint B.
The invention also provides a USB expansion method based on the Lora technology, which comprises the following steps:
s1, enumerating a LoRa expander;
s2, initializing the LoRa expander by the intelligent equipment;
s3, switching working modes of a LoRa transceiver in the LoRa expander;
s4, sending data through the LoRa expander;
s5, receiving data through the LoRa expander.
Step S1 comprises the following sub-steps:
s11, detecting insertion of USB equipment, and supplying power to the equipment by using VBUS;
s12, initializing USB equipment;
s13, the intelligent device reads the device descriptor and the interface descriptor of the USB device;
s14, judging whether the USB device base class is a wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s15, judging whether the USB equipment subclass is a LoRa wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s16, judging whether the protocol type of the USB equipment is a LoRa expander protocol, if so, performing the next step, and if not, using other protocols to operate.
Step S2 comprises the following sub-steps:
s21, enumeration is successful;
s22, obtaining the model and technical index of the transceiver through the endpoint A and the endpoint B;
s23, resetting the role of the LoRa expander;
s24, setting the roles of the LoRa expander;
s25, setting the functional attribute of the LoRa expander;
s26, enabling the LoRa expander to enter a working state;
s27, initializing the LoRa expander successfully.
Wherein the functional attribute settings of the LoRa extender include:
1. setting LNA gain (Low-noise amplifier)
2. The reception sensitivity is set.
3. Setting whether the receiver enables automatic reset (if automatic reset is enabled, automatic reset when the receiver receives saturation or detects a packet collision)
4. Setting whether or not to turn on AFC when the receiver is started (automatic frequency correction automatic frequency correction)
5. Setting whether the AGC is on when the receiver is started (Automatic Gain Control automatic gain control)
6. The receiver interrupt trigger condition is set which event needs to be captured, whether an RSSI interrupt or a preamble is detected.
7. The receiver front-end is set to compensate for the RSSI offset.
8. The RSSI is set to be the average of how many samples pass.
9. Setting on or off header detection
10. The setting detects that a header of several bytes starts to generate an interrupt.
11. Setting header one-bit identification of how many chip errors can be tolerated at most
12. It is set whether to receive a calibration interrupt of the rc oscillator.
13. The frequency of the transceiver output clock is set.
14. It is set whether to restart the receiver after receiving a valid data packet.
15. Setting whether the header is reverse (normally 0x55, reverse 0 xaa)
16. The generation and detection of sync words is set to be enabled.
17. FIFO fill conditions are set.
18. The length of the sync word is set.
19. The data of each byte of the sync word is set.
20. The length of the data packet is set to be fixed or variable.
21. Setting the coding mode of the data packet.
22. Setting whether to enable calculation and detection of CRC
23. Setting whether or not to generate interruption when CRC check fails
24. Whether the received data packet is filtered or not is set, and the node address filtering and the broadcast address filtering can be performed.
25. The transmission of data may begin when the data in the FIFO is set to be more or less.
26. An interrupt threshold of the FIFO is set, and an interrupt is triggered when more than a few bytes of data in the FIFO.
27. The calibration of the co-directional and quadrature mismatch is set when the temperature change is more or less.
28. The mapping of interrupts is set.
29. The length of the LoRa load is set.
Step S3 includes a Sleep mode, a Stdby mode, a Tx mode, and an Rx mode, wherein the Sleep mode is switched to the Stdby mode, the Stdby mode is switched to the Tx mode or the Rx mode, the Tx mode is switched to the Sleep mode, and the Rx mode is switched to the Sleep mode. When the LoRa expander is started, 4 modes of operation are included (see table 1).
Schema name English abbreviation Internal module for enabling transceiver
Sleep mode Sleep Without any means for
Standby mode Stdby Top regulator and crystal oscillator
Transmission mode Tx Frequency synthesizer and receiver
Reception mode Rx Frequency synthesizer and receiver
Table 1 working modes of LoRa transceiver
Step S4 comprises the following sub-steps:
s41, the endpoint C receives data from the intelligent equipment;
s42, judging whether the data format is correct, if so, carrying out the next step, and if not, returning to the data format error through the endpoint D;
s43, adding the data into a transmission queue;
s44, the data transmission is completed;
s45, waiting to be in a transmittable state;
s46, randomly selecting a channel;
s47, waiting for the end of the duty cycle;
s48, switching from a Sleep mode to a Stdby mode;
s49, entering a Tx mode, and writing into a FIFO of the LoRa transceiver;
s410, waiting for a transmission completion interrupt;
s411, closing the transmission interrupt;
s412, opening a receiving timer;
s413, entering a sleep mode;
s414, returning successful sending through the endpoint D.
If the smart device is to send data to the LoRaWAN, the operational flow is shown in FIG. 5.
Wherein entering Stdby mode prior to transmission comprises: setting a payload length, setting a modulation mode, setting a transmission power, setting a data rate, setting a coding rate, setting a header length, setting whether a packet length is fixed, setting whether CRC calculation is enabled, setting whether signal inversion is performed, and the like.
Step S5 comprises the following sub-steps:
s51, overtime of a receiving timer;
s52, switching from a Sleep mode to a Stdby mode;
s53, switching to an Rx mode, enabling a receiving interrupt, and enabling a receiving timeout timer;
s54, judging whether the receiving is overtime, if not, carrying out the next step, if so, closing the receiving interruption, entering a Sleep mode, and returning to the receiving overtime through the endpoint D;
s55, triggering a receiving interrupt;
s56, closing the receiving interrupt;
s57, closing a receiving timeout timer;
s58, entering a Sleep mode;
and S59, sending the received data to the intelligent device through the endpoint D.
If the intelligent device is to receive the data sent by the LoRaWAN to the intelligent device, the operation flow is shown in FIG. 6.
Wherein receiving the pre-Stdby mode comprises: setting a demodulation mode, setting a reception frequency, setting a reception data rate, setting a reception coding rate, setting a reception bandwidth, setting whether CRC check is enabled, setting whether signal inversion is performed, setting a reception window length, setting whether a reception window is continuously received, and the like.
The specific meaning of sending and receiving data (application layer protocol) may be at the discretion of the application.
The USB expansion device and the method based on the Lora technology have the following advantages:
1. combining with popular smart devices can make the lorewan easier to popularize.
2. The LoRa expander is simpler to design and manufacture as a fitting.
3. The LoRa expander has significant cost advantages over other LoRa devices.
4. The LoRa expander can change waste intelligent equipment into valuable, and reduces the waste of the whole society and the environmental pollution caused by the waste intelligent equipment.
5. The intelligent equipment, especially the intelligent mobile phone software and hardware performance is updated rapidly, and a large number of mobile phone app developers are pushing, the application quality of the low-power wide area network of the LoRaWAN can be improved by applying the LoRa extender, and more application scenes and more possibilities are created.
According to the USB expansion device and method based on the Lora technology, the LoRa expander can be inserted into the intelligent network set top box in a family, and the set top box comprises a driver of the LoRa expander and a LoRaWAN server program, so that the set top box becomes a LoRaWAN server. All the control and data acquisition devices of the LoRaWAN in the home can be interconnected with the control and data acquisition devices, and the control and data acquisition devices of the LoRaWAN can be accessed to gardens and vehicles nearby the home due to the long transmission distance of the LoRa. With the existing IP network, users can monitor the data of these devices in real time with smartphones. The same scenario may be applied to schools, businesses, etc.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (5)

1. The USB expansion method based on the Lora technology is characterized by comprising the following steps of:
s1, enumerating a LoRa expander;
s2, initializing the LoRa expander by the intelligent equipment;
s3, switching working modes of a LoRa transceiver in the LoRa expander;
s4, sending data through the LoRa expander;
s5, receiving data through the LoRa expander;
step S1 comprises the following sub-steps:
s11, detecting insertion of USB equipment, and supplying power to the equipment by using VBUS;
s12, initializing USB equipment;
s13, the intelligent device reads the device descriptor and the interface descriptor of the USB device;
s14, judging whether the USB device base class is a wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s15, judging whether the USB equipment subclass is a LoRa wireless controller, if so, performing the next step, and if not, using other protocols for operation;
s16, judging whether the protocol type of the USB equipment is a LoRa expander protocol, if so, performing the next step, and if not, using other protocols to operate.
2. The method for USB extension based on the Lora technology according to claim 1, wherein step S2 comprises the sub-steps of:
s21, enumeration is successful;
s22, obtaining the model and technical index of the transceiver through configuration endpoints and endpoints for reading configuration results;
s23, resetting the role of the LoRa expander;
s24, setting the roles of the LoRa expander;
s25, setting the functional attribute of the LoRa expander;
s26, enabling the LoRa expander to enter a working state;
s27, initializing the LoRa expander successfully.
3. The method according to claim 2, wherein the step S3 includes a Sleep mode, a Stdby mode, a Tx mode, and an Rx mode, wherein the Sleep mode is switched to the Stdby mode, the Stdby mode is switched to the Tx mode or the Rx mode, the Tx mode is switched to the Sleep mode, and the Rx mode is switched to the Sleep mode.
4. A method of USB extension based on the Lora technique according to claim 3, characterized in that step S4 comprises the following sub-steps:
s41, writing data from the intelligent device into an endpoint sending the data to the LoRa transceiver;
s42, judging whether the data format is correct, if so, carrying out the next step, and if so, returning the data format error through reading the endpoint of the data received by the LoRa transceiver;
s43, adding the data into a transmission queue;
s44, the data transmission is completed;
s45, waiting to be in a transmittable state;
s46, randomly selecting a channel;
s47, waiting for the end of the duty cycle;
s48, switching from a Sleep mode to a Stdby mode;
s49, entering a Tx mode, and writing into a FIFO of the LoRa transceiver;
s410, waiting for a transmission completion interrupt;
s411, closing the transmission interrupt;
s412, opening a receiving timer;
s413, entering a sleep mode;
s414, the end point of the data received by the LoRa transceiver is read to return successful transmission.
5. The method for USB extension based on the Lora technology according to claim 4, wherein step S5 includes the sub-steps of:
s51, overtime of a receiving timer;
s52, switching from a Sleep mode to a Stdby mode;
s53, switching to an Rx mode, enabling a receiving interrupt, and enabling a receiving timeout timer;
s54, judging whether the receiving is overtime, if not, carrying out the next step, if so, closing the receiving interruption, entering a Sleep mode, and returning to the receiving overtime through reading the end point of the data received by the LoRa transceiver;
s55, triggering a receiving interrupt;
s56, closing the receiving interrupt;
s57, closing a receiving timeout timer;
s58, entering a Sleep mode;
s59, sending the received data to the intelligent device through the endpoint reading the data received by the LoRa transceiver.
CN201710209804.6A 2017-03-31 2017-03-31 USB expansion device and method based on Lora technology Active CN107015930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209804.6A CN107015930B (en) 2017-03-31 2017-03-31 USB expansion device and method based on Lora technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209804.6A CN107015930B (en) 2017-03-31 2017-03-31 USB expansion device and method based on Lora technology

Publications (2)

Publication Number Publication Date
CN107015930A CN107015930A (en) 2017-08-04
CN107015930B true CN107015930B (en) 2023-08-18

Family

ID=59445684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209804.6A Active CN107015930B (en) 2017-03-31 2017-03-31 USB expansion device and method based on Lora technology

Country Status (1)

Country Link
CN (1) CN107015930B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545633B (en) * 2017-08-17 2020-08-04 新华三技术有限公司 Message transmission method and wireless intelligent door lock
CN107613582A (en) * 2017-09-13 2018-01-19 深圳市亿兆互联技术有限公司 A kind of multifunctional intellectual LoRa gateways
US10552355B2 (en) * 2017-10-03 2020-02-04 Icron Technologies Corporation Methods and devices for extending USB 3.0-compliant communication over an extension medium
CN110049478B (en) * 2019-04-25 2021-11-02 新华三技术有限公司 Message transmission method, device, equipment and machine readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813099A (en) * 2016-04-20 2016-07-27 西安电子科技大学 Outdoor wireless communication system based on LoRa ad-hoc network
CN205829662U (en) * 2016-06-15 2016-12-21 深圳市唯传科技有限公司 A kind of LoRa gateway router and Internet of things system
CN106374965A (en) * 2016-10-18 2017-02-01 杭州隽德科技有限公司 Lora-modulation-mode-based SPI interface internet-of-things wireless transceiver
CN206711078U (en) * 2017-03-31 2017-12-05 深圳市亿兆互联技术有限公司 A kind of usb expansion device based on Lora technologies

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105813099A (en) * 2016-04-20 2016-07-27 西安电子科技大学 Outdoor wireless communication system based on LoRa ad-hoc network
CN205829662U (en) * 2016-06-15 2016-12-21 深圳市唯传科技有限公司 A kind of LoRa gateway router and Internet of things system
CN106374965A (en) * 2016-10-18 2017-02-01 杭州隽德科技有限公司 Lora-modulation-mode-based SPI interface internet-of-things wireless transceiver
CN206711078U (en) * 2017-03-31 2017-12-05 深圳市亿兆互联技术有限公司 A kind of usb expansion device based on Lora technologies

Also Published As

Publication number Publication date
CN107015930A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN107015930B (en) USB expansion device and method based on Lora technology
JP4741149B2 (en) Interface between modem and subscriber interface modules
US6760804B1 (en) Apparatus and method for providing an interface between legacy applications and a wireless communication network
JP4335090B2 (en) Mobile terminal device
CN112423238B (en) Electronic device, control terminal, storage medium, and device connection method
US20070019602A1 (en) Network connectivity system and method
EP2566288B1 (en) Wireless internet access module, communication method for host and wireless internet access module
US7020118B2 (en) System and method for activation of a wireless module
US20230071506A1 (en) Method for signal detection, electronic device, and storage medium
US6516204B1 (en) Combination internal modem and PC card radio operable in multiple modes
US9049254B2 (en) Control method, apparatus and system
US20100302972A1 (en) Method for testing wireless connection of electronic device
US11502692B2 (en) Server data sending method and apparatus
CN107426668B (en) Communication device
US20020080741A1 (en) Multiple wireless format phone system and method
CN109640304B (en) Method for improving low-power-consumption Bluetooth connection stability
CN206711078U (en) A kind of usb expansion device based on Lora technologies
US20030037191A1 (en) Wireless module
US7221926B1 (en) Short range radio
US20170302319A1 (en) Wearable devices and methods for data transmission and reception therewith
CN109391291B (en) Bluetooth transmission integrated circuit and related transmission method
JP2000032000A (en) Infrared communication equipment
US20040252649A1 (en) Dual mode wireless network card link parameter setting device and method of the same
CN104573773A (en) Smart card reading and writing method
TW201813325A (en) Wireless communication method and system thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant