WO2013131334A1 - 数据卡的控制方法及数据卡 - Google Patents

数据卡的控制方法及数据卡 Download PDF

Info

Publication number
WO2013131334A1
WO2013131334A1 PCT/CN2012/076839 CN2012076839W WO2013131334A1 WO 2013131334 A1 WO2013131334 A1 WO 2013131334A1 CN 2012076839 W CN2012076839 W CN 2012076839W WO 2013131334 A1 WO2013131334 A1 WO 2013131334A1
Authority
WO
WIPO (PCT)
Prior art keywords
data card
current
status
output
comparison result
Prior art date
Application number
PCT/CN2012/076839
Other languages
English (en)
French (fr)
Inventor
张伟鑫
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013131334A1 publication Critical patent/WO2013131334A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data card control method and a data card.
  • 3G Three-Generation
  • 3G networks and services have become the dominant wireless communication and data transmission.
  • the most obvious advantage of 3G is the high-speed wireless data transmission service, and the existing 3G mobile phones and 3G terminal devices cannot meet the increasing demand for wireless data transmission of users.
  • the wireless data card has become popular in people's field of vision because of its convenient carrying and strong compatibility.
  • the wireless data card can be used on any desktop computer or laptop with an external data interface. It not only has wireless Internet access, but also has all the functions of the mobile phone.
  • the dialing methods of the wireless Internet mainly include IP (Internet Protocol) dialing and PPP (Point to Point Protocol) dialing.
  • IP dialing is to access the Internet (network) by using ADSL (Asymmetric Digital Subscriber Loop).
  • the data card indirectly detects the rotation angle through the acceleration sensor, and each rotation of the user generates a current gravity acceleration, and the rotation angle is calculated each time, the load of the acceleration sensor is increased, and the service life is reduced.
  • the rotation angle changes due to external factors, it is easy to cause dialing or disconnection operation without the user's will; and the data card is set to connect or disconnect the network is certain Within the range of rotation, once there is a problem with the signal in the range, the user must pass again Rotating the data card to change the angle to get the best signal, then dialing the Internet or disconnecting the network connection by rotating the data card becomes meaningless, and the user has to connect or disconnect the network through the computer software at this time.
  • the present invention provides a data card control method and a data card to solve at least the problem that the user experience is inconvenient when the user uses the wireless data card to dial up or disconnect the network connection in the related art.
  • the present invention provides a data card control method, comprising the steps of: outputting a current according to an optical signal emitted by a light source received by a photoelectric sensor; comparing the output current with a preset current to obtain a comparison result; The result and the status of the current data card control the data card to dial-up the network or disconnect the network.
  • the comparing the output current with the preset current, and obtaining the comparison result specifically includes: determining whether the output current is not less than a preset current; if yes, outputting a data card state control signal.
  • the step of controlling the data card to perform a dial-up connection network or disconnecting the network connection according to the comparison result and the status of the current data card comprises: if the comparison result is an output data card status control signal, determining the current The status of the data card; if the current data card is a dial-up connection network state, the control data card performs the operation of disconnecting the network connection; if the current data card is disconnected from the network state, the control data card performs the operation of dialing the connection network; The result of the comparison is not the output data card status control signal, and the data card remains in the current state.
  • the light signal emitted by the light source received by the photoelectric sensor controls the light intensity of the light source to the photoelectric sensor by rotating the USB interface of the data card.
  • the preset current is an output current when the angle of the USB interface of the rotating data card is 60°.
  • the invention also provides a data card, comprising: a photosensitive module, configured to output a current according to an optical signal emitted by the light source received by the photoelectric sensor; a comparison module configured to compare the output current with a preset current to obtain a comparison result; and a control module configured to be based on the comparison result And the status of the current data card, control the data card to dial-up network or disconnect the network connection.
  • the comparison module specifically includes: a determining unit, configured to determine whether the output current is not less than a preset current; and an output unit configured to output a data card state control signal when the output current is not less than a preset current .
  • the control module specifically includes: a dialing unit configured to control the operation of the data card to perform a dial-up connection network when the comparison result is an output data card status control signal and the current data card status is a disconnected network connection status Also set to maintain the dial-up connection network state when the comparison result is not the output data card state control signal, and the current data card state is the dial-up connection network state; the disconnection unit is set to output in the comparison result
  • the data card status control signal and the status of the current data card is a dial-up connection network state, the control data card performs an operation of disconnecting the network connection; further set to not output the data card status control signal in the comparison result, and the current data card When the status is disconnected from the network, the network connection status continues to be maintained.
  • the light signal emitted by the light source received by the photoelectric sensor controls the light intensity of the light source to the photoelectric sensor by rotating the USB interface of the data card.
  • the preset current is an output current when the angle of the USB interface of the rotating data card is 60°.
  • the control method of the data card of the present invention controls the current output by converting the optical signal emitted by the light source into an electrical signal by rotating the USB interface to a fixed angle, comparing the output current with the preset current, according to the comparison result and the data card.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for controlling a data card according to the present invention
  • 2 is a schematic flow chart of comparing an output current with a preset current to obtain a comparison result in the control method of the data card of the present invention
  • FIG. 3 is a diagram showing the state of the data card according to the comparison result and the current data card in the control method of the data card of the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of a data card of the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a data card of the present invention
  • 6 is a schematic structural diagram of an embodiment of a comparison module in the data card of the present invention
  • FIG. 7 is a schematic structural diagram of an embodiment of a control module in the data card of the present invention.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for controlling a data card according to the present invention.
  • the control method of the data card of the present invention includes the following steps: Step S01: outputting a current according to an optical signal emitted by a light source received by the photosensor; in a preferred embodiment, the photosensor adopts a photoresistor.
  • the light source uses an LED (Light-Emitting Diode).
  • the output current is the working principle of using the photoresistor:
  • the electrons in the valence band absorb the photon energy and then transition to the conduction band to become free electrons; Cavities are generated inside, and electron-hole pairs appear, and the appearance of electron-hole pairs makes the resistivity of the photoresistor small. The stronger the illumination of the LED, the more electron-hole pairs produced by the photoresistor, and the lower the resistance of the photoresistor.
  • the data card requires a photoresistor element at an angle of 60° on the spindle; the purpose is: The LED source is capable of illuminating the photoresistor sufficiently when the USB interface of the data card is rotated to 60°. At the same time, when the user rotates the USB interface of the data card to other angles, the light source cannot be sufficiently illuminated to illuminate the photoelectric sensor. If the device does not get enough current, the setting will not start.
  • Step S02 comparing the output current with a preset current to obtain a comparison result; when the photoelectric sensor in the data card is illuminated by the light source, the output current of the data card also changes according to the change of the illumination intensity of the light source;
  • the preset current is the output current when the angle of the USB interface of the rotating data card is 60°.
  • the output current is compared with a preset current, and a comparison result of the two is obtained.
  • the contrast current value that is, the preset current, is preset.
  • the preset current is set by: obtaining a current value generated when the light source is sufficient to illuminate the photosensor at an angle of 60°, and using the current value as a reference value of the preset current.
  • the preset current may also be slightly lower than the current value generated when the light source is sufficiently illuminating the photosensor at an angle of 60°.
  • Step S03 Control an operation of the data card to dial a connection network or disconnect the network according to the comparison result and the status of the current data card. According to the current comparison result of the output current and the preset current, combined with the current state of the data card, dial-up or disconnect the network connection of the data card.
  • the angle of the USB interface of the data card needs to be adjusted so that the light source LED and the photosensitive resistive element are sufficiently illuminated, as long as the rotation angle is not maintained. 60°, any other range of angles of rotation, the result will not affect the current networking state of the data card.
  • To disconnect the net just turn the 60° position again to disconnect the net.
  • the control method of the data card of the present invention converts the optical signal emitted by the light source received by the photoelectric sensor into an electrical signal output current, compares the output current with a preset current, and performs data card status according to the comparison result and the current state of the data card.
  • the control method realizes the flexible and convenient control of the data card for dial-up or disconnection of the network connection, thereby achieving the beneficial effect of facilitating the user's use and improving the user experience.
  • Fig. 2 is a flow chart showing an embodiment of comparing the output current with the preset current in the control method of the data card of the present invention to obtain a comparison result. As shown in FIG.
  • the step of comparing the output current with the preset current, and obtaining the comparison result specifically includes: Step S11: determining whether the output current is not less than a preset current; if yes, Then, step S12 is performed; if not, the process returns directly to the end without performing any operation; Step S12: Output a data card state control signal. Comparing the current output current of the data card with the preset current to determine whether the output current is greater than or equal to the preset current. If the output current is greater than or equal to the preset current, the data card status control signal is output.
  • the data card state control signal is a digital signal
  • the data card dial-up state is 1, the data card disconnects the network connection state to 0; the data card converts the analog signal of its own state into a digital signal output.
  • the control method of the data card of the invention achieves the flexible and convenient control of the data card for dial-up or disconnection of the network connection by comparing the output current with the preset current and obtaining the comparison result, thereby achieving convenient user use, Improve the user experience.
  • FIG. 3 is a flow chart showing an embodiment of an operation of controlling a data card to perform a dial-up connection network or disconnecting a network connection according to a comparison result and a current data card status in the control method of the data card of the present invention.
  • the step of controlling the data card to perform the operation of dialing the network or disconnecting the network includes: Step S21: determining whether the comparison result is In order to output the data card status control signal; if yes, execute step S23; if not, execute step S22; step S22, the data card maintains the current state; if the data card current output current and the preset current are compared, the output is output
  • the data card state control signal is combined with the current state of the data card to perform the next operation; if the current output current of the data card is compared with the preset current is not the output data card state control signal, the data card maintains the current state.
  • Step S23 determining whether the current data card status is a dial-up Internet status; if the current data card status is a dial-up Internet status, executing step S24; if the current data card status is not dial-up Internet status, performing step S25; step S24; Controlling the data card to perform the operation of disconnecting the network connection; Step S25, controlling the operation of the data card to perform the dial-up connection network.
  • Step S23 determining whether the current data card status is a dial-up Internet status; if the current data card status is a dial-up Internet status, executing step S24; if the current data card status is not dial-up Internet status, performing step S25; step S24; Controlling the data card to perform the operation of disconnecting the network connection; Step S25, controlling the operation of the data card to perform the dial-up connection network.
  • FIG. 4 is a block diagram showing an embodiment of a data card of the present invention. As shown in FIG.
  • the data card of the present invention includes a photosensitive module 01 configured to output a current according to an optical signal emitted by a light source received by the photoelectric sensor, and a comparison module 02 configured to compare the output current with a preset current. Obtaining a comparison result; the control module 03 is configured to control the data card to perform a dial-up connection network or disconnect the network connection according to the comparison result and the status of the current data card.
  • the data card of the present invention comprises a data card housing and a data card main board disposed inside the data card housing.
  • the main board is equipped with a light source LED, a data card chip CPU (Central Processing Unit), a memory, a rotating USB interface, and a photoelectric
  • the sensor is a photoresistor.
  • FIG. 5 is a block diagram showing an embodiment of a data card of the present invention.
  • the data card has a USB interface with a rotatable angle.
  • the data card can rotate the angle to control the data card dial-up connection network or disconnect the network connection; and install the photoresistor on the rotating USB interface.
  • the photoresistor is mounted at an angle of 60° on the USB interface rotating shaft; the LED is mounted on the main board at the rotating USB interface to ensure sufficient illumination of the light source Rotate the photoresistor at the interface.
  • the photoresistor When the LED in the photosensitive module 01 is illuminated by the photoresistor, the photoresistor generates a large enough current, and the comparison module 02 compares the output current with the preset current to obtain a comparison result; and acquires the current data card working state through the memory, Combined with the comparison result of the output current and the preset current obtained by the comparison module 02, the motherboard chip CPU of the data card control module 03 controls the data card to perform a dial-up connection network or disconnect the network connection operation.
  • the data card of the present invention converts an optical signal emitted by a light source received by a photoelectric sensor into an electrical signal output current, compares the output current with a preset current, and performs data card state control according to a comparison result and a current state of the data card.
  • FIG. 6 is a schematic structural diagram of an embodiment of a comparison module in a data card of the present invention.
  • the comparison module 02 specifically includes: a determining unit 021, configured to determine whether the output current is not less than a preset current;
  • the output unit 022 is configured to output a data card state control signal when the output current is not less than a preset current.
  • the determining unit 021 compares the current output current of the data card with the preset current, and determines whether the output current is greater than or equal to the preset current. If the current output current of the data card is greater than or equal to the preset current, the output unit 022 outputs a data card status control signal. If the current output current of the data card is less than the preset current, the output unit 022 does not output the data card status control signal.
  • the data card state control signal is a digital signal
  • the data card dial-up state is 1, the data card disconnects the network connection state to 0; the data card converts the analog signal of its own state into a digital signal output. .
  • FIG. 7 is a schematic structural diagram of an embodiment of a control module in a data card of the present invention. As shown in FIG.
  • the control module 03 specifically includes: a dialing unit 031, configured to set, when the comparison result is an output data card status control signal, and the current data card status is disconnected from the network connection state, Controlling the operation of the data card to perform the dial-up connection network; further configured to continue maintaining the dial-up connection network state when the comparison result is not the output data card status control signal, and the current data card status is the dial-up connection network status; And setting to control the data card to perform the operation of disconnecting the network connection when the comparison result is the output data card status control signal and the status of the current data card is the dial-up connection network state; further set to not output the data in the comparison result The card status control signal, and when the status of the current data card is disconnected from the network state, the network connection state is maintained.
  • a dialing unit 031 configured to set, when the comparison result is an output data card status control signal, and the current data card status is disconnected from the network connection state, Controlling the operation of the data card to perform the dial-up connection network
  • the comparison result between the current output current of the data card and the preset current in the comparison module 02 is the output data card status control signal
  • the status of the current data card stored in the data card memory is read; if the current data card status is the dial-up status
  • the disconnection unit 032 performs a disconnection network connection operation; if the current data card state is disconnected from the network connection state, the dialing unit 031 performs a dial-up connection network operation.
  • the data card maintains the current state, that is, if the current data card state is disconnected from the network state,
  • the network unit 032 continues to maintain the disconnected network connection status of the data card; if the current data card status is the dial-up connection network status, the dialing unit 031 continues to maintain the dial-up connection network status of the data card.
  • the data card of the invention realizes the operation of controlling the data card to dial the Internet or disconnect the network by flexibly and conveniently, by performing the dial-up connection network or disconnecting the network connection of the data card according to the comparison result and the state of the current data card. It has the beneficial effect of facilitating user use and improving user experience.
  • the data card control method and the data card of the embodiment of the present invention convert the optical signal emitted by the light source into an electrical signal by rotating the USB interface to a fixed angle to control the current output, compare the output current with the preset current, and compare the data according to the comparison.
  • the result and the current state of the data card are used to control the state of the data card, thereby realizing the flexible and convenient control of the data card for dial-up or disconnecting the network connection, thereby achieving the beneficial effect of facilitating the user's use and improving the user experience.

