WO2015117366A1 - Data card control method and device, and data card - Google Patents

Data card control method and device, and data card Download PDF

Info

Publication number
WO2015117366A1
WO2015117366A1 PCT/CN2014/088859 CN2014088859W WO2015117366A1 WO 2015117366 A1 WO2015117366 A1 WO 2015117366A1 CN 2014088859 W CN2014088859 W CN 2014088859W WO 2015117366 A1 WO2015117366 A1 WO 2015117366A1
Authority
WO
WIPO (PCT)
Prior art keywords
data card
photoresistor
value
parallel
power
Prior art date
Application number
PCT/CN2014/088859
Other languages
French (fr)
Chinese (zh)
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 WO2015117366A1 publication Critical patent/WO2015117366A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings

Definitions

  • the second setting range corresponds to a dial-up connection network

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

A data card control method and device, and a data card. The method comprises: according to a rotation position of a data card, obtaining an output power value of a measurement object corresponding to the rotation position; comparing the power value with a pre-set power reference value to obtain a comparison result; and according to the comparison result, controlling the data card to change a network connection state thereof. The device comprises: a power acquisition module configured to obtain, according to a rotation position of a data card, an output power value of a measurement object corresponding to the rotation position; a comparison result acquisition module configured to compare the power value with a pre-set power reference value to obtain a comparison result; and a network connection state change module configured to control the data card to change a network connection state thereof according to the comparison result. The data card comprises the data card control device.

Description

