CN114928135A - Method and device for determining working mode of MIFI router and equipment terminal - Google Patents

Method and device for determining working mode of MIFI router and equipment terminal Download PDF

Info

Publication number
CN114928135A
CN114928135A CN202210547010.1A CN202210547010A CN114928135A CN 114928135 A CN114928135 A CN 114928135A CN 202210547010 A CN202210547010 A CN 202210547010A CN 114928135 A CN114928135 A CN 114928135A
Authority
CN
China
Prior art keywords
terminal
mifi
router terminal
mifi router
battery
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.)
Pending
Application number
CN202210547010.1A
Other languages
Chinese (zh)
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.)
Shenzhen Hanweilong Technology Co ltd
Henan Yiming Technology Co ltd
Original Assignee
Shenzhen Hanweilong Technology Co ltd
Henan Yiming Technology 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 Shenzhen Hanweilong Technology Co ltd, Henan Yiming Technology Co ltd filed Critical Shenzhen Hanweilong Technology Co ltd
Priority to CN202210547010.1A priority Critical patent/CN114928135A/en
Publication of CN114928135A publication Critical patent/CN114928135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • H02J7/0045Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the batteries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/30Charge provided using DC bus or data bus of a computer
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method and a device for determining a working mode of an MIFI router terminal and an equipment terminal, and belongs to the technical field of MIFI routers. The method for determining the working mode of the MIFI router terminal comprises the following steps: when a USB signal line is connected to a USB interface of the MIFI router terminal, judging whether the MIFI router terminal receives a working mode switching request from the terminal; if so, setting the MIFI router terminal to be in a power supply working mode, and supplying power to the terminal through the USB interface as power supply equipment; if not, the MIFI router terminal is set to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface. The invention has the beneficial effects that: and the function of supplying power to other equipment by the MIFI router terminal is realized.

Description

