WO2011124067A1 - 应用处理器ap与通讯模块间端口服务配置的动态变换方法及装置 - Google Patents

应用处理器ap与通讯模块间端口服务配置的动态变换方法及装置 Download PDF

Info

Publication number
WO2011124067A1
WO2011124067A1 PCT/CN2010/078796 CN2010078796W WO2011124067A1 WO 2011124067 A1 WO2011124067 A1 WO 2011124067A1 CN 2010078796 W CN2010078796 W CN 2010078796W WO 2011124067 A1 WO2011124067 A1 WO 2011124067A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
communication module
service configuration
port service
data traffic
Prior art date
Application number
PCT/CN2010/078796
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 中兴通讯股份有限公司
Priority to EP10849303.2A priority Critical patent/EP2493249B1/en
Priority to US13/516,334 priority patent/US20120250567A1/en
Publication of WO2011124067A1 publication Critical patent/WO2011124067A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • 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

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a dynamic conversion method and apparatus for port service configuration between an AP and a communication module. Background technique
  • the serial communication interface can realize strong functions through a simple communication signal line and has a wide transmission speed. It is the most widely used communication interface in recent years.
  • the serial ports included in the communication module mainly include Universal Asynchronous Receiver/Transmitter (UART), Serial Peripheral Interface (SPI) and Universal Serial Bus (USB). They can be used to communicate with an AP or PC. In the process of using serial port transmission, the power consumption of different serial ports is different. At the same transmission rate, the power consumption of the UART is smaller than that of USB.
  • the communication module to interact with the AP, such as dual-port random access memory (RAM), USB, UART, USB+ General Purpose Input Output (GPIO), UART+GPIO, USB+UART+GPIO, etc.
  • RAM dual-port random access memory
  • GPIO General Purpose Input Output
  • UART+GPIO USB+UART+GPIO
  • a specific service mainly referred to as a modem
  • an interface such as USB with high transmission speed but high power consumption can be used as the modem port;
  • the traffic is small (browsing the web, checking the e-mail or the Internet access rate is limited by the network, etc.)
  • it does not require a very high rate, and the transmission speed can be slow using UART.
  • the interface that consumes less power.
  • the best way to combine the advantages of the USB interface with the UART interface is to switch the modem port at the appropriate time.
  • the user may actively switch the port for some reasons, such as using the UART instead of the USB to transmit data when the system is low in power and the amount of data transferred is small, and using a high speed such as USB in the case of downloading files or online video playback and the like.
  • the interface acts as a modem.
  • the port service configuration used by the current communication module is fixed, that is, the specific service is fixed on a certain port, such as dual-port RAM, USB, UART port, and cannot be based on the actual situation of data traffic or Internet or power. Dynamically change the port service configuration so that the power consumption of the module cannot be reduced.
  • the object of the present invention is to provide a dynamic conversion method and device for port service configuration between an AP and a communication module, which can implement a dynamic transformation method of port service configuration of an AP and a communication module according to data traffic or power or data transmission rate, so as to reduce Power consumption of the communication module.
  • a dynamic conversion method for port service configuration between an application processor AP and a communication module includes the following steps:
  • the AP and the communication module respectively transform their current port service configurations to the port service configurations that are adapted to the monitored data traffic based on the results of the data traffic monitoring.
  • the method of the present invention further includes the following steps:
  • the communication module monitors its power or data transmission rate
  • the communication module takes the port The configuration changes to a low-power port service configuration and informs the AP of the port service configuration for the power consumption of its port service configuration.
  • the port service is configured as follows: The service is bound to the port; the port service configuration is changed to: change the binding of the current service to the current port to the binding of the current service to another port.
  • the monitoring of the data traffic between the AP and the communication module is started in the step B): the AP performs the monitoring of the data traffic by counting the data traffic between the AP and the communication module in a certain period of time.
  • the step C) specifically includes: the AP compares the value of the data traffic statistics with a threshold, and when the value of the data traffic statistics is less than the threshold, the AP and the communication module respectively release the respective modem services and their respective After the USB ports are bound, bind their modems to their respective UART ports.
  • the method further includes: respectively closing the respective USB ports.
  • the port service configured in step D2) is configured to: the modem service is bound to the USB port; and the low-power port service configuration is that the modem service is bound to the UART port.
  • the step A) is specifically: after the AP and the communication module are normally initialized, when the AP detects that there is a USB device connection, the AP asks the communication module through the UART port for the port setting scheme to be executed;
  • the communication module notifies the AP of the port setting scheme to be executed in response to the inquiry, and performs port service configuration in the initialization phase of the communication module according to a port setting scheme to be executed;
  • the AP performs port service configuration in an initialization phase of the AP according to a port setting scheme to be executed notified by the communication module.
  • a dynamic translation apparatus for a port service configuration between an application processor AP and a communication module including: Initializing a port service configuration unit, configured to perform port service configuration in an initialization phase of the AP and the communication module after the AP and the communication module are normally initialized;
  • a data traffic monitoring unit configured to monitor data traffic between the AP and the communication module after the port service configuration in the initialization phase is completed
  • the port service configuration transformation unit is configured to convert the current port service configuration of the AP and the communication module to a port service configuration adapted to the monitored data traffic according to the monitoring result.
  • the apparatus of the present invention further includes: a power/data transmission rate monitoring unit, configured to monitor a power or data transmission rate of the communication unit after the port service configuration in the initialization phase is completed, and monitor the power or data transmission rate When the value is lower than the predetermined value, the port service configuration of the AP and the communication module are respectively changed to the low-power port service configuration.
  • a power/data transmission rate monitoring unit configured to monitor a power or data transmission rate of the communication unit after the port service configuration in the initialization phase is completed, and monitor the power or data transmission rate
  • the port service configuration of the AP and the communication module are respectively changed to the low-power port service configuration.
  • the port service configuration means that the service is bound to the port;
  • the port service configuration change refers to changing the binding of the current service to the current port to the binding of the current service to another port.
  • the service is dynamically configured to the low-power port, which can reduce the power consumption and the standby working time while supporting the real-time communication requirements in the system. ;
  • FIG. 1 is a schematic diagram of an example of port service configuration switching between an AP and a communication module according to the present invention
  • FIG. 2 is a schematic structural diagram of a dynamic conversion apparatus for port service configuration between an AP and a communication module according to the present invention
  • FIG. 3 is a flow chart of a dynamic conversion method for port service configuration between an AP and a communication module according to the present invention
  • Fig. 1 shows an example of the port service configuration change between an AP and a communication module (e.g., a 3G module) according to the present invention.
  • a communication module e.g., a 3G module
  • a UART or USB corresponding service is configured using a GPIO signal.
  • the port service configuration in this document means that the service is bound to the port, for example, the binding of the modem service to the USB port, or the binding of the modem to the UART port;
  • the port service configuration change refers to The binding of the service to the current port is changed to the binding of the current service to another port.
  • the port service configuration change is The binding of the modem to the USB port is changed to the binding of the modem to the UART port. It should be noted that before binding, the binding between the modem and the USB port needs to be released.
  • FIG. 2 shows a dynamic conversion device for configuring port service configuration between the processor AP and the communication module.
  • the device of the present invention can be separately disposed in the communication module and the AP to perform dynamic conversion of the port service configuration separately.
  • the dynamic conversion apparatus of the port service configuration of the present invention includes an initialization port service configuration unit, a data traffic monitoring unit, and a port service configuration transformation unit, wherein: an initialization port service configuration unit is configured to be normal in the AP and the communication module. After initialization, the port service configuration of the initialization phase of the AP and the communication module is performed, usually by binding the modem to the USB port;
  • the data flow monitoring unit is configured to monitor data traffic between the AP and the communication module after the port service configuration in the initialization phase is completed; as shown in FIG. 2, the data traffic monitoring unit is connected to the initialization port service configuration unit, according to the initialization port service configuration unit.
  • the output port service configuration completion signal starts to perform monitoring of data traffic;
  • the port service configuration transformation unit is configured to, according to the monitoring result, convert the current port service configuration of the AP and the communication module to a port service configuration adapted to the monitored data traffic, for example, when detecting that the data traffic is lower than a certain value , bind the modem to the UART port.
  • the dynamic conversion device of the port service configuration of the present invention further includes: a power/data transmission rate monitoring unit, configured to monitor a power consumption or a data transmission rate of the communication unit after the port service configuration in the initialization phase is completed, and When the detected power or data transmission rate is lower than the predetermined value, the port service configuration of the AP and the communication module is changed to the low-power port service configuration, and the modem is usually bound to the UART port.
  • a power/data transmission rate monitoring unit configured to monitor a power consumption or a data transmission rate of the communication unit after the port service configuration in the initialization phase is completed, and When the detected power or data transmission rate is lower than the predetermined value, the port service configuration of the AP and the communication module is changed to the low-power port service configuration, and the modem is usually bound to the UART port.
  • FIG. 3 shows a dynamic conversion method of the port service configuration between the AP and the communication module of the present invention. As shown in Figure 3, the following steps are included:
  • Step 300 After normal initialization, the AP and the communication module respectively perform port service configuration of respective initialization stages.
  • Step 301 After the port service configuration in the initialization phase is completed, start monitoring data traffic between the AP and the communication module.
  • Step 302 The AP and the communication module respectively convert the respective current port service configurations to the port service configurations that are adapted to the monitored data traffic according to the data traffic monitoring result.
  • the data flow monitoring may be performed by the AP or the communication module by counting the data traffic between the AP and the communication module within a certain period of time; and then the AP or the communication module compares the value and the threshold of the data traffic statistics. For comparison, and when the value of the data traffic statistics is less than the threshold, the startup AP and the communication module bind their respective modems to their respective UART ports after releasing the respective modem services and their respective USB ports respectively, so that Implement dynamic transformation of port service configuration.
  • the communication module and AP bind the modem service to the UART port, they close their respective USB ports to save power. Thereafter, if you need to restore the port service configuration to the initial stage, you can use the sleep wake-up signal (that is, GPIO in Figure 1) to restore the port service configuration. Control.
  • the method for dynamically changing the port service configuration of the AP and the communication module of the present invention further includes: after the port service configuration in the initialization phase is completed, the communication module monitors the power or data transmission rate, for example, browsing the webpage and checking the mail belongs to the data transmission rate. In the low case, the data transmission rate can be monitored by monitoring the events of browsing the web or viewing the mail; when the detected power or data transmission rate is lower than the predetermined value, the communication module converts its port service configuration to low.
  • the power consumption of the port service is configured and the AP is notified to translate its port service configuration to a low power port service configuration.
  • the port service configuration is that the modem service is bound to the USB port; the low-power port service configuration is that the modem service is bound to the UART port.
  • the port service configuration change is automatically performed, and the port service configuration change can be actively performed by the user according to the monitoring result of the power amount or the data transmission rate.
  • step 300 can specifically include the following:
  • the AP After the AP and the communication module are normally initialized, when the AP checks that there is a USB device connection, the AP asks the communication module through the UART port for the port setting scheme to be executed;
  • the communication module notifies the AP of the port setting scheme to be executed in response to the inquiry, and performs port service configuration in the initialization phase of the communication module according to the port setting scheme to be executed;
  • the AP performs port service configuration in the initial stage of the AP according to the port setting scheme to be executed notified by the communication module.
  • Figure 4 shows the flow of the port service configuration during the initialization phase of the AP and the communication module at boot time, so that those skilled in the art will further understand the specific implementation of step 300 in Figure 3.
  • the AP and the communication module respectively perform normal initialization, and then the AP sends an AT through the USB port to check whether the communication module has a USB device connection. If not, the AP and the module perform the scheme of binding the service to the UART port, that is, the modem service is bound to the UART port, so the problem of dynamically switching the port is not involved. If it is checked that the communication module has USB When the device is connected, the AT A SETPORT command is sent through the UART to inquire about the port setting scheme to be executed by the communication module.
  • the communication module can have several configuration schemes, such as UART+GPIO, USB+GPIO, USB+UART+GPIO, etc.
  • the port setup scheme 2 to be executed is to bind the AT service to the UART port, and the DIAG and modem services are bound to the USB port.
  • the communication module responds to the inquiry, notifies the AP of the port setting scheme to be executed, and then the communication module and the AP respectively perform the port service configuration of the initial stage according to the port setting scheme.
  • the port service configuration can be dynamically changed according to actual needs.
  • the AP and the communication module bind the modem service to the UART port, it is necessary to suspend the data transmission of the AP or the communication module, and only after the modem service is bound to the UART port, the data is started. Data is sent.
  • Port switching can be divided into two types: user active switching and automatic system switching. The following are explained separately:
  • the user initiates a port service configuration transformation.
  • the user can choose to actively change the port service configuration according to the power monitoring or the monitoring of the Internet access rate. Because this port service configuration is initiated by the user, the priority is relatively high, and only the user can restore the port service configuration to the state before the transformation.
  • the module binds the modem to the UART port, the AP and the module turn off the USB to save power.
  • the GPIO can be used to control the recovery transition, and the module can be notified of port switching by sending a 50ms pulse to the specific GPIO.
  • the system automatically switches. Determine whether to perform port service configuration transformation by counting the AP and module data traffic in a certain period of time. The selection of this time value is related to the specific application, and the general quantity level is minutes. For the detection of traffic, there are more software or algorithms on the AP or PC side, and the description is omitted here. If the amount of data that the AP interacts with the module for a certain period of time is small, the UART transmission can be used to meet the demand, and then the port can be switched. Because the system automatically switches, if the modem is completely switched off after switching to the UART, then there must be a certain recovery.
  • the GPIO can be used to control the switch, and the module is notified of the port switch by sending a 50ms pulse to the specific GPIO. It should be noted that because the device enumeration of the AP side USB takes a certain time, the module is notified to switch the port service only when the enumeration is completed and the AT (modem) port of the RIL layer is opened. During this time, the data is still transmitted through the UART port.
  • serial device management layer which mainly encapsulates all the underlying serial devices of the module. , such as UART, USB, SPI, etc.
  • the driver layer the SM layer mainly implements the underlying communication and is the interface layer for transmitting data. Because it encapsulates the underlying device, the upper layer service provides easy access to all serial ports.
  • the other package is called the service dynamic management layer. It unifies all possible services (such as data service, diag service, bt service or GPS service, etc.) into a service mapping table, and the upper layer can be modified by the mapping table.
  • the service is associated with the underlying driver, port initialization, and so on. Dynamic switching of port services can be accomplished by dynamically mapping the services to a specific serial device and registering them. All serial ports use the same buffer pool and record their usage through global variables to ensure that data is not lost during port switching.
  • the invention reduces power consumption to a certain extent and improves the user function experience.
  • the present invention implements a dynamic switching port service between the UART and the USB when the system is low in power or has a small amount of data transmission, and is restored when appropriate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Systems (AREA)