一种数据卡控制方法、装置及数据卡Data card control method, device and data card 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据卡控制方法、装置及数据卡。The present invention relates to the field of communications technologies, and in particular, to a data card control method, apparatus, and data card.
背景技术Background technique
随着移动通信技术的飞速发展,移动通信网络从2G发展到4G,网络种类越来越多。无线数据卡以携带方便、兼容性强等特点逐渐被广泛使用。无线数据卡可在任何一款带外接数据接口的台式计算机或笔记本电脑上使用,不但具有无线上网功能,同时还具有手机的功能,在未来以LTE(Long Term Evolution,长期演进)乃至4G为主导的网络通信中,无线数据卡将会充分发挥其巨大的优势。With the rapid development of mobile communication technologies, mobile communication networks have evolved from 2G to 4G, and there are more and more types of networks. Wireless data cards are widely used because of their portability and compatibility. The wireless data card can be used on any desktop computer or laptop with an external data interface. It has wireless Internet access and mobile phone functions. It will be dominated by LTE (Long Term Evolution) and even 4G in the future. In the network communication, the wireless data card will give full play to its huge advantages.
现有技术中,无线上网的拨号方式主要有IP(Internet Protocol,互联网协议)拨号和PPP(Point to Point Protocol,点对点通讯协议)拨号两种。无论用户采用哪种方式进行拨号上网,在使用无线数据卡进行拨号上网或断开网络连接时,都需使用电脑的后台软件进行操作;这给用户的操作带来了极大的不便,用户体验效果不佳。现有技术中,有些数据卡可通过旋转数据卡控制拨号或断开网络连接,这些数据卡通过改变数据卡的位置改变两端输出电压或输出电流,通过数据卡的输出电压或输出电流的改变控制数据卡拨号连接网络或断开网络连接,改善了用户体验,但数据卡本身两端输出电压和电流本身就比较小,单独通过改变电压或电流控制数据卡的连接或断开导致数据卡的拨号或断开行为难以准确控制。In the prior art, the dialing methods of the wireless Internet mainly include IP (Internet Protocol) dialing and PPP (Point to Point Protocol) dialing. No matter which method the user uses for dial-up Internet access, when using a wireless data card for dial-up or disconnected from the network, you need to use the background software of the computer to operate; this brings great inconvenience to the user's operation, user experience. not effectively. In the prior art, some data cards can control dialing or disconnecting network connections by rotating data cards. These data cards change the output voltage or output current of both ends by changing the position of the data card, and the output voltage or output current of the data card changes. Control the data card dial-up connection network or disconnect the network connection, improving the user experience, but the output voltage and current of the data card itself are relatively small, and the data card is controlled by changing the voltage or current to control the connection or disconnection of the data card. Dialing or disconnecting behavior is difficult to control accurately.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种数据卡控制方法、装置及数据卡,能够更为准确地控制数据卡拨号上网或断开网络连接的操作。In view of this, the embodiments of the present invention provide a data card control method, apparatus, and data card, which can more accurately control the operation of dialing or disconnecting a network card from a data card.
基于上述目的本发明实施例提供的数据卡控制方法,包括如下步骤: The data card control method provided by the embodiment of the present invention includes the following steps:
根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;Obtaining an output power value corresponding to the rotation position according to a rotation position of the data card;
将所述输出功率值与预设的功率参考范围进行比较,获得比较结果;Comparing the output power value with a preset power reference range to obtain a comparison result;
根据所述比较结果控制所述数据卡,使其处于输出功率值所在的功率参考范围所对应的网络连接状态。And controlling, according to the comparison result, the data card to be in a network connection state corresponding to a power reference range in which the output power value is located.
可选的,Optional,
所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。可选的,所述数据卡与连接该数据卡的通用串行总线(Universal Serial Bus,USB)接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的输出功率值。The network connection status includes: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network. Optionally, a photoelectric sensor is disposed between the data card and a universal serial bus (USB) interface connected to the data card, and the output power value corresponding to the rotational position is obtained by the photoelectric sensor.
可选的,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB接口之间有串联光敏电阻;且所述数据卡与连接该数据卡的USB接口之间有并联光敏电阻;根据数据卡的旋转位置、获得所述旋转位置对应的功率值的步骤具体包括:Optionally, the photosensor is a photoresistor, and the data card and the USB interface connected to the data card have a series photoresistor; and the data card and the USB interface connected to the data card have a parallel photoresistor The step of obtaining the power value corresponding to the rotation position according to the rotation position of the data card specifically includes:
根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;并根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;Obtaining an output current value according to a rotational position of the current data card with respect to an axis parallel to the parallel photosensitive resistor; and obtaining an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
根据所述电流值和电压值,获取所述功率值。The power value is obtained according to the current value and the voltage value.
本发明实施例还提供一种数据卡的控制装置,包括:The embodiment of the invention further provides a data card control device, including:
功率获取模块,其设置为:根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;a power acquisition module, configured to: obtain an output power value corresponding to the rotation position according to a rotation position of the data card;
比较结果获取模块,其设置为:将所述输出功率范围与预设的功率参考值进行比较,获得比较结果;a comparison result obtaining module, configured to: compare the output power range with a preset power reference value, and obtain a comparison result;
网络连接状态改变模块,其设置为:根据所述比较结果控制所述数据卡,使其处于输出功率值所在的功率参考范围所对应的网络连接状态。The network connection state changing module is configured to: control the data card according to the comparison result to be in a network connection state corresponding to a power reference range in which the output power value is located.
可选的,所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。Optionally, the network connection status includes: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network.
可选的,所述数据卡与连接该数据卡的USB接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的测量对象输出功率值。Optionally, a photoelectric sensor is disposed between the data card and the USB interface connected to the data card, and the measured object output power value corresponding to the rotational position is obtained by the photoelectric sensor.
可选的,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB 接口之间有串联光敏电阻;且所述数据卡与连接该数据卡的USB接口之间有并联光敏电阻;所述功率获取模块包括:Optionally, the photosensor is a photoresistor, and the data card and the USB connected to the data card There is a series photoresistor between the interfaces; and a parallel photoresistor is connected between the data card and the USB interface connected to the data card; the power acquisition module includes:
电流值获取单元,其设置为:根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;a current value acquisition unit configured to obtain an output current value according to a rotational position of a current data card with respect to an axis parallel to the parallel photosensitive resistor;
电压值获取单元,其设置为:根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;a voltage value obtaining unit configured to obtain an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
功率计算单元,其设置为:根据所述电流值和电压值,获取所述功率值。And a power calculation unit configured to acquire the power value according to the current value and the voltage value.
本发明实施例提供一种数据卡,包括本发明任意一项实施例所提供的数据卡控制装置。An embodiment of the present invention provides a data card, including the data card control apparatus provided by any one of the embodiments of the present invention.
本发明实施例还提供一种数据卡,包括串联光敏电阻、并联光敏电阻、旋转轴、卡本体;所述串联光敏电阻、并联光敏电阻分别用于串联、并联连接在所述卡本体和连接所述数据卡的USB接口之间;所述卡本体连接所述旋转轴,所述卡本体围绕旋转轴旋转时,所述串联光敏电阻、并联光敏电阻的电阻值改变,使得数据卡中测量对象两端的输出功率随着所述数据卡位置改变而改变;The embodiment of the present invention further provides a data card, including a series photoresistor, a parallel photoresistor, a rotating shaft, and a card body; the series photoresistor and the parallel photoresistor are respectively connected in series and in parallel to the card body and the connection station. Between the USB interfaces of the data card; the card body is connected to the rotating shaft, and when the card body rotates around the rotating shaft, the resistance values of the series photoresistor and the parallel photoresistor are changed, so that the measuring objects in the data card are two The output power of the terminal changes as the data card position changes;
其中,所述输出功率用于与预设的功率参考范围进行比较,获得控制所述数据卡、使所述数据卡处于输出功率值所在的功率参考范围所对应的网络连接状态时所依据的比较结果。The output power is used for comparison with a preset power reference range, and the comparison is based on obtaining a network connection state corresponding to a power reference range in which the data card is in a power reference range in which the data card is located. result.
从上面所述可以看出,本发明实施例所提供的数据卡控制方法、装置及数据卡,采用功率值控制数据卡改变其网络连接状态。由于功率为电压和电流的乘积,电压与电流同时变化相同的数值时,会引起功率值发生更大的改变,因此数据卡控制精度得到提高。本发明实施例所提供的数据卡控制方法、装置及数据卡还可以控制数据卡连接不同种类的网络、或处于自动选网模式、或断开网络连接,提高数据卡工作的可控性,降低数据卡工作负荷。It can be seen from the above that the data card control method, device and data card provided by the embodiments of the present invention use the power value control data card to change the network connection state. Since the power is the product of voltage and current, when the voltage and current change at the same value at the same time, the power value will be changed more, so the data card control accuracy is improved. The data card control method, device and data card provided by the embodiments of the present invention can also control the data card to connect to different types of networks, or in the automatic network selection mode, or disconnect the network connection, improve the controllability of the data card work, and reduce Data card workload.
附图概述BRIEF abstract
图1为本发明实施例的数据卡控制方法流程示意图;1 is a schematic flowchart of a data card control method according to an embodiment of the present invention;
图2为本发明一种实施例的数据卡本体与光电传感器连接示意图;2 is a schematic diagram of connection between a data card body and a photoelectric sensor according to an embodiment of the present invention;
图3为本发明实施例的数据卡控制装置结构示意图。 FIG. 3 is a schematic structural diagram of a data card control apparatus according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明实施例提供一种数据卡控制方法,包括如图1所示的步骤:An embodiment of the present invention provides a data card control method, including the steps shown in FIG. 1:
步骤101:根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;Step 101: Obtain an output power value corresponding to the rotation position according to a rotation position of the data card;
步骤102:将所述输出功率值与预设的功率参考范围进行比较,获得比较结果;Step 102: Compare the output power value with a preset power reference range to obtain a comparison result.
步骤103:根据所述比较结果控制所述数据卡,使其处于输出功率值所在的功率参考范围所对应的网络连接状态。Step 103: Control the data card according to the comparison result to be in a network connection state corresponding to a power reference range in which the output power value is located.
从上面所述可以看出,本发明实施例所提供的数据卡控制方法,采用功率值控制数据卡改变其网络连接状态。由于功率为电压和电流的乘积,电压与电流同时变化相同的数值时,会引起功率值发生更大的改变。从而,通过本发明实施例的数据卡控制方法,可提高控制精度以及控制的准确性。As can be seen from the above, the data card control method provided by the embodiment of the present invention uses a power value control data card to change its network connection status. Since the power is the product of voltage and current, when the voltage and current change at the same value at the same time, a larger change in the power value is caused. Therefore, the control accuracy and the accuracy of the control can be improved by the data card control method of the embodiment of the present invention.
在具体实施例中,所述测量对象指数据卡,当检测到数据卡两端输出功率发生变化时,说明数据卡位置发生变化,则根据数据卡的当前所旋转到的位置,获得所述旋转位置处所述数据卡两端的输出功率值。In a specific embodiment, the measurement object refers to a data card. When it is detected that the output power of the data card changes, indicating that the position of the data card changes, the rotation is obtained according to the current position of the data card. The output power value at both ends of the data card at the location.
在具体实施例中,所述测量对象也可以指与所述数据卡并联的电阻和串联的电阻。当检测到所述并联电阻和串联电阻两端的输出功率发生变化时,说明数据卡位置发生变化,则根据数据卡的当前所旋转到的位置,获得所述旋转位置处所述并联电阻和串联电阻两端的输出功率值。In a particular embodiment, the measurement object may also refer to a resistor in parallel with the data card and a resistor in series. When it is detected that the output power of the parallel resistance and the series resistance changes, indicating that the data card position changes, the parallel resistance and the series resistance at the rotation position are obtained according to the current rotation position of the data card. The output power value at both ends.
随着4G技术的飞速发展,4G数据业务将会成为无线通讯的数据传输的主导。用户在使用移动通信业务的过程中,也会面临越来越多不同种类网络共存的环境。当2G、3G、4G网络同时存在时,数据卡一般都是自动根据网络信号强度,自动切换网络。在几种网络共存,而且网络信号强度出现临界值、两种网络强度相当的地方,可能会出现两种网络反复切换,断网,重新连接的等现象,将会带来数据卡额外的功耗并且影响用户体验。 With the rapid development of 4G technology, 4G data services will become the dominant data transmission of wireless communication. In the process of using mobile communication services, users will also face an environment in which more and more different types of networks coexist. When 2G, 3G, and 4G networks exist at the same time, the data card generally automatically switches the network according to the strength of the network signal. In the case where several networks coexist, and the network signal strength has a critical value and the strength of the two networks is equivalent, there may be repeated switching, disconnection, and reconnection of the two networks, which will bring additional power consumption to the data card. And affect the user experience.
有鉴于此,在本发明的一些实施例中,In view of this, in some embodiments of the invention,
所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。The network connection status includes: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network.
可选的,所述至少两种不同的网络包括2G网络、3G网络、4G网络。具体的,所述至少两种不同的网络可以包括全球移动通信系统(Global System for Mobile Communication,GSM)网络、增强型数据速率GSM演进(Enhanced Data Rate for GSM Evolution,EDGE)网络、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)网络、长期演进(Long Term Evolution,LTE)网络等。Optionally, the at least two different networks include a 2G network, a 3G network, and a 4G network. Specifically, the at least two different networks may include a Global System for Mobile Communication (GSM) network, an Enhanced Data Rate for GSM Evolution (EDGE) network, and a wideband code division. Wideband Code Division Multiple Access (WCDMA) network, Long Term Evolution (LTE) network, etc.
所述预设的功率参考范围可以包括六个不同的范围,分别为第一设定范围、第二设定范围、第三设定范围、第四设定范围、第五设定范围以及第六设定范围。The preset power reference range may include six different ranges, which are a first setting range, a second setting range, a third setting range, a fourth setting range, a fifth setting range, and a sixth Predetermined area.
所述预设的所述设定范围与网络连接状态的对应关系包括:The corresponding relationship between the preset setting range and the network connection status includes:
第一设定范围对应于断开网络连接;The first setting range corresponds to disconnecting the network connection;
第二设定范围对应于拨号连接网络;The second setting range corresponds to a dial-up connection network;
第三设定范围对应于连接2G网络;The third setting range corresponds to connecting to the 2G network;
第四设定范围对应于连接3G网络;The fourth setting range corresponds to connecting to the 3G network;
第五设定范围对应于连接4G网络;The fifth setting range corresponds to connecting to the 4G network;
第六设定范围对应于自动选网状态;The sixth setting range corresponds to an automatic network selection state;
所述第一设定范围与第二设定范围不重叠;所述第二设定范围包含第三设定范围、第四设定范围、第五设定范围以及第六设定范围。The first setting range does not overlap with the second setting range; the second setting range includes a third setting range, a fourth setting range, a fifth setting range, and a sixth setting range.
可选的:当所述比较结果指示所述功率值从非第一设定范围变化到第一设定范围时,控制数据卡断开网络连接;Optionally, when the comparison result indicates that the power value changes from a non-first setting range to a first setting range, the control data card disconnects the network connection;
当所述比较结果指示所述功率值从非第二设定范围变化到第二设定范围时,控制数据卡拨号连接网络;Controlling the data card dial-up connection network when the comparison result indicates that the power value changes from the non-second setting range to the second setting range;
当所述比较结果指示所述功率值从非第三设定范围变化到第三设定范围时,控制数据卡连接2G网络;When the comparison result indicates that the power value changes from a non-third setting range to a third setting range, the control data card is connected to the 2G network;
当所述比较结果指示所述功率值从非第四设定范围变化到第四设定范围时,控制数据卡连接3G网络; When the comparison result indicates that the power value changes from a non-fourth setting range to a fourth setting range, the control data card is connected to the 3G network;
当所述比较结果指示所述功率值从非第五设定范围变化到第五设定范围时,控制数据卡连接4G网络;When the comparison result indicates that the power value changes from a non-fifth setting range to a fifth setting range, the control data card is connected to the 4G network;
当所述比较结果指示所述功率值从非第六设定范围变化到第六设定范围时,控制数据卡进入自动选网模式。When the comparison result indicates that the power value changes from the non-sixth setting range to the sixth setting range, the control data card enters the automatic network selection mode.
在本发明的一些实施例中,所述数据卡与连接该数据卡的USB接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的测量对象输出功率值。In some embodiments of the present invention, a photosensor is disposed between the data card and a USB interface connected to the data card, and the measured object output power value corresponding to the rotational position is obtained by the photoelectric sensor.
在本发明的一些实施例中,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB接口之间串联有串联光敏电阻;且所述数据卡与连接该数据卡的USB接口之间并联有并联光敏电阻;根据数据卡的旋转位置、获得所述旋转位置对应的功率值的步骤具体包括:In some embodiments of the present invention, the photosensor is a photoresistor, and a series photoresistor is connected in series between the data card and a USB interface connected to the data card; and the data card and a USB interface connected to the data card A parallel photosensitive resistor is connected in parallel; the step of obtaining the power value corresponding to the rotational position according to the rotational position of the data card comprises:
根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;并根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;Obtaining an output current value according to a rotational position of the current data card with respect to an axis parallel to the parallel photosensitive resistor; and obtaining an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
根据所述电流值和电压值,获取所述功率值。The power value is obtained according to the current value and the voltage value.
图2为本发明一种实施例的串联光敏电阻和并联光敏电阻与数据卡连接示意图。当数据卡围绕短轴旋转时,改变串联光敏电阻的遮光度,改变串联光敏电阻的电阻值以及数据卡两端的输出电压值。当数据卡围绕其长轴旋转时,改变并联光敏电阻的遮光度,改变并联光敏电阻的电阻值以及数据卡两端的输入输出电流值。从而通过将数据卡旋转到不同位置,即可改变数据卡的输出功率值。2 is a schematic diagram showing the connection of a series photoresistor and a parallel photoresistor to a data card according to an embodiment of the present invention. When the data card rotates around the short axis, the shading degree of the series photoresistor is changed, and the resistance value of the series photoresistor and the output voltage value across the data card are changed. When the data card rotates around its long axis, the shading degree of the parallel photoresistor is changed, and the resistance value of the parallel photoresistor and the input and output current values at both ends of the data card are changed. Thus, by rotating the data card to a different location, the output power value of the data card can be changed.
在一种具体实施例中,当数据卡旋转到特定位置时,所述串联光敏电阻和并联光敏电阻能够获得充分的光照,可将数据卡位于该特定位置的输出功率作为一个临界值,例如,将接近数据卡最大输出功率值的功率范围作为第一设定范围,其余功率可调范围作为第二设定功率范围;即,第一设定范围为A-最大功率值,第二设定范围为0-A。由于同时改变数据卡输出电压和电流值时,功率值会呈现比输出电压或输出电流更大程度的改变,因此数据卡调整的灵敏度提高,可在数据卡可调范围内存在多个设定范围,增加数据卡可调状态的数目。也就是说,当数据卡的灵敏度低时,仅适合设置拨号连接 网络和断开网络连接这两种网络连接状态;当数据卡的灵敏度提高,可控制数据卡连接不同的网络、自动选网、或断开网络连接等。In a specific embodiment, when the data card is rotated to a specific position, the series photoresistor and the parallel photoresistor can obtain sufficient illumination, and the output power of the data card at the specific position can be used as a critical value, for example, The power range close to the maximum output power value of the data card is taken as the first setting range, and the remaining power adjustable range is taken as the second set power range; that is, the first setting range is A-maximum power value, and the second setting range Is 0-A. Since the output voltage and current value of the data card are changed at the same time, the power value will change more than the output voltage or the output current, so the sensitivity of the data card adjustment is improved, and there are multiple setting ranges within the adjustable range of the data card. Increase the number of adjustable states of the data card. In other words, when the sensitivity of the data card is low, it is only suitable for setting up a dial-up connection. Network and disconnected network connection two network connection status; when the sensitivity of the data card is increased, the data card can be controlled to connect to different networks, automatically select the network, or disconnect the network.
本发明实施例提供一种数据卡控制装置,结构如图3所示,包括:The embodiment of the invention provides a data card control device. The structure is as shown in FIG. 3, and includes:
功率获取模块,其设置为:根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;a power acquisition module, configured to: obtain an output power value corresponding to the rotation position according to a rotation position of the data card;
比较结果获取模块,其设置为:将所述输出功率范围与预设的功率参考值进行比较,获得比较结果;a comparison result obtaining module, configured to: compare the output power range with a preset power reference value, and obtain a comparison result;
网络连接状态改变模块,其设置为:根据所述比较结果控制所述数据卡,使其处于输出功率值所在的功率参考范围所对应的网络连接状态。The network connection state changing module is configured to: control the data card according to the comparison result to be in a network connection state corresponding to a power reference range in which the output power value is located.
从上面所述可以看出,本发明实施例提供的数据卡控制装置,通过获取测量对象的输出功率控制数据卡连接网络的状态,使得用户可采用灵活便捷的方式对数据卡的工作状态进行控制,提高了数据卡控制的灵敏度,并减轻了数据卡的工作负荷。As can be seen from the above, the data card control apparatus provided by the embodiment of the present invention controls the state of the data card connection network by acquiring the output power of the measurement object, so that the user can control the working state of the data card in a flexible and convenient manner. Improves the sensitivity of data card control and reduces the workload of the data card.
在本发明的一些实施例中,所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。In some embodiments of the invention, the network connection status comprises: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network.
所述预设的所述设定范围与网络连接状态的对应关系包括:The corresponding relationship between the preset setting range and the network connection status includes:
第一设定范围对应于断开网络连接;The first setting range corresponds to disconnecting the network connection;
第二设定范围对应于拨号连接网络;The second setting range corresponds to a dial-up connection network;
第三设定范围对应于连接2G网络;The third setting range corresponds to connecting to the 2G network;
第四设定范围对应于连接3G网络;The fourth setting range corresponds to connecting to the 3G network;
第五设定范围对应于连接4G网络;The fifth setting range corresponds to connecting to the 4G network;
第六设定范围对应于自动选网状态;The sixth setting range corresponds to an automatic network selection state;
所述第一设定范围与第二设定范围不重叠;所述第二设定范围包含第三设定范围、第四设定范围、第五设定范围以及第六设定范围。The first setting range does not overlap with the second setting range; the second setting range includes a third setting range, a fourth setting range, a fifth setting range, and a sixth setting range.
在本发明的一些实施例中,所述数据卡与连接该数据卡的USB接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的测量对象输出功率值。In some embodiments of the present invention, a photosensor is disposed between the data card and a USB interface connected to the data card, and the measured object output power value corresponding to the rotational position is obtained by the photoelectric sensor.
在本发明的一些实施例中,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB接口之间有串联光敏电阻;且所述数据卡与连接该数据 卡的USB接口之间并联光敏电阻;仍然参照图3,所述功率获取模块包括:In some embodiments of the present invention, the photosensor is a photoresistor, and the data card has a series photoresistor connected to the USB interface connected to the data card; and the data card and the data are connected A photoresistor is connected in parallel between the USB interfaces of the card; still referring to FIG. 3, the power acquisition module includes:
电流值获取单元,其设置为:根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;a current value acquisition unit configured to obtain an output current value according to a rotational position of a current data card with respect to an axis parallel to the parallel photosensitive resistor;
电压值获取单元,其设置为:根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;a voltage value obtaining unit configured to obtain an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
功率计算单元,其设置为:根据所述电流值和电压值,获取所述功率值。And a power calculation unit configured to acquire the power value according to the current value and the voltage value.
可选地,所述输出功率值包括数据卡的输出功率值、或光电传感器的输出功率值、或并联光敏电阻的输出功率值和/或串联光敏电阻的输出功率值。Optionally, the output power value comprises an output power value of the data card, or an output power value of the photosensor, or an output power value of the parallel photoresistor and/or an output power value of the series photoresistor.
可选地,本发明实施例提供一种数据卡,包括本发明任意一项实施例提供的数据卡控制装置。Optionally, an embodiment of the present invention provides a data card, including the data card control apparatus provided by any one of the embodiments of the present invention.
可选地,本发明实施例提供一种数据卡,包括串联光敏电阻、并联光敏电阻、旋转轴、卡本体;所述串联光敏电阻、并联光敏电阻分别用于串联、并联连接在所述卡本体和USB接口之间;所述卡本体连接所述旋转轴,所述卡本体围绕旋转轴旋转时,所述串联光敏电阻、并联光敏电阻的电阻值改变,使得数据卡中测量对象两端的输出功率随着所述数据卡位置改变而改变;Optionally, an embodiment of the present invention provides a data card, including a series photoresistor, a parallel photoresistor, a rotating shaft, and a card body. The series photoresistor and the parallel photoresist are respectively connected to the card body in series and in parallel. Between the USB interface and the USB interface; the card body is connected to the rotating shaft, and when the card body rotates around the rotating shaft, the resistance values of the series photoresistor and the parallel photoresistor are changed, so that the output power of the measuring object in the data card is increased. Change as the data card location changes;
其中,所述输出功率用于与预设的功率参考范围进行比较,获得控制所述数据卡、使所述数据卡处于输出功率值所在的功率参考范围所对应的网络连接状态时所依据的比较结果。The output power is used for comparison with a preset power reference range, and the comparison is based on obtaining a network connection state corresponding to a power reference range in which the data card is in a power reference range in which the data card is located. result.
上述实施例中,所述卡本体相当于现有技术中使用的数据卡。In the above embodiment, the card body is equivalent to a data card used in the prior art.
在本发明的一些实施例中,所述测量对象为所述卡本体。In some embodiments of the invention, the measurement object is the card body.
在本发明另一些实施例中,所述测量对象为与所述卡本体并联或串联的元件,如光电传感器、光敏电阻等。In other embodiments of the invention, the measurement object is an element in parallel or in series with the card body, such as a photosensor, a photoresistor, or the like.
应当理解,本说明书所描述的多个实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It is to be understood that the various embodiments of the present invention are intended to illustrate and explain the invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
本发明实施例所提供的数据卡控制方法、装置及数据卡提高了数据卡控制精度,还可以控制数据卡连接不同种类的网络、或处于自动选网模式、或断开网络连接,提高数据卡工作的可控性,降低数据卡工作负荷。 The data card control method, device and data card provided by the embodiments of the invention improve the control precision of the data card, and can also control the data card to connect to different types of networks, or in the automatic network selection mode, or disconnect the network, and improve the data card. Controllable work, reducing data card workload.