Method and device for determining working mode of MIFI router and equipment terminal
Technical Field
The invention relates to the technical field of an MIFI router, in particular to a method and a device for determining a working mode of an MIFI router terminal and an MIFI router terminal for realizing the method for determining the working mode of the MIFI router.
Background
The current MIFI router terminal is provided with a battery with a certain capacity, the working mode of the MIFI router terminal is mainly a charging mode and a discharging mode, the charging mode is to charge the battery, and the discharging mode is to discharge the battery for the MIFI router terminal. The MIFI is a portable broadband wireless device, and integrates functions of a modem, a router and an access point. The internal modem has access to a wireless signal and the internal router can share this connection between multiple users and wireless devices.
When the battery of the tablet computer, the mobile phone or the data terminal is exhausted, the MIFI router terminal cannot charge the tablet battery, the mobile phone or the data terminal, a user cannot look for a charger to charge the tablet battery, the mobile phone or the data terminal, but the tablet battery, the mobile phone or the data terminal cannot be used continuously outdoors or under the condition of no other charging equipment. Therefore, the MIFI router termination device can solve this problem by automatically switching the operation mode.
Disclosure of Invention
In order to solve the problem that other equipment cannot be charged in the prior art, the invention provides a method for determining the working mode of an MIFI router terminal, a device for realizing the method for determining the working mode of the MIFI router terminal and the MIFI router terminal.
The invention discloses a method for determining the working mode of an MIFI router terminal, which comprises the following steps:
when a USB signal line is connected to a USB interface of the MIFI router terminal, judging whether the MIFI router terminal receives a working mode switching request from the terminal;
if so, setting the MIFI router terminal to be in a power supply working mode, and supplying power to the terminal through the USB interface as power supply equipment;
if not, the MIFI router terminal is set to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
The invention is further improved, the terminal comprises a mobile phone, a tablet computer or a data terminal, and the MIFI router terminal receives the working mode switching request in a wireless or wired communication mode.
The invention is further improved, the carrier in the wireless communication mode is a WIFI network provided by the MIFI router terminal, and the carrier in the wired communication mode is a USB data line connected with a USB interface of the MIFI router terminal.
The invention is further improved, when the MIFI router terminal supplies power to the tablet personal computer, the mobile phone or the data terminal through the USB interface, if the battery power of the MIFI router terminal is insufficient, the power supply to the tablet personal computer, the mobile phone or the data terminal is stopped, and the working mode of the MIFI router terminal is switched to a normal working mode.
The invention also provides a device for realizing the method for determining the working mode of the MIFI router terminal, which is applied to the MIFI router terminal and comprises the following steps:
a judging module: the MIFI router is used for judging whether the MIFI router terminal receives a working mode switching request from the terminal or not when a USB signal line is connected to a USB interface of the MIFI router terminal;
a first setting module: the MIFI router terminal is used for setting the MIFI router terminal to be in a power supply working mode and used as power supply equipment to supply power to the terminal through the USB interface;
a second setting module: the charging equipment is used for setting the MIFI router terminal to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
The invention also provides an MIFI router terminal, which comprises a shell, a circuit board and a battery, wherein the circuit board and the battery are arranged in the shell, the MIFI router terminal also comprises a USB interface which is arranged on the shell and connected with the circuit board, and the circuit board is provided with a circuit for realizing the method for determining the working mode of the MIFI router terminal.
The invention is further improved, the circuit comprises a CPU, a USB interface circuit and a charging and discharging circuit which are respectively connected with the CPU, and a battery circuit connected with the charging and discharging circuit, wherein the USB interface circuit is also connected with the battery through the charging and discharging circuit and is used for charging the battery or receiving the discharging current of the battery.
The invention is further improved, the USB interface circuit comprises a USB interface, and a filtering unit, an anti-static unit and an OTG judging unit which are respectively connected with the USB interface, wherein the filtering unit is used for filtering power input by the USB interface, the anti-static unit is used for performing anti-static processing on the USB interface, and the OTG judging unit is used for giving a level signal to the CPU as a working mode switching request for judging whether to switch the working mode or not by the CPU.
In a further improvement of the present invention, the charge and discharge circuit includes:
charging and discharging the chip: realizing the charge and discharge control switching of the battery;
an initialization unit: the charge-discharge chip is connected with the input end of the charge-discharge chip and used for giving an initialization level to the charge-discharge chip;
a power input/output unit: the charging and discharging chip is connected with the battery and is used for inputting and outputting power supply and controlling the charging or discharging of the battery through the charging and discharging chip respectively;
a state feedback unit: the charging and discharging chip is connected with the CPU and the MIFI router terminal power management system and is used for feeding back the working state to the charging and discharging chip;
a system power supply unit: and the MIFI router terminal system is used for supplying power to the MIFI router terminal system.
The invention is further improved, the battery circuit comprises a battery interface X1, a battery filter unit and a temperature detection unit, a pin 3 of the battery interface X1 is a power supply pin and is used for outputting a battery power supply or inputting voltage to charge a battery, pins 1 and 4 of a battery pin X1 are grounded, a pin 2 is connected with the temperature detection unit, and the output end of the temperature detection unit is connected with a temperature detection pin of a CPU or a PMU.
Compared with the prior art, the invention has the beneficial effects that: when the battery capacity of the mobile phone, the tablet personal computer or the data terminal is exhausted in the using process, the MIFI router terminal can directly charge the tablet personal battery, the mobile phone or the data terminal, particularly under the condition of outdoor or no other charging equipment, the method and the device can solve the network problem and effectively solve the charging problem, and a user does not need to additionally carry other charging equipment or data lines, so that great convenience is brought to the user.
Drawings
In order to more clearly illustrate the present application or prior art solutions, a brief description of the drawings needed for the embodiments or prior art descriptions is provided below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart of the method of the present invention;
fig. 2 is a flowchart of the operation of the MIFI router terminal in cooperation with a tablet computer, a mobile phone or a data terminal according to the preferred embodiment of the present invention;
FIG. 3 is a circuit block diagram of an MIFI router according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a CPU circuit of the MIFI router according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a charging and discharging circuit according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a USB interface circuit according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a battery circuit in the MIFI router of the present invention.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the foregoing drawings are used for distinguishing between different objects and not for describing a particular sequential order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention provides a method for determining an operating mode of an MIFI router terminal, including the following steps S101 to S104.
Step S101: a USB interface of the MIFI router terminal is connected with a USB signal line;
step S102: judging whether the router terminal receives a working mode switching request from the terminal;
step S103: if receiving a working mode switching request from a terminal at the other end of the USB signal line, setting the MIFI router terminal into a power supply working mode, and using the MIFI router terminal as power supply equipment to supply power to the terminal through the USB interface;
step S104: if not, the MIFI router terminal is set to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
In step S101, a USB signal line is plugged into the USB interface of the MIFI router terminal, and the other end of the USB signal line may be connected to a charging device to charge the MIFI router terminal, or may be connected to other devices such as a mobile phone, a tablet computer, or a data terminal to supply power to the other devices.
In step S102, since the MIFI router terminal of the present invention can be wirelessly connected to other devices, the working mode switching request may be transmitted to the MIFI router terminal of the present invention through a USB data line, or may be transmitted to the MIFI router terminal of the present invention in a wireless manner. When receiving the switching request of the working mode, the MIFI router terminal of the invention is switched from the normal working mode to the power supply mode.
The invention is realized by the same USB interface and the same USB data line no matter in a normal working mode or a power supply mode, thereby being more convenient to operate.
As a preferred embodiment of the present invention, the operation mode switching request of the present invention is transmitted to the MIFI router terminal of the present invention through a USB data line. The USB data line of the invention is a data line supporting OTG function.
The MIFI router terminal cannot judge whether OTG working mode switching requests from a tablet computer, a mobile phone or a data terminal are received or not, so that the working mode of the MIFI router terminal cannot be automatically adjusted. In the embodiment of the invention, when the MIFI router terminal is connected to a tablet computer, a mobile phone or a data terminal, whether an OTG (on-the-go) working mode switching request from the tablet computer, the mobile phone or the data terminal exists is judged, if yes, the working mode of the MIFI router terminal is set to be a power supply working mode to be used as OTG host equipment, and if not, the working mode of the MIFI router terminal is set to be a normal working mode to be used as OTG slave equipment, and other equipment such as a charger and the like are supported to charge the MIFI router terminal.
According to the invention, the MIFI router terminal can automatically adjust the working mode according to different working environments through interaction with a tablet computer, a mobile phone or a data terminal, and can reach the corresponding working state without manual intervention of a user.
After the working mode of the MIFI router terminal is set to be the power supply working mode, the method further comprises the following steps: the MIFI router terminal supplies power to a tablet computer, a mobile phone or a data terminal.
Preferably, before the MIFI router terminal determines whether the working mode switching request from the tablet computer, the mobile phone or the data terminal is received, the method further includes: detecting the connection with the MIFI router terminal by a tablet computer, a mobile phone or a data terminal; and the tablet computer, the mobile phone or the data terminal sends a working mode switching request to the MIFI router terminal.
Preferably, the operation mode switching request is a USB request. When the MIFI router terminal supplies power to the tablet personal computer, the mobile phone or the data terminal through the USB interface, if the battery capacity of the MIFI router terminal is insufficient, the power supply to the tablet personal computer, the mobile phone or the data terminal is stopped, and the working mode of the MIFI router terminal is switched to a normal working mode.
The embodiment of the invention also provides a device for determining the working mode of the MIFI router terminal, which is applied to the MIFI router terminal and can be used for realizing the method for determining the working mode of the MIFI router terminal. The device comprises a judging module, a first setting module and a second setting module. The structure thereof will be described in detail below.
The MIFI router comprises a judging module, a judging module and a judging module, wherein the judging module is used for judging whether the MIFI router terminal receives a working mode switching request from a terminal or not when a USB interface of the MIFI router terminal is connected with a USB signal line;
a first setting module: the MIFI router terminal is used for setting the MIFI router terminal to be in a power supply working mode and used as power supply equipment to supply power to the terminal through the USB interface;
a second setting module: the charging equipment is used for setting the MIFI router terminal to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
In the related art, the MIFI router terminal cannot automatically adjust its operating mode and always operates in a normal operating mode state. In the embodiment of the invention, when the MIFI router terminal is connected to a tablet computer, a mobile phone or a data terminal, whether a work mode switching request from the tablet computer, the mobile phone or the data terminal exists is judged, if yes, the work mode is set to be a power supply work mode and used as OTG host equipment, otherwise, the work mode is set to be a normal work mode and used as OTG slave equipment, so that the MIFI router terminal can automatically adjust the work mode according to different work environments through interaction with the tablet computer, the mobile phone or the data terminal equipment, and can be switched to the corresponding OTG equipment work state without manual intervention of a user.
As shown in fig. 2, an embodiment of the present invention further provides a system for determining a working mode of an MIFI router terminal, where the system may be used to implement the method for determining a working mode of an MIFI router terminal, and the system includes an MIFI router terminal, a tablet computer, a mobile phone, or a data terminal.
The MIFI router terminal comprises a working mode determining device of the MIFI router terminal; tablet computer, cell-phone or data class terminal is connected to MIFI router terminal, includes:
an identification module: the USB power supply device is used for identifying a USB power supply working mode;
an execution module: and the USB host device is connected to the identification module and used for executing corresponding operation according to the USB OTG state detected by the identification module (when the tablet computer, the mobile phone or the data terminal is in the OTG host device state, the tablet computer, the mobile phone or the data terminal is in the USB slave device state, the battery of the tablet computer, the mobile phone or the data terminal is discharged outwards), and when the tablet computer, the mobile phone or the data terminal is in the USB slave device state, the battery of the tablet computer, the mobile phone or the data terminal is charged).
It should be noted that the working mode determining device and system of the MIFI router terminal described in the device embodiment correspond to the method embodiment described above, and a specific implementation process thereof has been described in detail in the method embodiment, and is not described herein again.
According to the above description of the technical solution of the present invention, it can be known that the MIFI router terminal in the above embodiment supports two working mode switching, and the MIFI router can complete the working mode adjustment according to different working environments without manual intervention of a user; when the MIFI router is used as host equipment, a tablet computer, a mobile phone or a data terminal which are connected can be charged, and the cruising ability of external equipment is improved; when the MIFI router is used as a slave device, the MIFI router can receive external equipment to charge the MIFI router, and the cruising ability of the MIFI router is improved.
As shown in fig. 3, as an embodiment of the present invention, the MIFI router terminal of the present invention includes a housing, a circuit board and a battery disposed in the housing, and further includes a USB interface disposed on the housing and connected to the circuit board, where the circuit board is provided with a circuit for implementing a method for determining a working mode of the MIFI router terminal.
The circuit comprises a CPU, a USB interface circuit and a charging and discharging circuit which are respectively connected with the CPU, and a battery circuit connected with the charging and discharging circuit, wherein the USB interface circuit is also connected with the battery through the charging and discharging circuit and is used for charging the battery or receiving the discharging current of the battery.
The working principle of the invention is as follows:
1. power supply operation mode (battery discharge function): when the USB data line is plugged into the USB interface, a low level is supplied to the CPU through the USB interface, the CPU controls the low level to be a discharge circuit, at the moment, the battery is boosted to 5V through the discharge circuit, and then the corresponding equipment is charged from the USB interface;
2. normal operating mode (battery charging function): when the USB data line is plugged into the USB interface, a high level is supplied to the CPU through the USB interface, the CPU controls the charging circuit, and at the moment, the power supply charges the battery through the USB interface.
In addition, no matter in a power supply working mode or a normal working mode, the battery supplies power to a PMU (power management unit) of the MIFI router terminal of the invention through a charging and discharging circuit, and maintains the normal functions of the MIFI router terminal, such as providing network functions and the like.
The USB interface can be either MCRO USB or TYPE-C USB, which will give corresponding signals, and the whole charging and discharging process is realized through one USB port.
As shown in fig. 4, the CPU of this embodiment uses a ZX297520 communication module chip U4 to implement a network access function, and further has pins T1 and R2 for sending a charge/discharge switching control command to the charge/discharge circuit. The pin 22 is connected with a charging and discharging chip for obtaining the state of the charging and discharging chip, and the pins C3 and B3 are connected with the USB interface for receiving and transmitting information. The invention can process some relatively complex scenes through the control of the CPU, such as: the charging of the adapter or the computer is identified so as to control the charging current and the discharging current.
As shown in fig. 5, the charge and discharge circuit of the present invention includes a charge and discharge chip D211: the charging and discharging control switching of the battery is realized;
an initialization unit: the charge-discharge chip is connected with the input end of the charge-discharge chip and used for giving an initialization level to the charge-discharge chip;
power input/output unit: the charging and discharging chip is connected with the battery and is used for inputting and outputting power supply and respectively controlling the charging or discharging of the battery through the charging and discharging chip;
a state feedback unit: the charging and discharging chip is connected with the CPU and the MIFI router terminal power management system and is used for feeding back the working state to the charging and discharging chip;
a system power supply unit: and the terminal power supply device is used for supplying power to the MIFI router terminal system.
The invention adopts one chip for charging and discharging, is more concise and efficient, saves space and is convenient to operate; the charging and discharging chip has an OVP (over voltage protection) function, so that the interrupt equipment can be effectively protected.
The initialization unit comprises resistors R130, R132 and R138, wherein one ends of the resistors R130, R132 and R138 are connected with a 1.8V high-level pin at the same time, and the other ends of the resistors R130, R132 and R138 are respectively connected with different pins of a charging and discharging chip D211.
One end of the power input/output unit of the embodiment is connected to pins 1 and 24 of the charge/discharge chip D211, pin 1 is a power supply pin, pin 24 is a power supply pin, and the other end of the power input/output unit is connected to the USB interface, and is used for inputting or outputting a power supply.
The state feedback unit of the embodiment comprises three branches of a CPU feedback circuit, a PMU feedback circuit and a self feedback circuit, wherein the input ends of the three branches are respectively connected with the pin 22 of the D211 of the charging and discharging chip, and the other ends of the three branches are connected with the corresponding input pins of the chip through respective divider resistors. The PMU feedback branch is also provided with a feedback pin which is connected with a startup pin, and when the equipment is powered off in a power failure mode, if the insertion of a USB data line is detected and the power is supplied to the equipment, the equipment is automatically started.
The system power supply unit of the embodiment comprises a capacitor C164, an inductor L158, a capacitor C171 and a capacitor C172, wherein one end of the capacitor C164 is connected with the pin 21 of the charging and discharging chip D221, the other end of the capacitor C164 is connected with one end of the inductor L158, the other end of the inductor L158 is respectively connected with one end of the capacitor C171, one end of the capacitor C172 and a power output end, the power output end supplies power for the system, and the other ends of the capacitor C171 and the capacitor C172 are grounded. The three capacitors and the inductor in the embodiment have a filtering function, and provide a proper power supply for the system.
As shown in fig. 6, the USB interface circuit of this embodiment includes a USB interface I364, and a filtering unit, an anti-static unit and an OTG determining unit that are respectively connected to the USB interface I364, where the filtering unit is configured to filter a power input by the USB interface, the anti-static unit is configured to perform anti-static processing on the USB interface, and the OTG determining unit is configured to provide a level signal to the CPU, and use the level signal as a work mode switching request for the CPU to determine whether to switch a work mode.
The filter unit of the present example comprises a grounded capacitor C801 and a capacitor C802 which are connected in parallel, and the other ends of the capacitor C801 and the capacitor C802 are connected with power input and output pins A4 and B4 of a USB interface I364.
The antistatic unit of this example includes zener diode VD101, VD801, VD802 and piezo-resistor RV801, zener diode VD101, VD801 and VD 802's positive ground, zener diode VD 101's negative pole connects USB interface power input/output pin, zener diode VD801 and VD 802's negative pole connects two signal transmission pins of USB interface respectively, piezo-resistor RV801 one end ground connection, another termination USB interface power input/output pin.
The USB interface is provided with an OTG judgment pin CC1 and a CC2, the anti-static unit further comprises a piezoresistor RV114 and an RV115, one end of the piezoresistor RV114 and one end of the RV115 are grounded respectively, the other end of the piezoresistor RV114 is connected with an OTG judgment pin CC1, and the other end of the piezoresistor RV115 is connected with an OTG judgment pin CC 2.
Through the anti-static protection of the USB interface, the safety performance of the interface power supply circuit is effectively improved. The charging and discharging identification is realized through a USB interface, and the intelligent charging and discharging system is more intelligent.
The OTG determining unit of this example includes a resistor R209, a resistor R210, and a resistor R924, where one end of the resistor R924 is connected to the 1.8V high level output by the PMU, and is used as the levels of the CC1 and the CC2 pins of the default pull-up USB interface, the other end of the resistor R924 is connected to the OTG determining pin of the CPU, one end of the resistor R209, and one end of the resistor R210, the other end of the resistor R209 is connected to the CC1 pin of the USB interface, and the other end of the resistor R210 is connected to the CC2 pin of the USB interface.
As shown in fig. 7, the battery circuit of this embodiment includes a battery interface X1, a battery filter unit, and a temperature detection unit, where pin 3 of the battery interface X1 is a power supply pin for outputting a battery power or inputting a voltage to charge a battery, pins 1 and 4 of the battery pin X1 are grounded, pin 2 is connected to the temperature detection unit, and an output end of the temperature detection unit is connected to a temperature detection pin of the PMU. The temperature of the battery can be detected by the CPU by connecting the CPU.
The battery filter unit of the embodiment comprises grounding capacitors C2 and C3 which are connected in parallel, and also comprises voltage dependent resistors T11 and T12 which are antistatic, wherein the voltage dependent resistors T11 and T12 are respectively connected with a power supply pin and a temperature detection pin of a battery interface X1, and the other ends of the voltage dependent resistors are grounded. In addition, the temperature detection pin of the embodiment is connected with the 1.8V level output by the PMU through a pull-up resistor R4, and when the internal resistance of the battery is at different temperatures, the voltage output by the temperature detection pin is different, so that the PMU can judge the current battery temperature according to the output voltage, further the function of monitoring the battery temperature in real time is realized, and the safety of the battery is ensured.
The working principle of the circuit of the embodiment is as follows:
when the USB interface is connected with a USB data line, if a working mode switching request is not received, the CC1 and the CC2 of the USB interface are at a high level, the pins 3 and 4 of the charging and discharging chip are at a high level, the chip keeps a normal working mode at the moment, the charging and discharging chip is in a charging state, the battery can be charged through the USB interface, the pin 21 provides a normal power supply for the MIFI router terminal, and the MIFI router terminal is ensured to work normally.
When receiving a work mode switching request of the OTG data line, pins CC1 and CC2 of the USB interface are pulled down, so that the OTG judgment pin of the CPU receives a level conversion signal, controls the charge-discharge chip to be switched to a discharge state, and supplies power to other external equipment through the USB interface.
Compared with the prior art, when the battery capacity is exhausted in the using process of the mobile phone, the tablet personal computer or the data terminal, the MIFI router terminal can directly charge the tablet personal battery, the mobile phone or the data terminal, particularly under the condition that the outdoor or no other charging equipment exists, the MIFI router terminal can solve the network problem and effectively solve the charging problem, and a user does not need to additionally carry other charging equipment or data lines, so that great convenience is brought to the user.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all such modifications and equivalents as may be included within the scope of the invention are intended to be included therein.