Abstract

本发明公开一种数据卡的控制方法,该方法包括以下步骤:根据光电传感器接收的光源发射的光信号,输出电流;将所述输出电流与预置电流进行比较,获取比较结果;根据所述比较结果和当前数据卡的状态,控制数据卡进行拨号连接网络或断开网络连接的操作。本发明还公开一种数据卡。本发明数据卡的控制方法通过旋转USB接口到一个固定角度时将光源发射的光信号转换为电信号来控制电流输出、将所述输出电流与预置电流进行比较、根据比较结果及数据卡的当前状态进行数据卡状态控制的方法,实现了灵活、便捷地控制数据卡进行拨号上网或断开网络连接的操作,达到了方便用户使用、改善用户体验的有益效果。

Description

数据卡的控制方法及数据卡
技术领域 本发明涉及通讯技术领域, 尤其涉及一种数据卡的控制方法及数据卡。 背景技术 随着 3G (Third -Generation, 第三代移动通信)技术的飞速发展, 3G网络和业务 已成为无线通讯和数据传输的主导。 3G最明显的优势在于高速的无线数据传输业务, 而现有的 3G手机以及 3G终端设备已不能满足用户日益增长的无线数据传输的使用需 求。 无线数据卡以其携带方便、 兼容性强的特点, 开始出现在人们的视野, 备受人们 关注。 无线数据卡可在任何一款带外接数据接口的台式计算机或笔记本电脑上使用, 不但具有无线上网功能, 同时还具有手机的所有功能, 在未来以 LTE ( Long Term Evolution, 长期演进) 乃至 4G (Fourth -Generation, 第四代移动通信) 为主导的网络 通信中, 无线数据卡将会充分发挥其巨大的优势。 现有技术中, 无线上网的拨号方式主要有 IP (Internet Protocol, 互联网协议) 拨 号和 PPP ( Point to Point Protocol, 点对点通讯协议)拨号两种。 所谓 IP拨号就是通过 接入数据网络来传播语音信息, 是一种快捷拨号方式; PPP拨号即虚拟拨号, 是指用 ADSL (Asymmetrical Digital Subscriber Loop, 非对称数字用户环线)接入 Internet (网 络)时同样需要输入用户名和密码,但 ADSL连接的并不是具体的接入号码,而是 VPN (Virtual Private Network, 虚拟专用网) 的 ADSL接入的 IP地址; 虚拟拨号是宽带连 接的拨号方式, 需支持 PPPOE (Point to Point Protocol Over Ethernet, 基于局域网的点 对点通信协议) 。 用户在使用无线数据卡进行拨号上网或断开网络连接时, 都需使用 电脑的后台软件进行操作; 这给用户的操作带来了极大的不便, 用户体验效果不佳。 现有技术中有一种数据卡是通过旋转数据卡控制拨号, 该数据卡大大改善了用户使用 操作。 但现有技术中的这种数据卡是通过加速度传感器间接检测旋转角度, 用户的每 次旋转都会产生一个当前重力加速度, 每次都要计算旋转角度, 增加了加速度传感器 的负荷, 减少其使用寿命; 在使用过程中, 如果受到外界因素干扰使其旋转角度发生 变化, 则很容易造成非用户意愿下的拨号或断网操作; 且该数据卡设定了网络的连接 或断开是在一定的旋转范围内, 一旦该范围内的信号出现问题, 用户必须要通过再次 旋转数据卡变换角度以获得最佳信号, 此时通过旋转数据卡拨号上网或断开网络连接 则变得毫无意义, 用户此时不得不通过计算机软件实现网络的连接或断开。 发明内容 本发明提供了一种数据卡的控制方法及数据卡, 以至少解决相关技术中用户在使 用无线数据卡进行拨号上网或断开网络连接时, 用户操作不便以致用户体验效果不佳 的问题。 本发明提供了一种数据卡的控制方法, 包括以下步骤: 根据光电传感器接收的光源发射的光信号, 输出电流; 将所述输出电流与预置电流进行比较, 获取比较结果; 根据所述比较结果和当前数据卡的状态, 控制数据卡进行拨号连接网络或断开网 络连接的操作。 优选地, 所述将输出电流与预置电流进行比较, 获取比较结果具体包括: 判断所述输出电流是否不小于预置电流; 若是, 则输出数据卡状态控制信号。 优选地, 所述根据比较结果和当前数据卡的状态, 控制数据卡进行拨号连接网络 或断开网络连接的操作的步骤具体包括: 若所述比较结果是输出数据卡状态控制信号, 则判断当前数据卡的状态; 若当前 数据卡是拨号连接网络状态, 则控制数据卡执行断开网络连接的操作; 若当前数据卡 是断开网络状态, 则控制数据卡执行拨号连接网络的操作; 若所述比较结果不是输出数据卡状态控制信号, 则数据卡维持当前状态不变。 优选地,所述光电传感器接收的光源发射的光信号通过旋转数据卡的 USB接口控 制光源对光电传感器的光照强度。 优选地, 所述预置电流是旋转数据卡的 USB接口的角度为 60°时的输出电流。 本发明还提供了一种数据卡, 包括: 感光模块, 设置为根据光电传感器接收的光源发射的光信号, 输出电流; 对比模块, 设置为将所述输出电流与预置电流进行比较, 获取比较结果; 控制模块, 设置为根据所述比较结果和当前数据卡的状态, 控制数据卡进行拨号 连接网络或断开网络连接的操作。 优选地, 所述对比模块具体包括: 判断单元, 设置为判断所述输出电流是否不小于预置电流; 输出单元, 设置为在所述输出电流不小于预置电流时,输出数据卡状态控制信号。 优选地, 所述控制模块具体包括: 拨号单元, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据卡的状 态是断开网络连接状态时, 控制数据卡执行拨号连接网络的操作; 还设置为在所述比 较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是拨号连接网络状态时, 继续维持拨号连接网络状态; 断网单元, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据卡的状 态是拨号连接网络状态时, 控制数据卡执行断开网络连接的操作; 还设置为在所述比 较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是断开网络状态时, 继续 维持断开网络连接状态。 优选地,所述光电传感器接收的光源发射的光信号通过旋转数据卡的 USB接口控 制光源对光电传感器的光照强度。 优选地, 所述预置电流是旋转数据卡的 USB接口的角度为 60°时的输出电流。 本发明数据卡的控制方法通过旋转 USB 接口到一个固定角度时将光源发射的光 信号转换为电信号来控制电流输出、 将所述输出电流与预置电流进行比较、 根据比较 结果及数据卡的当前状态进行数据卡状态控制的方法, 实现了灵活、 便捷地控制数据 卡进行拨号上网或断开网络连接的操作, 达到了方便用户使用、 改善用户体验的有益 效果。 附图说明 图 1是本发明数据卡的控制方法一实施例流程示意图; 图 2是本发明数据卡的控制方法中将输出电流与预置电流进行比较, 获取比较结 果一实施例流程示意图; 图 3是本发明数据卡的控制方法中根据比较结果和当前数据卡的状态, 控制数据 卡进行拨号连接网络或断开网络连接的操作一实施例流程示意图; 图 4是本发明数据卡一实施例结构示意图; 图 5是本发明数据卡的组成一实施例结构示意图; 图 6是本发明数据卡中对比模块一实施例结构示意图; 以及 图 7是本发明数据卡中控制模块一实施例结构示意图。 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。 具体实施方式 以下结合说明书附图及具体实施例进一步说明本发明的技术方案。 应当理解, 此 处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。 参照图 1, 图 1是本发明数据卡的控制方法一实施例流程示意图。 如图 1所示, 本发明数据卡的控制方法包括以下步骤: 步骤 S01、 根据光电传感器接收的光源发射的光信号, 输出电流; 在一优选的实施例中, 所述光电传感器采用光敏电阻, 所述光源采用 LED (Light-Emitting Diode, 发光二极管)。 根据光电传感器接收的光源发射的光信号, 输 出电流是利用光敏电阻的工作原理: 当光敏电阻受到光照时, 价带中的电子吸收光子 能量后跃迁到导带, 成为自由电子; 同时在光敏电阻内部产生空穴, 出现电子一空穴 对, 电子一空穴对的出现使所述光敏电阻的电阻率变小。 LED的光照愈强, 光敏电阻 产生的电子一空穴对就越多, 光敏电阻的阻值就愈低。 当光敏电阻两端加上电压后, 流过光敏电阻的电流随光照的增大而增大, 从而得到足够大的电流以保证与预置电流 进行比对, 触发数据卡进行拨号上网或断开网络连接的操作。 在一优选的实施例中, 所述数据卡需要在转轴处于 60°的角度装置光敏电阻元件; 目的是: 当数据卡的 USB接口旋转到 60°的时候, LED光源能够充分照射光敏电阻。 同时, 当用户旋转数据卡的 USB接口到其他的角度时, 不能让光源足够照射光电传感 器, 获取不到足够电流, 则设置不会启动。 因此, 并不影响数据卡的拨号上网或断开 网络连接, 用户可以除 60°角度以外任意调整数据卡, 以便得到更佳的信号。 步骤 S02、 将所述输出电流与预置电流进行比较, 获取比较结果; 当数据卡中的光电传感器受到光源照射时, 数据卡的输出电流也会随着光源照射 强度的变化而变化; 所述预置电流是旋转数据卡的 USB接口的角度为 60°时的输出电 流。 将所述输出电流与预置电流进行比较, 并获取二者的比较结果。 一般在数据卡出厂前, 要预设好其对比电流值, 即预置电流。 在一优选的实施例 中, 所述预置电流的设置方法为: 获取光源在 60°角度足够照射光电传感器时产生的 电流值, 将此电流值作为预置电流的参考值。 在一优选的实施例中, 为增强数据卡的 灵敏度, 所述预置电流也可以稍低于光源在 60°角度足够照射光电传感器时产生的电 流值。 步骤 S03、 根据所述比较结果和当前数据卡的状态, 控制数据卡进行拨号连接网 络或断开网络连接的操作。 根据当前的输出电流和预置电流的比较结果, 结合数据卡的当前状态, 进行数据 卡的拨号上网或断开网络连接操作。 若用户此时正在上网, 假如在用户或者他人在这 个过程中接触到数据卡, 或者由于信号不好, 需要调整数据卡 USB接口的角度让光源 LED与光敏电阻元件充分光照, 只要保持旋转角度不在 60°, 其他任何角度范围内旋 转, 结果都不会影响数据卡的当前联网状态。 如要断网, 只要再次旋转 60°的位置即 可断网。此功能既保留了旋转数据卡接收信号强度的灵活性,又切身从用户角度出发, 防止在使用过程中不小心旋转数据卡带来断网的后果。 本发明数据卡的控制方法通过根据光电传感器接收的光源发射的光信号转换为电 信号输出电流、 将所述输出电流与预置电流进行比较、 根据比较结果及数据卡的当前 状态进行数据卡状态控制的方法, 实现了灵活、 便捷地控制数据卡进行拨号上网或断 开网络连接的操作, 达到了方便用户使用、 改善用户体验的有益效果。 参照图 2, 图 2是本发明数据卡的控制方法中将输出电流与预置电流进行比较, 获取比较结果一实施例流程示意图。 如图 2所示, 本发明数据卡的控制方法中, 将输 出电流与预置电流进行比较, 获取比较结果的步骤具体包括: 步骤 Sll、判断所述输出电流是否不小于预置电流;若是,则执行步骤 S12;若否, 则直接返回结束, 不进行任何操作; 步骤 S12、 输出数据卡状态控制信号。 将数据卡当前的输出电流与预置电流进行比较, 判断所述输出电流是否大于或等 于预置电流。 若输出电流大于或等于预置电流, 则输出数据卡状态控制信号。 在一优选的实施例中, 所述数据卡状态控制信号为数字信号, 数据卡拨号上网状 态为 1,数据卡断开网络连接状态为 0;数据卡将自身状态的模拟信号转换为数字信号 输出。 本发明数据卡的控制方法通过将输出电流与预置电流进行比较、 获取比较结果的 方法, 实现了灵活、 便捷地控制数据卡进行拨号上网或断开网络连接的操作, 达到了 方便用户使用、 改善用户体验的有益效果。 参照图 3, 图 3是本发明数据卡的控制方法中根据比较结果和当前数据卡的状态, 控制数据卡进行拨号连接网络或断开网络连接的操作一实施例流程示意图。 如图 3所 示, 本发明数据卡的控制方法中, 根据比较结果和当前数据卡的状态, 控制数据卡进 行拨号连接网络或断开网络连接的操作的步骤包括: 步骤 S21、判断比较结果是否为输出数据卡状态控制信号;若是,则执行步骤 S23 ; 若否, 则执行步骤 S22; 步骤 S22、 数据卡维持当前状态不变; 若数据卡当前的输出电流与预置电流的比较结果是输出数据卡状态控制信号, 则 结合数据卡当前状态进行下一步操作; 若数据卡当前的输出电流与预置电流的比较结 果不是输出数据卡状态控制信号, 则数据卡维持当前状态不变。 步骤 S23、 判断当前数据卡的状态是否为拨号上网状态; 若当前数据卡的状态是 拨号上网状态, 则执行步骤 S24; 若当前数据卡的状态不是拨号上网状态, 则执行步 骤 S25 ; 步骤 S24、 控制数据卡执行断开网络连接的操作; 步骤 S25、 控制数据卡执行拨号连接网络的操作。 数据卡当前的输出电流与预置电流的比较结果是输出数据卡状态控制信号时, 则 读取数据卡存储器存储的当前数据卡的状态, 若当前数据卡的状态是拨号上网状态, 则数据卡执行断开网络连接操作; 若当前数据卡的状态是断开网络连接状态, 则数据 卡执行拨号连接网络操作。 本发明数据卡的控制方法通过根据比较结果和当前数据卡的状态, 进行数据卡的 拨号连接网络或断开网络连接的方法, 实现了灵活、 便捷地控制数据卡进行拨号上网 或断开网络连接的操作, 达到了方便用户使用、 改善用户体验的有益效果。 参照图 4, 图 4是本发明数据卡一实施例结构示意图。 如图 4所示, 本发明数据 卡包括- 感光模块 01, 设置为根据光电传感器接收的光源发射的光信号, 输出电流; 对比模块 02, 设置为将所述输出电流与预置电流进行比较, 获取比较结果; 控制模块 03, 设置为根据所述比较结果和当前数据卡的状态, 控制数据卡进行拨 号连接网络或断开网络连接的操作。 本发明数据卡包括数据卡壳体和设置在所述数据卡壳体内部的数据卡主板, 主板 上安装有光源 LED、数据卡芯片 CPU (Central Processing Unit, 中央处理器)、存储器、 旋转 USB接口、 光电传感器即光敏电阻。 参照图 5, 图 5是本发明数据卡的组成一实 施例结构示意图。 如图 5所示, 所述数据卡具有可旋转角度的 USB接口, 与电脑连接 后, 所述数据卡可以旋转角度控制数据卡拨号连接网络或断开网络连接; 把光敏电阻 安装在旋转 USB接口内, 使成一定角度并与主板相连; 在一优选的实施例中, 所述光 敏电阻安装在 USB接口转轴处于 60°的角度; LED安装在旋转 USB接口处的主板上, 保证光源可以充足照射旋转接口处的光敏电阻。 当感光模块 01中的 LED对准光敏电阻进行照射时, 光敏电阻产生足够大电流, 对比模块 02将所述输出电流与预置电流进行比较, 获取比较结果;通过存储器获取当 前数据卡工作状态, 并结合对比模块 02获取的所述输出电流与预置电流的比较结果, 数据卡控制模块 03中的主板芯片 CPU控制数据卡进行拨号连接网络或断开网络连接 操作。 本发明数据卡通过根据光电传感器接收的光源发射的光信号转换为电信号输出电 流、 将所述输出电流与预置电流进行比较、 根据比较结果及数据卡的当前状态进行数 据卡状态控制的方法, 实现了灵活、 便捷地控制数据卡进行拨号上网或断开网络连接 的操作, 达到了方便用户使用、 改善用户体验的有益效果。 参照图 6, 图 6是本发明数据卡中对比模块一实施例结构示意图。 如图 6所示, 本发明数据卡中, 对比模块 02具体包括: 判断单元 021, 设置为判断所述输出电流是否不小于预置电流; 输出单元 022, 设置为在所述输出电流不小于预置电流时, 输出数据卡状态控制 信号。 判断单元 021将数据卡当前的输出电流与预置电流进行比较, 判断所述输出电流 是否大于或等于预置电流。 若数据卡当前的输出电流大于或等于预置电流, 输出单元 022 则输出数据卡状态控制信号。 若数据卡当前的输出电流小于预置电流, 输出单元 022 则不输出数据卡状态控制信号。 在一优选的实施例中, 所述数据卡状态控制信号 为数字信号, 数据卡拨号上网状态为 1, 数据卡断开网络连接状态为 0; 数据卡将自身 状态的模拟信号转换为数字信号输出。 本发明数据卡通过将输出电流与预置电流进行比较、 获取比较结果的方法, 实现 了灵活、 便捷地控制数据卡进行拨号上网或断开网络连接的操作, 达到了方便用户使 用、 改善用户体验的有益效果。 参照图 7, 图 7是本发明数据卡中控制模块一实施例结构示意图。 如图 7所示, 本发明数据卡中, 控制模块 03具体包括: 拨号单元 031, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据卡 的状态是断开网络连接状态时, 控制数据卡执行拨号连接网络的操作; 还设置为在所 述比较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是拨号连接网络状态 时, 继续维持拨号连接网络状态; 断网单元 032, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据卡 的状态是拨号连接网络状态时, 控制数据卡执行断开网络连接的操作; 还设置为在所 述比较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是断开网络状态时, 继续维持断开网络连接状态。 若对比模块 02 中数据卡当前的输出电流与预置电流的比较结果是输出数据卡状 态控制信号, 则读取数据卡存储器存储的当前数据卡的状态; 若当前数据卡的状态是 拨号上网状态, 断网单元 032执行断开网络连接操作; 若当前数据卡的状态是断开网 络连接状态, 拨号单元 031执行拨号连接网络操作。 若对比模块 02 中数据卡当前的输出电流与预置电流的比较结果不是输出数据卡 状态控制信号, 则数据卡维持当前状态不变, 即若当前数据卡的状态是断开网络状态 时, 断网单元 032继续维持数据卡的断开网络连接状态; 若当前数据卡的状态是拨号 连接网络状态, 拨号单元 031继续维持数据卡的拨号连接网络状态。 本发明数据卡通过根据比较结果和当前数据卡的状态, 进行数据卡的拨号连接网 络或断开网络连接的方法, 实现了灵活、 便捷地控制数据卡进行拨号上网或断开网络 连接的操作, 达到了方便用户使用、 改善用户体验的有益效果。 本发明实施例数据卡的控制方法及数据卡通过旋转 USB 接口到一个固定角度时 将光源发射的光信号转换为电信号来控制电流输出、 将所述输出电流与预置电流进行 比较、 根据比较结果及数据卡的当前状态进行数据卡状态控制的方法, 实现了灵活、 便捷地控制数据卡进行拨号上网或断开网络连接的操作, 达到了方便用户使用、 改善 用户体验的有益效果。 以上所述仅为本发明的优选实施例, 并非因此限制其专利范围, 凡是利用本发明 说明书及附图内容所作的等效结构或等效流程变换, 直接或间接运用在其他相关的技 术领域, 均同理包括在本发明的专利保护范围内。