Claims (12)

  1. 一种数据卡的控制方法,包括:A data card control method includes:
    根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;Obtaining an output power value corresponding to the rotation position according to a rotation position of the data card;
    将所述输出功率值与预设的功率参考范围进行比较,获得比较结果;Comparing the output power value with a preset power reference range to obtain a comparison result;
    根据所述比较结果控制所述数据卡,使所述数据卡处于输出功率值所在的功率参考范围所对应的网络连接状态。And controlling the data card according to the comparison result, so that the data card is in a network connection state corresponding to a power reference range in which an output power value is located.
  2. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。The network connection status includes: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network.
  3. 根据权利要求1所述的方法,其中,所述数据卡与连接该数据卡的通用串行总线USB接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的输出功率值。The method according to claim 1, wherein a photosensor is disposed between the data card and a universal serial bus USB interface connected to the data card, and an output power value corresponding to the rotational position is obtained by the photosensor.
  4. 根据权利要求3所述的方法,其中,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB接口之间有串联光敏电阻;且所述数据卡与连接该数据卡的USB接口之间有并联光敏电阻;根据数据卡的旋转位置、获得所述旋转位置对应的功率值的步骤包括:The method according to claim 3, wherein the photosensor is a photoresistor, and the data card has a series photoresistor connected to the USB interface connected to the data card; and the data card and the USB connected to the data card There is a parallel photoresistor between the interfaces; according to the rotational position of the data card, the steps of obtaining the power value corresponding to the rotational position include:
    根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;并根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;Obtaining an output current value according to a rotational position of the current data card with respect to an axis parallel to the parallel photosensitive resistor; and obtaining an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
    根据所述电流值和所述电压值,获取所述功率值。The power value is obtained based on the current value and the voltage value.
  5. 一种数据卡的控制装置,包括:A data card control device includes:
    功率获取模块,其设置为:根据数据卡的旋转位置,获得所述旋转位置对应的输出功率值;a power acquisition module, configured to: obtain an output power value corresponding to the rotation position according to a rotation position of the data card;
    比较结果获取模块,其设置为:将所述输出功率范围与预设的功率参考值进行比较,获得比较结果;a comparison result obtaining module, configured to: compare the output power range with a preset power reference value, and obtain a comparison result;
    网络连接状态改变模块,其设置为:根据所述比较结果控制所述数据卡,使所述数据卡处于输出功率值所在的功率参考范围所对应的网络连接状态。 The network connection state changing module is configured to: control the data card according to the comparison result, so that the data card is in a network connection state corresponding to a power reference range in which an output power value is located.
  6. 根据权利要求5所述的装置,其中,The device according to claim 5, wherein
    所述网络连接状态包括:连接至少两种不同网络中的一种、处于自动选网状态、或断开与网络的连接。The network connection status includes: connecting one of at least two different networks, being in an automatic network selection state, or disconnecting from the network.
  7. 根据权利要求5所述的装置,其中,所述数据卡与连接该数据卡的通用串行总线USB接口之间设置有光电传感器,通过所述光电传感器获得所述旋转位置对应的测量对象输出功率值。The apparatus according to claim 5, wherein a photosensor is disposed between the data card and a universal serial bus USB interface connected to the data card, and the output power of the measurement object corresponding to the rotational position is obtained by the photoelectric sensor value.
  8. 根据权利要求7所述的装置,其中,所述光电传感器为光敏电阻,所述数据卡与连接该数据卡的USB接口之间有串联光敏电阻;且所述数据卡与连接该数据卡的USB接口之间有并联光敏电阻;所述功率获取模块包括:The device according to claim 7, wherein the photosensor is a photoresistor, and a data resistor is connected between the data card and a USB interface connected to the data card; and the data card and the USB connected to the data card There is a parallel photoresistor between the interfaces; the power acquisition module includes:
    电流值获取单元,其设置为:根据当前数据卡相对于与所述并联光敏电阻平行的轴的旋转位置,获得输出电流值;a current value acquisition unit configured to obtain an output current value according to a rotational position of a current data card with respect to an axis parallel to the parallel photosensitive resistor;
    电压值获取单元,其设置为:根据当前数据卡相对于与所述串联光敏电阻平行的轴的旋转位置,获得输出电压值;a voltage value obtaining unit configured to obtain an output voltage value according to a rotational position of the current data card with respect to an axis parallel to the series photosensitive resistor;
    功率计算单元,其设置为:根据所述电流值和所述电压值,获取所述功率值。And a power calculation unit configured to acquire the power value according to the current value and the voltage value.
  9. 一种数据卡,包括权利要求5-8中任意一项所述的数据卡控制装置。A data card comprising the data card control device of any of claims 5-8.
  10. 一种数据卡,包括串联光敏电阻、并联光敏电阻、旋转轴以及卡本体;所述串联光敏电阻、并联光敏电阻分别用于串联、并联连接在所述卡本体和连接所述数据卡的通用串行总线USB接口之间;所述卡本体连接所述旋转轴,所述卡本体围绕旋转轴旋转时,所述串联光敏电阻、并联光敏电阻的电阻值改变,使得数据卡中测量对象两端的输出功率随着所述数据卡位置改变而改变;A data card includes a series photoresistor, a parallel photoresistor, a rotating shaft and a card body; the series photoresistor and the parallel photoresistor are respectively connected in series and in parallel to the card body and a universal string connecting the data card Between the row bus USB interface; the card body is connected to the rotating shaft, and when the card body rotates around the rotating shaft, the resistance values of the series photoresistor and the parallel photoresistor are changed, so that the output of the measuring object in the data card is The power changes as the data card location changes;
    其中,所述输出功率用于与预设的功率参考范围进行比较,获得控制所述数据卡、使所述数据卡处于输出功率值所在的功率参考范围所对应的网络连接状态时所依据的比较结果。The output power is used for comparison with a preset power reference range, and the comparison is based on obtaining a network connection state corresponding to a power reference range in which the data card is in a power reference range in which the data card is located. result.
  11. 一种计算机程序,包括程序指令,当该程序指令被数据卡执行时,使得该数据卡可执行权利要求1-4任一项所述的方法。A computer program comprising program instructions that, when executed by a data card, cause the data card to perform the method of any of claims 1-4.
  12. 一种载有权利要求11所述计算机程序的载体。 A carrier carrying the computer program of claim 11.