Claims (10)

1. A method for determining the working mode of an MIFI router terminal is characterized by comprising the following steps:
when a USB signal line is connected to a USB interface of the MIFI router terminal, judging whether the MIFI router terminal receives a working mode switching request from the terminal;
if so, setting the MIFI router terminal to be in a power supply working mode, and using the MIFI router terminal as power supply equipment to supply power to the terminal through the USB interface;
if not, the MIFI router terminal is set to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
2. The method for determining the operation mode of the MIFI router terminal according to claim 1, wherein: the terminal comprises a mobile phone, a tablet computer or a data terminal, and the MIFI router terminal receives the working mode switching request in a wireless or wired communication mode.
3. The method for determining an operating mode of an MIFI router terminal according to claim 2, characterized in that: the carrier of the wireless communication mode is a WIFI network provided by the MIFI router terminal, and the carrier of the wired communication mode is a USB data line connected with a USB interface of the MIFI router terminal.
4. The method for determining the working mode of the MIFI router terminal according to any one of claims 1-3, wherein: when the MIFI router terminal supplies power to the tablet personal computer, the mobile phone or the data terminal through the USB interface, if the battery capacity of the MIFI router terminal is insufficient, the power supply to the tablet personal computer, the mobile phone or the data terminal is stopped, and the working mode of the MIFI router terminal is switched to a normal working mode.
5. An apparatus for implementing the method for determining the operation mode of the MIFI router terminal according to any one of claims 1 to 4, applied to the MIFI router terminal, includes:
a judging module: the MIFI router is used for judging whether the MIFI router terminal receives a working mode switching request from the terminal or not when a USB signal line is connected to a USB interface of the MIFI router terminal;
a first setting module: the MIFI router terminal is used for setting the MIFI router terminal to be in a power supply working mode and used as power supply equipment to supply power to the terminal through the USB interface;
a second setting module: the charging equipment is used for setting the MIFI router terminal to be in a normal working mode, and the charging equipment can charge the MIFI router terminal through the USB interface.
6. An MIFI router terminal, comprising a shell, a circuit board and a battery arranged in the shell, and a USB interface arranged on the shell and connected with the circuit board, wherein the circuit board is provided with a circuit for realizing the method for determining the working mode of the MIFI router terminal as claimed in any one of claims 1-4.
7. The MIFI router terminal of claim 6, wherein: the circuit comprises a CPU, a USB interface circuit and a charging and discharging circuit which are respectively connected with the CPU, and a battery circuit connected with the charging and discharging circuit, wherein the USB interface circuit is also connected with the battery through the charging and discharging circuit and is used for charging the battery or receiving the discharging current of the battery.
8. The MIFI router terminal of claim 7, wherein: the USB interface circuit comprises a USB interface, and a filtering unit, an anti-static unit and an OTG (on-the-go) judging unit which are respectively connected with the USB interface, wherein the filtering unit is used for filtering power input by the USB interface, the anti-static unit is used for performing anti-static processing on the USB interface, and the OTG judging unit is used for giving a level signal to the CPU and is used as a working mode switching request for judging whether to switch a working mode or not by the CPU.
9. The MIFI router terminal of claim 7, wherein the charging and discharging circuit comprises:
charging and discharging the chip: the charging and discharging control switching of the battery is realized;
an initialization unit: the charge-discharge chip is connected with the input end of the charge-discharge chip and used for providing an initialization level for the charge-discharge chip;
power input/output unit: the charging and discharging chip is connected with the battery and is used for inputting and outputting power supply and controlling the charging or discharging of the battery through the charging and discharging chip respectively;
a state feedback unit: the charging and discharging chip is connected with the CPU and the MIFI router terminal power management system and is used for feeding back the working state to the charging and discharging chip;
a system power supply unit: and the terminal power supply device is used for supplying power to the MIFI router terminal system.
10. The MIFI router terminal of claim 7, wherein: the battery circuit comprises a battery interface X1, a battery filtering unit and a temperature detection unit, wherein a pin 3 of a battery interface X1 is a power supply pin and is used for outputting a battery power supply or charging an input voltage for a battery, pins 1 and 4 of a battery pin X1 are grounded, a pin 2 is connected with the temperature detection unit, and the output end of the temperature detection unit is connected with a temperature detection pin of a CPU or a PMU.
CN202210547010.1A 2022-05-19 2022-05-19 Method and device for determining working mode of MIFI router and equipment terminal Pending CN114928135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210547010.1A CN114928135A (en) 2022-05-19 2022-05-19 Method and device for determining working mode of MIFI router and equipment terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210547010.1A CN114928135A (en) 2022-05-19 2022-05-19 Method and device for determining working mode of MIFI router and equipment terminal

