A wireless communication module wake-up method and wireless communication module
By using SPDT chip and register switching technology in the wireless communication module, multiplexing the pins of the SDIO interface to realize the GPIO mode of WIFI and BT wake-up functions, solving the problem of tight pin resources in electronic devices, reducing the cost of wireless communication solutions and improving the peripheral access capability of the main control chip.
Patent Information
- Application Number
- CN202410916391.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-07-09
AI Technical Summary
There is a problem of tight pin resources in existing electronic devices with WIFI/BT functions, resulting in high cost of wireless communication solutions and limited peripheral access capabilities of the main control chip.
By using SPDT chip and register switching technology in the wireless communication module, the pins of the SDIO interface are multiplexed to realize the GPIO mode of WIFI and BT wake-up functions, reducing the use of pins at the main control chip, thereby saving pin resources.
It realizes the reduction of the cost of wireless communication solutions and improves the peripheral access capability of the main control chip, especially in the environment of tight pin resources.
Smart Images

Figure CN118828832B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communications, and in particular to a wireless communication module wake-up method and a wireless communication module. Background Art
[0002] In the field of wireless communication technology, in order to reduce the power consumption of electronic devices with WIFI / BT functions, their wireless communication modules are usually required to support the WoWLAN function (using WIFI to wake up the main control) and the BT wake up the main control function. The main control is woken up only when WIFI / BT has data transmission and the main control is dormant, so that WIFI / BT can be put into dormant state without worrying about not being able to notify the main control in time for processing when there is WIFI / BT data transmission, so as to achieve the effect of reducing WIFI and BT power consumption. However, in existing electronic devices with WIFI / BT functions, there is a problem of tight pin resources, which is not conducive to reducing the cost of wireless communication solutions and also affects the peripheral access capability of the main control chip.
[0003] In response to the above problems, the industry needs to develop a technical solution that can reduce the cost of wireless communication solutions on the one hand, and improve the peripheral access capabilities of the main control chip on the other. Summary of the invention
[0004] The technical problem to be solved by the present invention is: how to design a technical solution that can reduce the cost of wireless communication solutions on the one hand, and improve the peripheral access capability of the main control chip on the other hand.
[0005] The inventor discovered during the research and development process that in the field of wireless communication technology, the WoWLAN function requires a pin on the main control end to connect to the HOST_WAKE pin of WIFI (the pin on the WIFI Bluetooth chip used to wake up the main control chip). In addition, the BT wake-up main control function also requires a pin on the main control end to connect to the HOST_WAKE pin of BT. If the pins on the main control chip end that connect to the WIFI Bluetooth chip can be reduced while ensuring that the WoWLAN and BT wake-up main control functions are available, the pins on the main control chip end can be saved, so that the main control chip end has more pin resources for other functions. For example, only two pins are needed to be configured in GPIO mode, and then two GPIOs can be used to simulate I2C functions or UART functions. When used as an I2C function, it can be used to connect to peripherals that require I2C communication, such as camera units, touch screens, various sensors, power management chips, etc.; when used as a UART function, it can be used to connect to keyboards, printers, various sensors, and other devices with UART interfaces. From this, we can see that if the main control end saves pins, the peripheral access capability of the main control chip can be improved, reducing the external chips introduced due to insufficient pins or interfaces, reducing the overall solution cost, and making it more competitive. This is very valuable for main control chips with relatively tight pin resources, such as the MCU microcontroller unit in the IOT Internet of Things.
[0006] Therefore, the present invention proposes a wireless communication module wake-up method and a wireless communication module, and the technical effect is that on the one hand, the cost of the wireless communication solution can be reduced, and on the other hand, the peripheral access capability of the main control chip can be improved. In the first aspect, the embodiment of the present application proposes a wireless communication module wake-up method, the method comprising: receiving a wake-up instruction sent by a command device to an Internet of Things terminal, the wake-up instruction is used to change the sleep state of the wireless communication module; converting the wireless communication module in the sleep state to a wireless communication module in the wake-up state; when the wireless communication module is in the wake-up state, maintaining the communication connection between the command device and the Internet of Things terminal. Among them, the WIFI Bluetooth chip can be a WIFI Bluetooth Combo chip, which is also called a WIFI / BT_Combo chip in the industry, and its specific definition is known to those skilled in the art. The wireless communication module wake-up method described in the present application is not only applied to the occasion of SDIO interface WIFI Bluetooth chip, but also can be widely used in IOT products or MCU-related products with SDIO interface.
[0007] In one embodiment, if Figure 3aAs shown, it is a schematic diagram of an embodiment of the wireless communication module of the present invention. Optionally, the wireless communication module uses Rockchip's RK3588 as the main control chip and the AP6398S of Zhengji as the WIFI Bluetooth chip for specific description, and other combinations of main control plus WIFI Bluetooth chip are similar to the above situation. The main control chip corresponds to the SDIO D2 pin SDIO_D2_M0_WIFI can be reused as GPIO2_B0, connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip, and used as the WIFI_WAKE_HOST pin. The software state switching is completed by selecting the register of the two states of SDIO_D2_M0_WIFI or GPIO2_B0 to write in the main control chip. At the same time, the pin is connected to the WL_HOST_WAKE pin and SDIO_DATA_2 pin of the WIFI Bluetooth chip through the SPDT chip, and the hardware connection state switching is completed by controlling the SPDT chip through GPIO. Similarly, the SDIO D3 pin SDIO_D3_M0_WIFI can be reused as GPIO2_B1, connected to the BT_HOST_WAKE pin of the WIFI Bluetooth chip as the BT_WAKE_HOST pin, and the software state switching is completed by selecting to write the registers of the two states of SDIO_D3_M0_WIFI or GPIO2_B1 in the main control chip. At the same time, this pin is connected to the BT_HOST_WAKE pin and SDIO_DATA_3 pin of the WIFI Bluetooth chip through the SPDT chip, and the hardware connection state switching is completed by controlling the SPDT chip through GPIO.
[0008] Furthermore, when the system enters the dormant state, the main control chip of the wireless communication module switches to the SDIO interface one-line mode by writing a register, and only uses the D0 pin of the SDIO. The D2 pin of the main control chip corresponding to the SDIO is switched to GPIO2_B0 for the WIFI_WAKE_HOST function, and the D3 pin of the SDIO is switched to GPIO2_B1 for the BT_WAKE_HOST function. At this time, the GPIO2_B0 pin of the main control chip switched to the WIFI_WAKE_HOST function is connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip through hardware design (that is, hardware The SPDT switch connected to the GPIO2_B0 pin in the hardware circuit is connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip, and disconnected from the SDIO_DATA_2 pin of the WIFI Bluetooth chip), and the GPIO2_B1 pin cut to the BT_WAKE_HOST function is turned on with the BT_HOST_WAKE pin of the WIFI Bluetooth chip (that is, the SPDT switch connected to the GPIO2_B1 pin in the hardware circuit is connected to the BT_HOST_WAKE pin of the WIFI Bluetooth chip, and disconnected from the SDIO_DATA_3 pin of the WIFI Bluetooth chip).
[0009] Furthermore, when the system is in the awake state, the main control chip of the wireless communication module is switched to the four-wire mode of the SDIO interface by writing a register, and the D2 pin corresponding to the SDIO of the main control chip is switched to the SDIO_D2_M0_WIFI function pin, and the GPIO2_B0 pin of the main control chip switched to the SDIO_D2_M0_WIFI function is connected to the SDIO_DATA_2 pin of the WIFI Bluetooth chip through hardware design (that is, the SPDT switch connected to the SDIO_D2_M0_WIFI pin in the hardware circuit is connected to the SDIO_DATA_2 pin of the WIFI Bluetooth chip, and disconnected from the WL_HOST_WAKE pin of the WIFI Bluetooth chip). The corresponding SDIO D3 pin is cut to the SDIO_D3_M0_WIFI function pin. Through hardware design, the GPIO2_B1 pin of the main control chip that is cut to the SDIO_D3_M0_WIFI function is connected to the SDIO_DATA_3 pin of the WIFI Bluetooth chip (that is, the SPDT switch connected to the SDIO_D3_M0_WIFI pin in the hardware circuit is connected to the SDIO_DATA_3 pin of the WIFI Bluetooth chip, and disconnected from the BT_HOST_WAKE pin of the WIFI Bluetooth chip).
[0010] In one embodiment, if Figure 3bAs shown in the figure, the IO multiplexing and register offset address of the GPIO2_B series pins on the main control chip side of the wireless communication module. The gpio2b0_sel shown in the bottom column is the IO multiplexing that the corresponding pin of GPIO2_B0 can support. There are six types in total: GPIO or GMAC0_RXCLK or SDIO_D2_M0 or FSPI_D2_M1 or I2C8_SCL_M1 or UART6_RTSN_M0, among which SDIO_D2_M0 is used as SDIO data pin, and GPIO is used as general input and output pin. Figure 3b When the lower 4 bits of the register Bit [3:0] are configured as all 0, it corresponds to GPIO, that is, general input and output mode. When configured as 0010, it corresponds to SDIO_D2_M0, that is, SDIO data pin mode. As shown in the second to last column in the figure, gpio2b1_sel is the IO multiplexing that the corresponding pin of GPIO2_B1 can support. There are six types: GPIO or GMAC0_TXD2 or SDIO_D3_M0 or FSPI_D3_M1 or I2C8_SDA_M1 or UART6_CTSN_M0, among which SDIO_D3_M0 is used as SDIO data pin and GPIO is used as general input and output pin. Figure 3b When the lower 4 bits of the register Bit [3:0] are configured as all 0, it corresponds to GPIO, that is, general input and output mode. When it is configured as 0010, it corresponds to SDIO_D3_M0, that is, SDIO data pin mode.
[0011] In one embodiment, if Figure 3c As shown, Figure 3a The schematic diagram of the partial circuit of the WIFI Bluetooth chip. WL_HOST_WAKE and SDIO_DATA_2 can be controlled by GPIO2_B0 of the host, and BT_HOST_WAKE and SDIO_DATA_3 can be controlled by GPIO2_B1 of the host. In the actual implementation, the D2 pin corresponding to SDIO of the host needs to be connected with the two pins WL_HOST_WAKE and SDIO_DATA_2 through the SPDT chip, and the D3 pin corresponding to SDIO needs to be connected with the two pins BT_HOST_WAKE and SDIO_DATA_3 through the SPDT chip, and each is connected to one of the pins as needed.
[0012] In one embodiment, if Figure 4a as well as Figure 4b As shown, Figure 3aCircuit diagram of the SDIO part of the signal master chip. In this figure, you can see that the D2 pin corresponding to SDIO can support six functions such as GPIO or GMAC0_RXCLK or SDIO_D2_M0 or FSPI_D2_M1 or I2C8_SCL_M1 or UART6_RTSN_M0, and the D3 pin corresponding to SDIO can support multiplexing as GPIO or GMAC0_TXD2 or SDIO_D3_M0 or FSPI_D3_M1 or I2C8_SDA_M1 or UART6_ There are six functions such as CTSN_M0, which can be switched by modifying the registers. The first one corresponds to the GPIO function. When used as GPIO, it can receive the WIFI and BT wake-up signals sent by the WIFI Bluetooth chip after the WL_HOST_WAKE pin and BT_HOST_WAKE pin of the WIFI Bluetooth chip are respectively connected. When used as SDIO_D2_M0 and SDIO_D3_M0 functions, it can transmit data with the WIFI Bluetooth chip through the 4-wire mode of SDIO.
[0013] In one embodiment, if Figure 5 As shown, the master end GPIO2_B4 is connected to control two SPDT chips that are connected to WL_HOST_WAKE or SDIO_DATA_2, and BT_HOST_WAKE or SDIO_DATA_3. The SPDT chip uses SGM3167YC6 from Shengbang Micro, which can meet the requirements of SDIO high-speed signal passing and high bandwidth. As for the difference in signal transmission delay on the four data pins of SDIO caused by the introduction of SPDT (the signal transmission on SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI is faster than that on SDIO_D2_M0_WIFI or SDIO_D3_M0_WIFI with an additional SPDT circuit), it can be eliminated by adjusting the drive strength on the four data pins of SDIO, that is, enhancing the drive strength of the two pins SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI to be higher than the drive strength of the two pins SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI until the signal transmission delay on the four data pins of SDIO is the same. After adjustment, write it into the corresponding register to fix it.
[0014] In one embodiment, as shown in FIG. 6 , it is a drive strength register of the SDIO_data pin at the master chip end, wherein GPIO2_A6 or GPIO2_A7 or GPIO2_B0 or GPIO2_B1 respectively correspond to SDIO_D0_M0_WIFI of the SDIO_data pin, or SDIO_D1_M0_WIFI of the SDIO_data pin, or SDIO_D2_M0_WIFI of the SDIO_data pin, or SDIO_D3_M0_WIFI of the SDIO_data pin, and can support four drive strengths of 2.5 mA, 5 mA, 7.5 mA, and 10 mA, which can be selected by configuring the drive strength register.
[0015] In one embodiment, if Figure 4a , Figure 4b as well as Figure 5 As shown, the SDIO state control of the WIFI Bluetooth chip of the present invention is performed by GPIO2_B4 of the master control end through SPDT. The pin of the master control end involving SDIO and WIFI / BT wake-up multiplexing is GPIO2_B0 (switching between SDIO_D2_M0_WIFI and WIFI_WAKE_HOST functions), and the pin of the master control end involving SDIO and WIFI / BT wake-up multiplexing also includes GPIO2_B1 (switching between SDIO_D3_M0_WIFI and BT_HOST_WAKE functions). For DT, the high level range is as low as 1.5V, the low level range of GPIO2_B4 is as high as 0.6V, the GPIO2_B0 and GPIO2_B1 of the master end work in the SDIO_D2_M0_WIFI and SDIO_D3_M0_WIFI functional states at the same time (that is, both on the two SPDT chips), or work in the WIFI_WAKE_HOST and BT_HOST_WAKE functional states at the same time, and the switching time is within 20 microseconds. If it does not work in the above functional state combination at the same time, it means that the working state is abnormal.
[0016] In one embodiment, the method is used for a wireless communication module in an Internet of Things terminal, the initial state of the wireless communication module is a sleep state, the Internet of Things terminal is used to receive a wireless signal sent by a command device, and the wireless communication module wake-up method includes: S1, receiving a wake-up command sent by a command device to the Internet of Things terminal, the wake-up command is used to change the sleep state of the wireless communication module; S2, converting the wireless communication module in the sleep state into a wireless communication module in the wake-up state; S3, when the wireless communication module is in the wake-up state, maintaining the communication connection between the command device and the Internet of Things terminal.
[0017] In one embodiment, the wireless communication module includes a main control chip and a WIFI Bluetooth chip connected to each other, and a register is set in an internal storage area of the main control chip. The S2, which converts the wireless communication module in a dormant state into a wireless communication module in an awakened state, includes: S21, changing the connection mode between the main control chip and the WIFI Bluetooth chip, and additionally obtaining multiple configurable pins from the main control chip; S22, selecting at least two pins from the multiple pins, and changing the mode and connection relationship of at least two pins, and switching the state of the wireless communication module to the awakened state.
[0018] In one embodiment, the S21 changes the connection mode between the main control chip and the WIFI Bluetooth chip, and obtains multiple configurable pins from the main control chip, including: S201, in the awake state, through the register of the main control chip, the connection mode between the main control chip and the WIFI Bluetooth chip is switched from the SDIO interface four-wire mode to the SDIO interface one-wire mode, and three additional configurable pins are obtained, and the pins are SDIO data pins.
[0019] In one embodiment, the S22, selecting at least two pins from a plurality of pins, and changing the mode and connection relationship of at least two pins, to switch the state of the wireless communication module to the awake state, includes: S202, selecting two pins from the three SDIO data pins of the main control chip, both of which are set to GPIO mode, that is, setting them as two GPIO mode pins; S203, disconnecting the connection relationship between the two GPIO mode pins and the SDIO_DATA pin of the WIFI Bluetooth chip; S204, respectively connecting the two GPIO mode pins to the WIFI_HOST_WAKE pin of the WIFI Bluetooth chip and to the BT_HOST_WAKE pin of the WIFI Bluetooth chip, thereby switching the state of the wireless communication module to the awake state.
[0020] In one embodiment, the command device is arranged on a mobile robot, the mobile robot is used for inspection, and its recycling bin is used for receiving tools of staff; the number of the IoT terminals is at least ten, the IoT terminals are portable IoT terminals and are carried by staff, and at least ten staff are distributed in a preset area in a non-uniform random distribution pattern; in S3, after the wireless communication module is in an awake state and the communication connection between the command device and the IoT terminal is maintained, the method further includes: S301, receiving the communication command sent by the command device at one end of the starting point, the command device takes the first position area as the starting point and is in a movable state; S302, receiving the status information selected by the staff from the display interface of the IoT terminal; S303, transmitting the status information of at least ten IoT terminals back to the command device that has moved to the second position area; S304, tracking the positions of at least ten IoT terminals, receiving all tools through the recycling bin of the mobile robot, and finally returning to the initial first position area.
[0021] In one embodiment, the S304, tracking the positions of at least ten IoT terminals, receiving all tools through the recycling bin of the mobile robot, and finally returning to the initial first position area, includes: S401, sorting at least ten IoT terminals based on status information, and screening out a target terminal from the at least ten sorted IoT terminals according to preset screening rules; S402, using the real-time position of the target terminal as the next moving direction of the mobile robot and the command device until the recycling bin of the mobile robot receives the tool, and then tracking the real-time positions of the remaining at least nine sorted IoT terminals in order, recovering all tools in sequence, and finally returning to the initial first position area.
[0022] The embodiment of the present application also provides a wireless communication module, which is used to execute the wake-up method as described in the first aspect. The wireless communication module has the beneficial effects of reducing the cost of the wireless communication solution on the one hand and improving the peripheral access capability of the main control chip on the other hand.
[0023] In summary, the technical key point of the present invention is to convert the 4-wire mode and 1-wire mode of SDIO of WIFI, select two of the extra 3 data pins of SDIO at the main control chip end when the system is dormant and make them work in GPIO mode, and at the same time, the connection between these two SDIO data pins and the WIFI Bluetooth chip is respectively switched from the SDIO_data pin of WIFI to the HOST_WAKE pin of WIFI, and from the SDIO_data pin of WIFI to the HOST_WAKE pin of BT. When there is WIFI / BT data transmission at the WIFI / BT chip end, the main control wake-up signal of the WIFI HOST_WAKE pin or the BT_HOST_WAKE pin is notified to the main control through the main control chip end connected thereto, which is switched from the SDIO_data pin and works in GPIO mode. At the same time, the connection between the main control and WIFI is switched back to the 4-wire mode from the SDIO 1-wire mode, and then the WIFI Bluetooth chip wakes up with the system, and after waking up, the WIFI Bluetooth chip and the main control chip can communicate with each other in the SDIO four-wire mode.
[0024] The present invention sets a register from the main control end when the system is in hibernation so that the connection between the main control and the WIFI Bluetooth chip changes from a 4-wire mode to a 1-wire mode, selects two of the extra three data lines to set their pins to work in a GPIO mode, and at the same time disconnects the pin from the SDIO pin of the WIFI Bluetooth chip and turns to be connected to the HOST_WAKE pins of the WIFI and BT of the WIFI Bluetooth chip respectively, and then the WIFI / BT chip enters hibernation along with the system. When WIFI / BT has data transmission, the WIFI HOST_WAKE or BT HOST_WAKE pin of the WIFI Bluetooth chip is used to notify the main control. During the wake-up process, the main control sets the register to switch the SDIO connection with the WIFI Bluetooth chip from 1-wire mode back to 4-wire mode, that is, the pins connected to the WIFI HOST_WAKE pin and BT HOST_WAKE pin of the WIFI Bluetooth chip on the main control chip are disconnected from the HOST_WAKE pins of WIFI and BT on the WIFI Bluetooth chip, and the connection with the SDIO pin of the WIFI Bluetooth chip is restored, and then wakes up with the system. After waking up, they can communicate with each other in 4-wire mode. The main control uses an additional GPIO to control the SPDT (single-pole double-throw switch) chip used for switching.
[0025] The present invention can utilize the change of SDIO_data line in 1-wire mode and 4-wire mode of SDIO interface, and by using SPDT chip, in sleep mode, the corresponding pins of SDIO_D2_M0_WIFI and SDIO_D3_M0_WIFI which are not used temporarily by the main control end are switched to GPIO mode as WIFI_WAKE_HOST pin and BT_WAKE_HOST pin, and when the WIFI Bluetooth chip has a WIFI / BT wake-up signal, the above pins are switched back to SDIO_D2_M0_WIFI function and SDIO_D2_M0_WIFI function, and the 4-wire mode of SDIO of WIFI is restored, and then the main control is awakened. This solution can save a GPIO pin resource, can reduce the overall solution cost and increase the functions that the solution can support. The reason is that by using an extra GPIO of the master end, switching between 4-wire mode and 1-wire mode can release three GPIOs, SDIO_D1_M0_WIFI, SDIO_D2_M0_WIFI, or SDIO_D3_M0_WIFI. However, only two of them can actually be used to replace the GPIO for the master end to interact with the WIFI Bluetooth chip. There is one GPIO that has no suitable GPIO for the master end to interact with the WIFI Bluetooth chip to replace it, and it cannot be used anywhere other than the WIFI Bluetooth chip. Therefore, only one GPIO can be saved instead of two.
[0026] To sum up, the existing electronic devices with WIFI / BT functions have the problem of tight pin resources, which is not conducive to reducing the cost of wireless communication solutions and also affects the peripheral access capability of the main control chip; the present application solution solves the above problems. On the one hand, it can reduce the cost of wireless communication solutions, and on the other hand, it can improve the peripheral access capability of the main control chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0029] Figure 1 A schematic flow chart of a wireless communication module wake-up method provided in an embodiment of the present invention.
[0030] Figure 2 Another schematic diagram of a flow chart of a wireless communication module wake-up method provided in an embodiment of the present invention.
[0031] Figure 3a A schematic diagram of an embodiment of a wireless communication module provided in an embodiment of the present invention.
[0032] Figure 3b A schematic diagram of IO multiplexing and register offset addresses provided in an embodiment of the present invention.
[0033] Figure 3c A partial circuit diagram of a WIFI Bluetooth chip provided in an embodiment of the present invention.
[0034] Figure 4a This is a first schematic diagram of the SDIO part of the main control chip and the WIFI_WAKE_HOST and BT_WAKE_HOST parts provided in an embodiment of the present invention.
[0035] Figure 4b This is a second schematic diagram of the SDIO part of the main control chip and the WIFI_WAKE_HOST and BT_WAKE_HOST parts provided in an embodiment of the present invention.
[0036] Figure 5 Schematic diagram of the SPDT part and the SPDT control GPIO part provided in an embodiment of the present invention.
[0037] Figure 6a The first diagram of the master control end SDIO_data pin drive strength register provided by an embodiment of the present invention.
[0038] Figure 6b The second diagram of the master control end SDIO_data pin drive strength register provided by the embodiment of the present invention.
[0039] Figure 7a This is an overall diagram of the truth table of the wireless communication module provided by an embodiment of the present invention.
[0040] Figure 7b This is a first partial diagram of a truth table of a wireless communication module provided by an embodiment of the present invention.
[0041] Figure 7c This is a second partial diagram of the truth table of the wireless communication module provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or other features, integers, steps, operations, elements, components and / or combinations thereof.
[0044] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0045] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to one or any combination and all possible combinations of the associated listed items, and includes these combinations.
[0046] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0047] Example
[0048] See also Figures 1 to 7c As shown, Figure 1 as well as Figure 2 A flowchart of a wireless communication module wake-up method provided in an embodiment of the present invention. The embodiment of the present invention proposes a wireless communication module wake-up method, which is used for a wireless communication module in an Internet of Things terminal, wherein the initial state of the wireless communication module is a dormant state, and the Internet of Things terminal is used to receive a wireless signal sent by a command device, and the wireless communication module wake-up method includes: S1, receiving a wake-up instruction sent by a command device to the Internet of Things terminal, wherein the wake-up instruction is used to change the dormant state of the wireless communication module; S2, converting the wireless communication module in the dormant state into a wireless communication module in the awakened state; S3, maintaining the communication connection between the command device and the Internet of Things terminal when the wireless communication module is in the awakened state.
[0049] In one embodiment, the wireless communication module includes a main control chip and a WIFI Bluetooth chip connected to each other, and a register is set in an internal storage area of the main control chip. The S2, which converts the wireless communication module in a dormant state into a wireless communication module in an awakened state, includes: S21, changing the connection mode between the main control chip and the WIFI Bluetooth chip, and additionally obtaining multiple configurable pins from the main control chip; S22, selecting at least two pins from the multiple pins, and changing the mode and connection relationship of at least two pins, and switching the state of the wireless communication module to the awakened state.
[0050] In one embodiment, the S21 changes the connection mode between the main control chip and the WIFI Bluetooth chip, and obtains multiple configurable pins from the main control chip, including: S201, in the awake state, through the register of the main control chip, the connection mode between the main control chip and the WIFI Bluetooth chip is switched from the SDIO interface four-wire mode to the SDIO interface one-wire mode, and three additional configurable pins are obtained, and the pins are SDIO data pins.
[0051] In one embodiment, the S22, selecting at least two pins from a plurality of pins, and changing the mode and connection relationship of at least two pins, to switch the state of the wireless communication module to the awake state, includes: S202, selecting two pins from the three SDIO data pins of the main control chip, both of which are set to GPIO mode, that is, setting them as two GPIO mode pins; S203, disconnecting the connection relationship between the two GPIO mode pins and the SDIO_DATA pin of the WIFI Bluetooth chip; S204, respectively connecting the two GPIO mode pins to the WIFI_HOST_WAKE pin of the WIFI Bluetooth chip and to the BT_HOST_WAKE pin of the WIFI Bluetooth chip, thereby switching the state of the wireless communication module to the awake state.
[0052] An embodiment of the present application further proposes a method for managing multiple terminals within a region, the method comprising the wake-up method as described in any of the above embodiments, in which the command device is arranged on a mobile robot, the mobile robot is used for inspection, and its recycling bin is used for receiving tools of the staff; the number of the Internet of Things terminals is at least ten, the Internet of Things terminals are portable Internet of Things terminals and are carried by the staff, and at least ten staff are distributed in a preset area in a non-uniform random distribution pattern.
[0053] In an embodiment of the method for managing multiple terminals within the area, S3, when the wireless communication module is in an awake state, maintains the communication connection between the command device and the Internet of Things terminal, the method also includes: S301, receiving the communication command sent by the command device at one end of the starting point, the command device takes the first position area as the starting point and is in a movable state; S302, receiving the status information selected by the staff from the display interface of the Internet of Things terminal; S303, transmitting the status information of at least ten Internet of Things terminals back to the command device that has moved to the second position area; S304, tracking the positions of at least ten Internet of Things terminals, receiving all tools through the recovery bin of the mobile robot, and finally returning to the initial first position area.
[0054] In the embodiment of the multi-terminal management method within the area, the S304 tracks the positions of at least ten IoT terminals, receives all tools through the recycling bin of the mobile robot, and finally returns to the initial first position area, including: S401, sorts at least ten IoT terminals based on status information, and selects a target terminal from the at least ten sorted IoT terminals according to preset screening rules; S402, uses the real-time position of the target terminal as the next moving direction of the mobile robot and the command device until the recycling bin of the mobile robot receives the tool, and then tracks the real-time positions of the remaining at least nine sorted IoT terminals in order, recovers all tools in sequence, and finally returns to the initial first position area.
[0055] In the above scheme, the mobile robot is in a movable state, and its movement rules can be set by engineers or intelligently generated based on self-learning. The receiving staff selects the status information from the display interface of the Internet of Things terminal, wherein the display interface of the Internet of Things terminal may include multiple alternative menus, or the staff may type or voice input according to the actual situation, and its function is to report the work results of the day, which also corresponds to the status information; the work results may be based on a series of continuous options of yes or no, or may be specific data indicators completed by the staff, and the results corresponding to the continuous options may be converted into status information, and the specific data indicators may also be converted into status information. The real-time positions of the remaining at least nine Internet of Things terminals that have been sorted are tracked in order, and all tools are recovered in sequence, that is, for the staff with higher sorting, the tools are recovered first, and the staff with lower sorting recover the tools later, and finally all tools are recovered.
[0056] In one embodiment, the preset area is a property community, the mobile robot is a property inspection robot, and the staff is a property personnel or an outsourced operator of a property company. After the operator completes the work, the work results are reported from the display interface of the Internet of Things terminal. The report results are converted into status information, and then the mobile robots are sorted based on the status information and move to the side of the operators one by one. During this period, the operators can continue to work or move. This effectively avoids the situation where the property personnel or operators need to return the tools on foot after completing the work, thereby significantly improving the overall work efficiency in the preset area, that is, improving the overall work efficiency of the property community.
[0057] The embodiment of the present application also provides a wireless communication module, which is used to execute the wake-up method as described in the first aspect. The wireless communication module has the beneficial effects of reducing the cost of the wireless communication solution on the one hand and improving the peripheral access capability of the main control chip on the other hand.
[0058] A further solution of the wireless communication module is as follows: Figure 3a As shown, it is a schematic diagram of an embodiment of the wireless communication module of the present invention. Optionally, the wireless communication module uses Rockchip's RK3588 as the main control chip and the AP6398S of Zhengji as the WIFI Bluetooth chip for specific description, and other combinations of main control plus WIFI Bluetooth chip are similar to the above situation. The main control chip corresponds to the SDIO D2 pin SDIO_D2_M0_WIFI can be reused as GPIO2_B0, connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip, and used as the WIFI_WAKE_HOST pin. The software state switching is completed by selecting the register of the two states of SDIO_D2_M0_WIFI or GPIO2_B0 to write in the main control chip. At the same time, the pin is connected to the WL_HOST_WAKE pin and SDIO_DATA_2 pin of the WIFI Bluetooth chip through the SPDT chip, and the hardware connection state switching is completed by controlling the SPDT chip through GPIO. Similarly, the SDIO D3 pin SDIO_D3_M0_WIFI can be reused as GPIO2_B1, connected to the BT_HOST_WAKE pin of the WIFI Bluetooth chip as the BT_WAKE_HOST pin, and the software state switching is completed by selecting to write the registers of the two states of SDIO_D3_M0_WIFI or GPIO2_B1 in the main control chip. At the same time, this pin is connected to the BT_HOST_WAKE pin and SDIO_DATA_3 pin of the WIFI Bluetooth chip through the SPDT chip, and the hardware connection state switching is completed by controlling the SPDT chip through GPIO.
[0059] A further solution of the wireless communication module is that when the system enters a dormant state, the main control chip of the wireless communication module switches to the SDIO interface one-line mode by writing a register, and only uses the D0 pin of the SDIO. The D2 pin of the main control chip corresponding to the SDIO is switched to GPIO2_B0 for use as a WIFI_WAKE_HOST function, and the D3 pin of the SDIO is switched to GPIO2_B1 for use as a BT_WAKE_HOST function. At this time, the GPIO2_B0 pin of the main control chip switched to the WIFI_WAKE_HOST function is connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip through hardware design. (That is, the SPDT switch connected to the GPIO2_B0 pin in the hardware circuit is connected to the WL_HOST_WAKE pin of the WIFI Bluetooth chip, and disconnected from the SDIO_DATA_2 pin of the WIFI Bluetooth chip), and the GPIO2_B1 pin that is switched to the BT_WAKE_HOST function is turned on with the BT_HOST_WAKE pin of the WIFI Bluetooth chip (that is, the SPDT switch connected to the GPIO2_B1 pin in the hardware circuit is connected to the BT_HOST_WAKE pin of the WIFI Bluetooth chip, and disconnected from the SDIO_DATA_3 pin of the WIFI Bluetooth chip).
[0060] A further solution of the wireless communication module is that when the system is in the awake state, the main control chip of the wireless communication module is switched to the SDIO interface four-wire mode by writing a register, and the D2 pin corresponding to the SDIO of the main control chip is switched to the SDIO_D2_M0_WIFI function pin, and the GPIO2_B0 pin of the main control chip switched to the SDIO_D2_M0_WIFI function is connected to the SDIO_DATA_2 pin of the WIFI Bluetooth chip through hardware design (that is, the SPDT switch connected to the SDIO_D2_M0_WIFI pin is connected to the SDIO_DATA_2 pin of the WIFI Bluetooth chip in the hardware circuit, and is disconnected from the WL_HOST_WAKE pin of the WIFI Bluetooth chip). The corresponding SDIO D3 pin is cut to the SDIO_D3_M0_WIFI function pin. Through hardware design, the GPIO2_B1 pin of the main control chip that is cut to the SDIO_D3_M0_WIFI function is connected to the SDIO_DATA_3 pin of the WIFI Bluetooth chip (that is, the SPDT switch connected to the SDIO_D3_M0_WIFI pin in the hardware circuit is connected to the SDIO_DATA_3 pin of the WIFI Bluetooth chip, and disconnected from the BT_HOST_WAKE pin of the WIFI Bluetooth chip).
[0061] A further solution of the wireless communication module is as follows: Figure 3bAs shown in the figure, it is a schematic diagram of the IO multiplexing and register offset address of the GPIO2_B series pins on the main control chip side of the wireless communication module. The gpio2b0_sel shown in the bottom column is the IO multiplexing that the corresponding pin of GPIO2_B0 can support. There are six types in total: GPIO or GMAC0_RXCLK or SDIO_D2_M0 or FSPI_D2_M1 or I2C8_SCL_M1 or UART6_RTSN_M0, among which SDIO_D2_M0 is used as SDIO data pin, and GPIO is used as general input and output pin. Figure 3b When the lower 4 bits of the register Bit [3:0] are configured as all 0, it corresponds to GPIO, that is, general input and output mode. When configured as 0010, it corresponds to SDIO_D2_M0, that is, SDIO data pin mode. As shown in the second to last column in the figure, gpio2b1_sel is the IO multiplexing that the corresponding pin of GPIO2_B1 can support. There are six types: GPIO or GMAC0_TXD2 or SDIO_D3_M0 or FSPI_D3_M1 or I2C8_SDA_M1 or UART6_CTSN_M0, among which SDIO_D3_M0 is used as SDIO data pin and GPIO is used as general input and output pin. Figure 3b When the lower 4 bits of the register Bit [3:0] are configured as all 0, it corresponds to GPIO, that is, general input and output mode. When it is configured as 0010, it corresponds to SDIO_D3_M0, that is, SDIO data pin mode.
[0062] A further solution of the wireless communication module is as follows: Figure 3c As shown, Figure 3c yes Figure 3a The schematic diagram of the partial circuit of the WIFI Bluetooth chip. WL_HOST_WAKE and SDIO_DATA_2 can be controlled by GPIO2_B0 of the host, and BT_HOST_WAKE and SDIO_DATA_3 can be controlled by GPIO2_B1 of the host. In the actual implementation, the D2 pin corresponding to SDIO of the host needs to be connected with the two pins WL_HOST_WAKE and SDIO_DATA_2 through the SPDT chip, and the D3 pin corresponding to SDIO needs to be connected with the two pins BT_HOST_WAKE and SDIO_DATA_3 through the SPDT chip, and each is connected to one of the pins as needed.
[0063] A further solution of the wireless communication module is as follows: Figure 4a as well as Figure 4b As shown, Figure 3aCircuit diagram of the SDIO part of the signal master chip. In this figure, you can see that the D2 pin corresponding to SDIO can support six functions such as GPIO or GMAC0_RXCLK or SDIO_D2_M0 or FSPI_D2_M1 or I2C8_SCL_M1 or UART6_RTSN_M0, and the D3 pin corresponding to SDIO can support multiplexing as GPIO or GMAC0_TXD2 or SDIO_D3_M0 or FSPI_D3_M1 or I2C8_SDA_M1 or UART6_ There are six functions such as CTSN_M0, which can be switched by modifying the registers. The first one corresponds to the GPIO function. When used as GPIO, it can receive the WIFI and BT wake-up signals sent by the WIFI Bluetooth chip after the WL_HOST_WAKE pin and BT_HOST_WAKE pin of the WIFI Bluetooth chip are respectively connected. When used as SDIO_D2_M0 and SDIO_D3_M0 functions, it can transmit data with the WIFI Bluetooth chip through the 4-wire mode of SDIO.
[0064] A further solution of the wireless communication module is as follows: Figure 5 As shown, the master end GPIO2_B4 is connected to control two SPDT chips that are connected to WL_HOST_WAKE or SDIO_DATA_2, and BT_HOST_WAKE or SDIO_DATA_3. The SPDT chip uses SGM3167YC6 from Shengbang Micro, which can meet the requirements of SDIO high-speed signal passing and high bandwidth. As for the difference in signal transmission delay on the four data pins of SDIO caused by the introduction of SPDT (the signal transmission on SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI is faster than that on SDIO_D2_M0_WIFI or SDIO_D3_M0_WIFI with an additional SPDT circuit), it can be eliminated by adjusting the drive strength on the four data pins of SDIO, that is, enhancing the drive strength of the two pins SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI to be higher than the drive strength of the two pins SDIO_D0_M0_WIFI or SDIO_D1_M0_WIFI until the signal transmission delay on the four data pins of SDIO is the same. After adjustment, write it into the corresponding register to fix it.
[0065] A further solution of the wireless communication module is, as shown in Figure 6, a drive strength register of the SDIO_data pin on the main control chip side, wherein GPIO2_A6 or GPIO2_A7 or GPIO2_B0 or GPIO2_B1 correspond to SDIO_D0_M0_WIFI of the SDIO_data pin, or SDIO_D1_M0_WIFI of the SDIO_data pin, or SDIO_D2_M0_WIFI of the SDIO_data pin, or SDIO_D3_M0_WIFI of the SDIO_data pin, respectively, and can support four drive strengths of 2.5 mA, 5 mA, 7.5 mA, and 10 mA, which are selected by configuring the drive strength register.
[0066] A further solution of the wireless communication module is as follows: Figure 4a , Figure 4b as well as Figure 5 As shown, the SDIO state control of the WIFI Bluetooth chip of the present invention is performed by GPIO2_B4 of the master control end through SPDT. The pin of the master control end involving SDIO and WIFI / BT wake-up multiplexing is GPIO2_B0 (switching between SDIO_D2_M0_WIFI and WIFI_WAKE_HOST functions), and the pin of the master control end involving SDIO and WIFI / BT wake-up multiplexing also includes GPIO2_B1 (switching between SDIO_D3_M0_WIFI and BT_HOST_WAKE functions). For DT, the high level range is as low as 1.5V, the low level range of GPIO2_B4 is as high as 0.6V, the GPIO2_B0 and GPIO2_B1 of the master end work in the SDIO_D2_M0_WIFI and SDIO_D3_M0_WIFI functional states at the same time (that is, both on the two SPDT chips), or work in the WIFI_WAKE_HOST and BT_HOST_WAKE functional states at the same time, and the switching time is within 20 microseconds. If it does not work in the above functional state combination at the same time, it means that the working state is abnormal.
[0067] To sum up, the existing electronic devices with WIFI / BT functions have the problem of tight pin resources, which is not conducive to reducing the cost of wireless communication solutions and also affects the peripheral access capability of the main control chip; the present application solution solves the above problems. On the one hand, it can reduce the cost of wireless communication solutions, and on the other hand, it can improve the peripheral access capability of the main control chip.
[0068] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0069] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0070] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0071] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0073] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A wireless communication module wake-up method, characterized in that: The method is used for a wireless communication module in an Internet of Things terminal, the initial state of the wireless communication module is a dormant state, the Internet of Things terminal is used to receive a wireless signal sent by a command device, the wireless communication module includes a main control chip and a WIFI Bluetooth chip connected to each other, and a register is set in an internal storage area of the main control chip; the wireless communication module wake-up method includes: S1, receiving a wake-up instruction sent by a command device to an Internet of Things terminal, wherein the wake-up instruction is used to change a dormant state of a wireless communication module; S2, converting the wireless communication module in the dormant state into the wireless communication module in the awakened state; S3, when the wireless communication module is in the awake state, maintaining the communication connection between the command device and the IoT terminal; The step S2, converting the wireless communication module in the dormant state into the wireless communication module in the awakened state, includes: S21, changing the connection mode between the main control chip and the WIFI Bluetooth chip, and obtaining multiple configurable pins from the main control chip; S22, selecting at least two pins from the plurality of pins, and changing the modes and connection relationships of the at least two pins, so as to switch the state of the wireless communication module to a wake-up state; The S21 changes the connection mode between the main control chip and the WIFI Bluetooth chip, and obtains multiple configurable pins from the main control chip, including: S201, in the awake state, the connection mode between the main control chip and the WIFI Bluetooth chip is switched from the SDIO interface four-wire mode to the SDIO interface one-wire mode through the register of the main control chip, and three additional configurable pins are obtained, which are SDIO data pins.
2. The wireless communication module wake-up method according to claim 1, characterized in that: The step S22, selecting at least two pins from a plurality of pins, and changing the modes and connection relationships of the at least two pins to switch the state of the wireless communication module to the awake state, includes: S202, selecting two of the three SDIO data pins of the main control chip, and setting both of them to GPIO mode, that is, setting them to two GPIO mode pins; S203, disconnecting the connection between the two GPIO mode pins and the SDIO_DATA pin of the WIFI Bluetooth chip; S204, connecting the two GPIO mode pins to the WIFI_HOST_WAKE pin of the WIFI Bluetooth chip and to the BT_HOST_WAKE pin of the WIFI Bluetooth chip, respectively, thereby switching the state of the wireless communication module to the awake state.
3. A wireless communication module, characterized in that: The wireless communication module is used to execute the wake-up method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Wifi communication technology-based temperature and humidity acquisition device
CN203562084U