PCT/CN2014/088859 2014-08-22 2014-10-17 Data card control method and device, and data card WO2015117366A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410419699.5 2014-08-22
CN201410419699.5A CN105357748B (en) 2014-08-22 2014-08-22 Data card control method and device and data card

Publications (1)

Publication Number Publication Date
WO2015117366A1 true WO2015117366A1 (en) 2015-08-13

Family

ID=53777188

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088859 WO2015117366A1 (en) 2014-08-22 2014-10-17 Data card control method and device, and data card

Country Status (2)

Country Link
CN (1) CN105357748B (en)
WO (1) WO2015117366A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345777A (en) * 2008-08-18 2009-01-14 深圳华为通信技术有限公司 Indication method, device and terminal for running state
CN201266953Y (en) * 2008-09-08 2009-07-01 深圳华为通信技术有限公司 Data card
CN101895399A (en) * 2010-07-21 2010-11-24 华为终端有限公司 Control method of data card and data card
CN103312521A (en) * 2012-03-06 2013-09-18 中兴通讯股份有限公司 Control method of data card and data card

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7360638B2 (en) * 2004-08-04 2008-04-22 Siemens Energy & Automation, Inc. Integrated control card for conveying systems
CN101102196A (en) * 2007-07-25 2008-01-09 中兴通讯股份有限公司 A wireless data card and control method of its output power
CN101784127A (en) * 2009-01-20 2010-07-21 华为终端有限公司 Wireless data card
WO2011094962A1 (en) * 2010-02-04 2011-08-11 华为终端有限公司 Method and wireless terminal device for reducing power consumption of wireless terminal device
CN102281561B (en) * 2010-06-11 2016-08-03 中兴通讯股份有限公司 A kind of wireless network card testing device and method of testing
CN103152232B (en) * 2012-12-26 2016-09-14 北京创毅讯联科技股份有限公司 A kind of data card and transmission method based on data card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345777A (en) * 2008-08-18 2009-01-14 深圳华为通信技术有限公司 Indication method, device and terminal for running state
CN201266953Y (en) * 2008-09-08 2009-07-01 深圳华为通信技术有限公司 Data card
CN101895399A (en) * 2010-07-21 2010-11-24 华为终端有限公司 Control method of data card and data card
CN103312521A (en) * 2012-03-06 2013-09-18 中兴通讯股份有限公司 Control method of data card and data card