Publications (1)

Publication Number Publication Date
CN114928135A true CN114928135A (en) 2022-08-19

Family

ID=82809668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210547010.1A Pending CN114928135A (en) 2022-05-19 2022-05-19 Method and device for determining working mode of MIFI router and equipment terminal

Country Status (1)

Country Link
CN (1) CN114928135A (en)

Similar Documents

Publication Publication Date Title
US6531845B2 (en) Battery charging
CN108988431B (en) Multi-protocol charging device and multi-protocol charging method
EP3086433A1 (en) Charging method, alternating current adaptor, charging management device and terminal
EP2051493A1 (en) Mobile terminal aware of externally connected device and control method for the same
GB2395820A (en) Communication hub for bus powered devices with a rechargeable power source for providing power to high power devices
WO2013152662A1 (en) Power supply method for terminal device, and terminal device thereof
JP4075513B2 (en) Serial bus connection device and driver software
US20040232768A1 (en) Portable electronic device for receiving power over a network
CN109861038B (en) USB connection port capable of automatically switching connection mode and control method thereof
US20240088698A1 (en) Energy storage system, primary energy-storage-apparatus, and auxiliary energy-storage-apparatus
CN103246336A (en) Electronic apparatus and driving control method thereof
US20040085045A1 (en) Electronic device
TW201710831A (en) Power bank apparatus and power control method thereof
EP4216030A1 (en) Power delivery device and control method of power supply path
CN217445377U (en) MIFI router terminal with single USB interface for realizing charge and discharge functions
CN114928135A (en) Method and device for determining working mode of MIFI router and equipment terminal
CN100358211C (en) Charging set for handset
CN107612104B (en) Control method and device for charging of U disk charger
CN214755687U (en) Charge and discharge management circuit and portable power source
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank
CN117194294A (en) USB output path conversion circuit and related device
CN212541260U (en) Reset circuit of electronic equipment and electronic equipment
CN209963779U (en) Power adapter
CN109066906B (en) Charging circuit and integral type head-mounted apparatus
CN215647304U (en) External sound card and audio system

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