Description

应用処理器 AP与通讯模块间端口服务配置的动态变换方法及装置
技术领域
本发明涉及无线通信领域,特别涉及 AP与通讯模块间端口服务配置的 动态变换方法及装置。 背景技术
串行通信接口可以通过简便的通讯信号线实现较强的功能, 传输速度 范围广, 是近年来应用最为广泛的通信接口。 通讯模块所包含的串口主要 有通用 异步接收 /发送装置 ( UART , Universal Asynchronous Receiver/Transmitter ) , 串行夕卜围接口 ( SPI, Serial Peripheral Interface ) 与 通用串行总线( USB, Universal Serial BUS )等, 它们可用与 AP或 PC进 行通讯。 在使用串口传输过程中, 不同的串口的功耗是有差别的, 在同样 的传输速率下, UART的功耗就比 USB要小。
目前, 通讯模块与 AP 进行交互的方法有很多, 如双口随机存储器 ( RAM ), USB、 UART, USB+通用输入输出(GPIO, General Purpose Input Output ), UART+GPIO、 USB+UART+GPIO 等等, 这些方案将特定的服务 固定在特定的端口上, 交互方式较为单一。 特别是, 当通讯模块与 AP存在 两个或两个以上的物理接口且接口间的功耗有较大差异时, 就可以将特定 的服务(主要指调制解调器(modem ) )根据一定的策略在两接口间进行动 态的切换, 以达到降低功耗的目的。
在实际应用中, 如影视或音乐的在线播放, 文件的下载等业务时, 对 传输速率有较高的要求时, 可以使用 USB等传输速度快但功耗较高的接口 作为 modem口; 在数据流量较小的时候(浏览网页、 查看邮件或上网速率 被网络所限制等), 并不需要很高的速率, 可以使用 UART等传输速度较慢 但耗电量较少的接口。将 USB接口和 UART接口的优点结合起来的最佳途 径, 就是在适当的时候进行 modem的端口切换。 另外, 用户可能因为一些 原因要主动切换端口, 比如在系统电量不足与传输数据量较小的时候使用 UART替代 USB传送数据, 在下载文件或在线视频播放等数据量较大的场 合使用 USB等高速接口作为 modem。
综上所述, 目前的通讯模块釆用的端口服务配置是固定的, 即将特定 服务固定在某个端口上, 如双口 RAM、 USB、 UART口, 不能根据数据流 量或上网或电量的实际情况, 动态地改变端口服务配置, 因而不能降低模 块的功耗。 发明内容
本发明的目的是提供一种 AP 与通讯模块间端口服务配置的动态变换 方法及装置, 可以根据数据流量或电量或数据传输速率, 实现 AP与通讯模 块的端口服务配置的动态变换方法, 以降低通讯模块的功耗。
根据本发明第一方面,所提供的应用处理器 AP与通讯模块间端口服务 配置的动态变换方法包括以下步骤:
A ) AP和通讯模块在正常初始化后, 分别执行初始化阶段的端口服务 配置;
B )在所述初始化阶段的端口服务配置完成后, 启动对 AP与通讯模块 间的数据流量的监测;
C ) AP和通讯模块根据数据流量监测的结果, 分别把各自当前的端口 服务配置变换到与所监测的数据流量相适应的端口服务配置上。
本发明的方法还包括以下步骤:
D1 )在所述初始化阶段的端口服务配置完成后, 通讯模块监测其电量 或数据传输速率;
D2 )在监测到电量或数据传输速率低于预定值时, 通讯模块把端口服 务配置变换到低功耗的端口服务配置上,并通知 AP把其端口服务配置变换 到的功耗的端口服务配置上。
所述端口服务配置为: 服务与端口绑定在一起; 端口服务配置变换为: 把当前服务与当前端口的绑定改变为当前服务与另一端口的绑定。
步骤 B ) 中所述启动对 AP与通讯模块间的数据流量的监测为: 所述 AP通过对一定时间内 AP与通讯模块间的数据流量的统计, 执行对数据流 量的监测。
步骤 C )具体包括: 所述 AP将数据流量统计的值与门限值进行比较, 并且在数据流量统计的值小于门限值时,启动 AP和通信模块在分别解除各 自的 modem服务与各自的 USB口绑定后, 把各自的 modem绑定到各自的 UART口。
所述通讯模块和 AP在把 modem服务绑定到 UART口之后, 该方法还 包括: 分别关闭各自的 USB口。
步骤 D2 ) 中所述端口服务配置为: modem服务绑定到所述 USB口; 所述低功耗的端口服务配置是 modem服务绑定到 UART口。
所述步骤 A )具体为: 在所述 AP和通讯模块正常初始化后, 当 AP检 查到有 USB设备连接时, AP通过 UART口向通讯模块询问其将要执行的 端口设置方案;
所述通讯模块响应所述询问, 把将要执行的端口设置方案通知给 AP, 并按照将要执行的端口设置方案, 执行通讯模块的初始化阶段的端口服务 配置;
所述 AP按照由通讯模块通知的将要执行的端口设置方案, 执行 AP的 初始化阶段的端口服务配置。
根据本发明的第二方面,所提供的应用处理器 AP与通讯模块间端口服 务配置的动态变换装置包括: 初始化端口服务配置单元, 用于在 AP和通讯模块正常初始化后,执行 AP和通讯模块的初始化阶段的端口服务配置;
数据流量监测单元, 用于在所述初始化阶段的端口服务配置完成后, 监测 AP与通讯模块间的数据流量;
端口服务配置变换单元, 用于根据监测的结果,把 AP和通讯模块的当 前端口服务配置变换到与所监测的数据流量相适应的端口服务配置上。
此外, 本发明的装置还包括: 电量 /数据传输速率监测单元, 用于在所 述初始化阶段的端口服务配置完成后, 监测通讯单元的电量或数据传输速 率, 并在监测到电量或数据传输速率低于预定值时,把 AP和通讯模块的端 口服务配置分别变换到低功耗的端口服务配置上。
在上述的方法和装置中, 端口服务配置是指, 服务与端口绑定在一起; 端口服务配置变换是指, 把当前服务与当前端口的绑定改变为当前服务与 另一端口的绑定。
相对于现有技术, 本发明的上述方法具有以下技术效果:
1 )根据 AP与通讯模块的数据流量统计, 动态地把服务配置到了低功 耗的端口上, 在支持系统中通讯实时性的要求的同时, 较好地降低了功耗, 延长了待机工作时间;
2 )根据电量或上网业务的数据量传输速率, 灵活配置了端口对应的服 务。 附图说明
图 1是本发明在 AP与通信模块之间进行端口服务配置切换的一个实例 的示意图;
图 2是本发明 AP与通讯模块间端口服务配置的动态变换装置的组成结 构示意图;
图 3是本发明 AP与通讯模块间端口服务配置的动态变换方法的流程 图;
图 4是本发明开机时执行端口服务配置的流程图。 具体实施方式
图 1显示了本发明的在 AP与通信模块(如 3G模块)之间进行端口服 务配置变换的一个实例, 在该实例中, 利用 GPIO信号配置 UART或 USB 对应的服务。
需要说明的是, 本文中的端口服务配置是指, 服务与端口绑定在一起, 例如 modem服务与 USB口的绑定, 或者 modem与 UART口的绑定; 端口 服务配置变换是指, 把当前服务与当前端口的绑定改变为当前服务与另一 端口的绑定, 例如, 在当前月良务为 modern, 当前端口为 USB口, 另一端口 为 UART的情况下, 端口服务配置变换就是把 modem与 USB口的绑定改 变为 modem与 UART 口的绑定。 需要说明的是, 在绑定之前, 需要解除 modem与 USB口的绑定。
图 2显示了一种应用处理器 AP与通讯模块间端口服务配置的动态变换 装置, 本发明装置可以分别设置在通讯模块和 AP中, 以便分别执行端口服 务配置的动态变换。
如图 2所示, 本发明端口服务配置的动态变换装置包括初始化端口服 务配置单元、 数据流量监测单元, 以及端口服务配置变换单元, 其中: 初始化端口服务配置单元, 用于在 AP和通讯模块正常初始化后,执行 AP和通讯模块的初始化阶段的端口服务配置,通常是将 modem绑定到 USB 口;
数据流量监测单元, 用于在初始化阶段的端口服务配置完成后, 监测 AP与通讯模块间的数据流量; 如图 2所示, 数据流量监测单元连接初始化 端口服务配置单元, 根据初始化端口服务配置单元输出的端口服务配置完 成信号, 开始执行数据流量的监测; 端口服务配置变换单元, 用于根据监测的结果,把 AP和通讯模块的当 前端口服务配置变换到与所监测的数据流量相适应的端口服务配置上, 例 如当检测到数据流量低于一定值时, 把 modem绑定到 UART口。
参见图 2, 本发明端口服务配置的动态变换装置还包括: 电量 /数据传 输速率监测单元, 用于在所述初始化阶段的端口服务配置完成后, 监测通 讯单元的电量或数据传输速率, 并在监测到电量或数据传输速率低于预定 值时, 把 AP和通讯模块的端口服务配置变换到低功耗的端口服务配置上, 通常是把把 modem绑定到 UART口。
图 3显示了本发明 AP与通讯模块间端口服务配置的动态变换方法。如 图 3所示, 包括以下步骤:
步骤 300: AP和通讯模块在正常初始化后, 分别执行各自的初始化阶 段的端口服务配置。
步骤 301 : 在所述初始化阶段的端口服务配置完成后, 启动对 AP与通 讯模块间的数据流量的监测。
步骤 302: AP和通讯模块根据数据流量监测的结果, 分别把各自当前 的端口服务配置变换到与所监测的数据流量相适应的端口服务配置上。
在一个具体实例中, 可以由 AP或通讯模块通过对一定时间内 AP与通 讯模块间的数据流量的统计,执行对数据流量的监测; 然后 AP或通讯模块 将数据流量统计的值与门限值进行比较, 并且在数据流量统计的值小于门 限值时, 启动 AP和通信模块在分别解除各自的 modem服务与各自的 USB 口绑定后, 把各自的 modem绑定到各自的 UART口, 以便实现端口服务配 置的动态变换。
一旦通讯模块和 AP把 modem服务绑定到 UART口之后 , 就关闭各自 的 USB口, 以便节省电能。 此后, 若需要恢复到初始阶段的端口服务配置 时, 可以利用休眠唤醒信号(即图 1中的 GPIO )进行端口服务配置的恢复 控制。
本发明 AP与通讯模块的端口服务配置的动态变换方法还包括:在所述 初始化阶段的端口服务配置完成后, 通讯模块监测其电量或数据传输速率, 例如, 浏览网页、 查看邮件属于数据传输速率低的情形, 因此可以通过对 浏览网页或查看邮件的事件进行监测, 来对数据传输速率进行监测; 在监 测到电量或数据传输速率低于预定值时, 通讯模块把其端口服务配置变换 到低功耗的端口服务配置上,并通知 AP把其端口服务配置变换到低功耗的 端口服务配置上。 其中, 端口服务配置是 modem服务绑定到 USB 口; 低 功耗的端口服务配置是 modem服务绑定到 UART口。
除了由通讯模块根据电量或数据传输速率的监测结果, 自动执行端口 服务配置变换外, 也可以由用户根据电量或数据传输速率的监测结果, 主 动进行端口服务配置变换。
此外, 步骤 300可以具体包括以下:
在 AP和通讯模块正常初始化后, AP检查到有 USB设备连接时, AP 通过 UART口向通讯模块询问其将要执行的端口设置方案;
通讯模块响应所述询问, 把将要执行的端口设置方案通知给 AP, 并按 照将要执行的端口设置方案, 执行通讯模块的初始化阶段的端口服务配置;
AP按照由通讯模块通知的将要执行的端口设置方案, 执行 AP的初始 化阶段的端口服务配置。
图 4显示了开机时 AP和通讯模块执行初始化阶段的端口服务配置的流 程, 以便本领域技术人员进一步理解图 3中步骤 300的具体实现。
参见图 4, 开机后 AP和通讯模块分别进行正常初始化, 接着 AP通过 USB端口发送 AT, 以检查通讯模块是否有 USB设备连接。 如果没有, 说 明 AP与模块执行的是服务与 UART口绑定的方案, 即 modem服务被绑定 到 UART口,因此不涉及动态切换端口的问题。如果检查到通讯模块有 USB 设备接入, 则通过 UART发送 ATASETPORT命令询问通讯模块将要执行的 端口设置方案。 一般来说, 通讯模块可以有几种配置方案, 比如 UART+GPIO, USB+GPIO、 USB+UART+GPIO等。 在图 4中, 将要执行的 端口设置方案 2是将 AT服务绑定到 UART口 , DIAG和 modem服务绑定 到 USB口。 通讯模块对询问进行响应, 把将要执行的端口设置方案通知给 AP, 然后由通讯模块和 AP分别根据该端口设置方案, 执行各自的初始阶 段的端口服务配置。
此后, 在系统正常运行中, 可以根据实际需要动态变换端口服务配置。 为了在端口服务配置的动态变换过程中不丟失数据, 在 AP 和通讯模块将 modem服务绑定 UART口之前, 需要暂停 AP或通讯模块的数据发送, 只 有在 modem服务绑定 UART口之后, 才开始数据发送。 端口切换可分为用 户主动切换与系统自动切换两种。 下面分别进行说明:
(1) 用户主动发起端口服务配置变换。在系统电量不足或者对数据传输 速率要求不高的场合(浏览网页、 查看邮件或上网速率被网络所限制等), 用户可以根据电量监测或对上网速率的监测, 选择主动改变端口服务配置。 因为这种端口服务配置是用户主动发起的, 优先级比较高, 只有用户才能 将端口服务配置恢复到变换前的状态。 模块将 modem绑定到 UART口后, AP与模块会关闭 USB来节省电量。这种情况下可以使用 GPIO来控制恢复 变换, 通过特定 GPIO发送 50ms的脉冲来通知模块进行端口切换。
(2) 系统自动切换。 通过对一定时间内 AP与模块数据流量的统计来决 定是否进行端口服务配置变换。 这个时间值的选取与具体应用有关, 一般 数量级别为分钟。 对于流量的检测, AP或 PC侧有较多的软件或算法, 这 里省略说明。 如果 AP与模块一定时间内交互的数据量较小, 使用 UART 传输就可以满足需求, 这时就可以进行端口切换。 由于是系统自动切换, 如果 modem切换到 UART后完全关闭 USB ,那么恢复的时候就要有一定的 延时, 虽然可以一定程度上降低功耗, 但在数据流量波动较大的时候会造 成不必要的时间开支, 用户体验变差。 因此只有数据量在较长时间段流量 比较小而均匀的时候进行变换。 同样的,这种情况下可以使用 GPIO来控制 切换, 通过特定 GPIO发送 50ms的脉冲来通知模块进行端口切换。 需要注 意的是, 因为 AP侧 USB的设备枚举需要一定的时间, 只有当枚举完成且 RIL层的 AT ( modem ) 口打开时才通知模块进行端口服务的切换。 在此期 间, 数据仍然通过 UART口进行传输。
另一方面, 为了实现端口服务配置和端口服务配置的切换, 本发明的 通讯模块的软件需要做两个封装, 一个称为串口设备管理层 (SM ), 它主 要封装了模块所有的底层串口设备, 如 UART, USB, SPI等等。 SM层作 为驱动程序层, 主要实现底层通信, 是传输数据的接口层。 由于它封装了 底层设备, 上层服务就可以方便的访问所有串口。 另一个封装称为服务动 态管理层,它将所有可能用到的服务(如 data service, diag service, bt service 或者 GPS service等等)统一到一个服务映射表中, 通过映射表的修改可以 将上层服务和底层驱动、 端口的初始化等关联起来。 通过将服务动态的映 射到特定串口设备并对其注册后, 可以完成端口服务的动态切换。 所有的 串口使用同一个緩存池, 通过全局变量记录其使用情况, 以保证端口切换 过程中数据不会丟失。
本发明在一定程度上降低了功耗, 提高了用户功能体验。 此外, 本发 明在系统电量不足或数据量传输较少时, 实现了在 UART与 USB之间动态 切换端口服务, 并在适当的时候恢复过来。
尽管上文对本发明进行了详细说明, 但是本发明不限于此, 本技术领域技 术人员可以根据本发明的原理进行各种修改。 因此, 凡按照本发明原理所 作的修改, 都应当理解为落入本发明的保护范围。