Claims

权 利 要 求 书 、 一种数据卡的控制方法, 包括以下步骤:
根据光电传感器接收的光源发射的光信号, 输出电流;
将所述输出电流与预置电流进行比较, 获取比较结果;
根据所述比较结果和当前数据卡的状态, 控制数据卡执行拨号连接网络或 断开网络连接的操作。 、 根据权利要求 1所述的数据卡的控制方法, 其中, 所述将输出电流与预置电流 进行比较, 获取比较结果具体包括:
判断所述输出电流是否不小于预置电流;
若是, 则输出数据卡状态控制信号。 、 根据权利要求 1或 2所述的数据卡的控制方法, 其中, 所述根据比较结果和当 前数据卡的状态, 控制数据卡执行拨号连接网络或断开网络连接的操作的步骤 具体包括:
若所述比较结果是输出数据卡状态控制信号, 则判断当前数据卡的状态; 若当前数据卡是拨号连接网络状态, 则控制数据卡执行断开网络连接的操作; 若当前数据卡是断开网络状态, 则控制数据卡执行拨号连接网络的操作;
若所述比较结果不是输出数据卡状态控制信号, 则数据卡维持当前状态不 变。 、 根据权利要求 1所述的数据卡的控制方法, 其中, 所述光电传感器接收的光源 发射的光信号通过旋转数据卡的 USB接口控制光源对光电传感器的光照强度。 、 根据权利要求 1或 4所述的数据卡的控制方法, 其中, 所述预置电流是旋转数 据卡的 USB接口的角度为 60°时的输出电流。 、 一种数据卡, 包括:
感光模块, 设置为根据光电传感器接收的光源发射的光信号, 输出电流; 对比模块, 设置为将所述输出电流与预置电流进行比较, 获取比较结果; 控制模块, 设置为根据所述比较结果和当前数据卡的状态, 控制数据卡执 行拨号连接网络或断开网络连接的操作。 、 根据权利要求 6所述的数据卡, 其中, 所述对比模块具体包括:
判断单元, 设置为判断所述输出电流是否不小于预置电流;
输出单元, 设置为在所述输出电流不小于预置电流时, 输出数据卡状态控 制信号。 、 根据权利要求 6或 7所述的数据卡, 其中, 所述控制模块具体包括:
拨号单元, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据 卡的状态是断开网络连接状态时, 控制数据卡执行拨号连接网络的操作; 还设 置为在所述比较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是拨 号连接网络状态时, 继续维持拨号连接网络状态;
断网单元, 设置为在所述比较结果是输出数据卡状态控制信号且当前数据 卡的状态是拨号连接网络状态时, 控制数据卡执行断开网络连接的操作; 还设 置为在所述比较结果不是输出数据卡状态控制信号, 且当前数据卡的状态是断 开网络状态时, 继续维持断开网络连接状态。 、 根据权利要求 6所述的数据卡, 其中, 所述光电传感器接收的光源发射的光信 号通过旋转数据卡的 USB接口控制光源对光电传感器的光照强度。 0、 根据权利要求 6或 9所述的数据卡, 其中, 所述预置电流是旋转数据卡的 USB 接口的角度为 60°时的输出电流。
PCT/CN2012/076839 2012-03-06 2012-06-13 数据卡的控制方法及数据卡 WO2013131334A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210057029.4 2012-03-06
CN201210057029 2012-03-06