Also Published As

Publication number Publication date
CN105357748A (en) 2016-02-24
CN105357748B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
JP6328795B2 (en) Baseband PD communication via USB standard A connector
EP3016419A1 (en) Method of changing profile using identification module and electronic device implementing same
CN109150579B (en) Method and system for configuring multi-chassis link and storage medium thereof
WO2016074473A1 (en) Router signal strength adjustment method and device
US9692960B2 (en) Method and system for enabling camera of mobile terminal to automatically adapt camera parameters according to scene motion
JP5866422B2 (en) Connector interface pin mapping
CN107148009B (en) Multi-standard mobile communication network internet data flow measuring device and method thereof
EP3065475A1 (en) Transmitting power control and processing method and device, and terminal
CN104571990A (en) Method and system for adjusting operating state of display screen
US20190116550A1 (en) Wi-fi hotspot recommendation method, terminal, and graphical user interface
US20130246543A1 (en) Networked sensor device
KR20170001475A (en) Electronic apparatus and method for controlling signals strength based on a mode of the electronic apparatus
CN107155211B (en) WiFi transmission power adjusting method and device, mobile terminal and storage medium
US9736711B2 (en) Methods and devices for adjusting signal strength of router
CA3070636A1 (en) Data processing method and apparatus for unmanned aerial vehicle
CN112944624B (en) Method for air conditioner control and air conditioner
US20170372462A1 (en) Intelligent Filter Matching Method and Terminal
CN207218722U (en) POE load testing devices
WO2015117366A1 (en) Data card control method and device, and data card
Dobrescu Domotic embedded system
CN104021030A (en) Information processing method and electronic equipment
CN103746720B (en) Wireless communication module method of adjustment
CN103269400B (en) Method for turning over system screen of mobile communication equipment
US20150370747A1 (en) Usb controllers coupled to usb ports
CN104143813A (en) Method and system for controlling temperature of mobile terminal

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: 14881976

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: 14881976

Country of ref document: EP

Kind code of ref document: A1