Claims

权利要求书
1、 一种应用处理器 AP与通讯模块间端口服务配置的动态变换方法, 其特征在于, 包括以下步骤:
A ) AP和通讯模块在正常初始化后, 分别执行初始化阶段的端口服务 配置;
B )在所述初始化阶段的端口服务配置完成后, 启动对 AP与通讯模块 间的数据流量的监测;
C ) AP和通讯模块根据数据流量监测的结果, 分别把各自当前的端口 服务配置变换到与所监测的数据流量相适应的端口服务配置上。
2、根据权利要求 1所述的动态变换方法,其特征在于,该方法还包括: D1 )在所述初始化阶段的端口服务配置完成后, 通讯模块监测其电量 或数据传输速率;
D2 ) 当监测到电量或数据传输速率低于预定值时, 通讯模块把端口服 务配置变换到低功耗的端口服务配置上,并通知 AP把其端口服务配置变换 到低功耗的端口服务配置上。
3、 根据权利要求 1或 2所述的动态变换方法, 其特征在于, 所述端口 服务配置为: 服务与端口绑定在一起; 端口服务配置变换为: 把当前服务 与当前端口的绑定改变为当前服务与另一端口的绑定。
4、 根据权利要求 3所述的动态变换方法, 其特征在于, 步骤 B ) 中所 述启动对 AP与通讯模块间的数据流量的监测为: 所述 AP通过对一定时间 内 AP与通讯模块间的数据流量的统计, 执行对数据流量的监测。
5、 根据权利要求 4所述的动态变换方法, 其特征在于, 步骤 C )具体 包括: 所述 AP将数据流量统计的值与门限值进行比较, 并且在数据流量统 计的值小于门限值时, 启动 AP和通信模块在分别解除各自的 modem服务 与各自的 USB口绑定后, 把各自的 modem绑定到各自的 UART口。
6、 根据权利要求 5所述的动态变换方法, 其特征在于, 所述通讯模块 和 AP在把 modem服务绑定到 UART口之后, 该方法还包括: 分别关闭各 自的 USB口。
7、 根据权利要求 3所述的动态变换方法, 其特征在于, 步骤 D2 ) 中 所述端口服务配置为: modem服务绑定到所述 USB口; 所述低功耗的端口 服务配置是 modem服务绑定到 UART口。
8、 根据权利要求 2所述的动态变换方法, 其特征在于, 所述步骤 A ) 具体为:
在所述 AP和通讯模块正常初始化后, 当 AP检查到有 USB设备连接 时, AP通过 UART口向通讯模块询问其将要执行的端口设置方案;
所述通讯模块响应所述询问, 把将要执行的端口设置方案通知给 AP, 并按照将要执行的端口设置方案, 执行通讯模块的初始化阶段的端口服务 配置;
所述 AP按照由通讯模块通知的将要执行的端口设置方案, 执行 AP的 初始化阶段的端口服务配置。
9、 一种应用处理器 AP与通讯模块间端口服务配置的动态变换装置, 包括:
初始化端口服务配置单元, 用于在 AP和通讯模块正常初始化后,执行 AP和通讯模块的初始化阶段的端口服务配置;
数据流量监测单元, 用于在所述初始化阶段的端口服务配置完成后, 监测 AP与通讯模块间的数据流量;
端口服务配置变换单元, 用于根据监测的结果,把 AP和通讯模块的当 前端口服务配置变换到与所监测的数据流量相适应的端口服务配置上。
10、 根据权利要求 9所述的动态变换装置, 该装置还包括:
电量 /数据传输速率监测单元, 用于在所述初始化阶段的端口服务配置 完成后, 监测通讯单元的电量或数据传输速率, 并在监测到电量或数据传 输速率低于预定值时,把 AP和通讯模块的端口服务配置分别变换到低功耗 的端口服务配置上。
PCT/CN2010/078796 2010-04-09 2010-11-16 应用处理器ap与通讯模块间端口服务配置的动态变换方法及装置 WO2011124067A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP10849303.2A EP2493249B1 (en) 2010-04-09 2010-11-16 Method and device for dynamically changing port service configuration between application processor and communication module
US13/516,334 US20120250567A1 (en) 2010-04-09 2010-11-16 Method and device for dynamically changing port service configuration between application processor and communication module

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010143088.4 2010-04-09
CN201010143088.4A CN102215500B (zh) 2010-04-09 2010-04-09 Ap与通讯模块的端口服务配置的动态变换方法及装置