Publications (1)

Publication Number Publication Date
WO2013131334A1 true WO2013131334A1 (zh) 2013-09-12

Family

ID=49115907

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076839 WO2013131334A1 (zh) 2012-03-06 2012-06-13 数据卡的控制方法及数据卡

Country Status (2)

Country Link
CN (1) CN103312521B (zh)
WO (1) WO2013131334A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357748B (zh) * 2014-08-22 2021-01-08 中兴通讯股份有限公司 一种数据卡控制方法、装置及数据卡

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895399A (zh) * 2010-07-21 2010-11-24 华为终端有限公司 数据卡的控制方法及数据卡
CN102111139A (zh) * 2009-12-23 2011-06-29 竞陆电子(昆山)有限公司 光电脚控开关
WO2011131147A1 (zh) * 2010-04-23 2011-10-27 华为终端有限公司 一种无线上网模块、用户终端和无线通信方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102196A (zh) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 一种无线数据卡及对其输出功率进行控制的方法
CN101527003A (zh) * 2009-04-10 2009-09-09 深圳华为通信技术有限公司 一种数据卡及数据卡的供电方法
CN102033594B (zh) * 2010-10-15 2013-10-09 华为终端有限公司 终端设备的输入电流控制方法、装置及终端设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111139A (zh) * 2009-12-23 2011-06-29 竞陆电子(昆山)有限公司 光电脚控开关
WO2011131147A1 (zh) * 2010-04-23 2011-10-27 华为终端有限公司 一种无线上网模块、用户终端和无线通信方法
CN101895399A (zh) * 2010-07-21 2010-11-24 华为终端有限公司 数据卡的控制方法及数据卡

Also Published As

Publication number Publication date
CN103312521A (zh) 2013-09-18
CN103312521B (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
CN101141354B (zh) 选择接入移动网络或者无线局域网的装置
US20140247764A1 (en) Method of Operating a Communication Device Operable in an Active Mode and in an Idle Mode, a Computer Program Product for Executing the Method, and the Communication Device Operable in an Active Mode and in an Idle Mode
JP7157146B2 (ja) ローカルネットワークへの自動保全されたリモートアクセスのためのシステム
WO2013060237A1 (zh) 一种移动终端接入网络的方法及系统
WO2014023259A1 (zh) 多功能智能终端及其能量管理方法
CN203521785U (zh) 智能电源插座及控制系统
WO2013131334A1 (zh) 数据卡的控制方法及数据卡
TW201445928A (zh) 異質無線網路整合傳輸之閘道裝置
TW200817886A (en) Computer system combining web-phone
WO2011050708A1 (zh) 鼠标装置及无线网络接入方法
CN204733179U (zh) 一种多功能智能网关
CN201699815U (zh) 电视机机顶盒
CN107666421A (zh) 一种微型嵌入式设备、智能家电及其实现方法
CN106639840B (zh) 触控窗帘和窗帘控制系统
TW200849020A (en) Wireless synchronizing bridging device, wireless synchronizing bridging system and wireless synchronizing bridging method
CN211152084U (zh) 物联网远程视频监控系统
CN206004913U (zh) 一种多端无线接口网关
TWI469053B (zh) 電子裝置及其啟動方法
CN214256331U (zh) 一种远程配置网络设备的串口服务器
CN203399300U (zh) 多制式无线语音网关
CN208369619U (zh) 一种桌面插座用无线路由器模块
TWI324490B (en) Cradle wireless network device with charging module
CN219203611U (zh) 一种防冻效果好的防水电源线
CN203327042U (zh) 一种融合家庭网关
CN2566536Y (zh) 电力路由器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12870887

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12870887

Country of ref document: EP

Kind code of ref document: A1