Publications (1)

Publication Number Publication Date
WO2011124067A1 true WO2011124067A1 (zh) 2011-10-13

Family

ID=44746576

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078796 WO2011124067A1 (zh) 2010-04-09 2010-11-16 应用处理器ap与通讯模块间端口服务配置的动态变换方法及装置

Country Status (4)

Country Link
US (1) US20120250567A1 (zh)
EP (1) EP2493249B1 (zh)
CN (1) CN102215500B (zh)
WO (1) WO2011124067A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597475A (zh) * 2019-09-27 2019-12-20 深圳市嘉利达专显科技有限公司 一种多网口多主机医疗显示器的自动切换控制系统与方法
CN110597475B (zh) * 2019-09-27 2024-05-24 深圳市嘉利达专显科技有限公司 一种多网口多主机医疗显示器的自动切换控制系统与方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171895A (zh) * 2017-07-01 2017-09-15 浙江省计量科学研究院 一种通信网络数据流量测量方法
CN108632859B (zh) * 2018-03-27 2021-02-09 深圳酷泰丰科技有限公司 单网卡兼容双物理接口进行数据传输的控制方法及系统
CN111586714B (zh) * 2020-04-21 2021-07-20 珠海格力电器股份有限公司 网络端口分配方法、装置、电子设备和计算机可用介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610893A (zh) * 2001-11-29 2005-04-27 英特尔公司 用于耦合基带处理器和应用程序处理器的可配置串行总线
WO2009091193A2 (ko) * 2008-01-17 2009-07-23 Bluebird Soft Co., Ltd. 단일 커넥터로 uart 및 usb 통신을 지원하는 휴대용 단말기 및 그 동작 방법
CN101577986A (zh) * 2009-06-02 2009-11-11 中兴通讯股份有限公司 移动通信终端
CN101751361A (zh) * 2008-12-16 2010-06-23 联想(北京)有限公司 控制移动终端中数据传输接口的切换方法及终端设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618776B1 (en) * 2002-08-15 2003-09-09 Logitech Europe, S.A. USB bandwidth monitor
WO2008093963A1 (en) * 2007-01-29 2008-08-07 Mtekvision Co., Ltd. Method and system for controlling of peripherals
CN101115261A (zh) * 2007-09-12 2008-01-30 中兴通讯股份有限公司 嵌入式系统上实现异类端口切换的系统和方法
CN101458556A (zh) * 2007-12-14 2009-06-17 联想(北京)有限公司 网卡的功耗和连接模式的动态控制方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1610893A (zh) * 2001-11-29 2005-04-27 英特尔公司 用于耦合基带处理器和应用程序处理器的可配置串行总线
WO2009091193A2 (ko) * 2008-01-17 2009-07-23 Bluebird Soft Co., Ltd. 단일 커넥터로 uart 및 usb 통신을 지원하는 휴대용 단말기 및 그 동작 방법
CN101751361A (zh) * 2008-12-16 2010-06-23 联想(北京)有限公司 控制移动终端中数据传输接口的切换方法及终端设备
CN101577986A (zh) * 2009-06-02 2009-11-11 中兴通讯股份有限公司 移动通信终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597475A (zh) * 2019-09-27 2019-12-20 深圳市嘉利达专显科技有限公司 一种多网口多主机医疗显示器的自动切换控制系统与方法
CN110597475B (zh) * 2019-09-27 2024-05-24 深圳市嘉利达专显科技有限公司 一种多网口多主机医疗显示器的自动切换控制系统与方法

Also Published As

Publication number Publication date
EP2493249B1 (en) 2015-11-11
EP2493249A4 (en) 2014-03-05
EP2493249A1 (en) 2012-08-29
CN102215500A (zh) 2011-10-12
US20120250567A1 (en) 2012-10-04
CN102215500B (zh) 2016-03-02

Similar Documents

Publication Publication Date Title
KR101924836B1 (ko) 고속 인터칩 통신 장치 및 방법
KR101464741B1 (ko) 전원관리 제어 장치 및 방법
WO1999059072A3 (en) Media manager for controlling autonomous media devices within a network environment
WO2013063972A1 (zh) 一种通信方法、通信装置及电子设备
JP2004534314A (ja) イーサネットの動的電力管理
WO2014005261A1 (zh) 存储扩展装置及服务器
TW200933355A (en) Power management method
US9128891B2 (en) Method, mobile terminal and computer program product for sharing storage device
JP2000232465A (ja) インタフェース制御装置及びインタフェース制御方法
US8589954B2 (en) Method and program for selective suspension of USB network device
US8756447B2 (en) Apparatus and method for transmitting a pause frame to a link partner to establish a transmission pause period according to a low data rate being detected
CN104244037A (zh) 媒体内容缓冲
JP5242100B2 (ja) 通信システム内のポートのアクティブ状態からスタンバイ状態への遷移
WO2011124067A1 (zh) 应用处理器ap与通讯模块间端口服务配置的动态变换方法及装置
JP5545853B2 (ja) 通信装置
WO2015007140A1 (zh) 一种控制方法、装置及光收发器
TWI712893B (zh) 資料傳輸格式轉換電路及控制其操作的方法
WO2018014627A1 (zh) 电子设备连接与安全验证、通信、通信监测方法及装置
WO2023184794A1 (zh) 一种设备控制方法、音响设备、控制台及存储介质
EP2739013B1 (en) Managing gateway access
US9619005B2 (en) Apparatus and method for saving power of USB device
WO2014117497A1 (zh) 一种网络处理的方法及装置
JP2000269961A (ja) Usbホストとネットワークとの間のデータ転送素子と、この転送を制御するフロー制御方法
WO2012167520A1 (zh) 自动功耗控制方法及系统
JP2004302778A (ja) インタフェイス装置

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010849303

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13516334

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE