首页> 外国专利> System and method for managing a serial port

System and method for managing a serial port

机译:用于管理串行端口的系统和方法

摘要

The present invention provides for a virtual serial port (VSP) situated between a serial port in a mobile electronic device, applications that require a serial port connection handle, and other applications that require command-mode access to the serial port. Data-communication applications (e.g. web browsing, e-mail, etc.) connect to the serial port through the VSP. The VSP creates a virtual connection handle that is returned to the application. Command-mode requests (e.g., short messaging requests) are received by the hardware abstraction layer, translated into command-mode messages (e.g., AT commands) and placed in a queue. The VSP multiplexes the serial port between the currently-open data communication session (data-mode) and command-mode messages by periodically suspending the currently-open connection and processing one or more command-mode messages that are in the queue. A buffer continually stores incoming data while the data communication session is suspended. The VSP uses a heuristic calculation to determine the maximum time interval for which the data-communication session can be interrupted. The heuristic calculation takes a percentage of a time-quantum (e.g. 0.5 seconds) based upon the ratio of an average bit rate for air communication (e.g. 7000 bits/sec) and a bit rate for the serial port (e.g. 152,000 bits/sec). This ensures that data-communications are not interrupted for a time interval long enough to result in lost data-packets. The parameter for the time quantum and other parameters may be statically or dynamically adjusted to account for a finite buffer size in the hardware.
机译:本发明提供了位于移动电子设备中的串行端口,需要串行端口连接句柄的应用程序和需要对串行端口进行命令模式访问的其他应用程序之间的虚拟串行端口(VSP)。数据通信应用程序(例如Web浏览,电子邮件等)通过VSP连接到串行端口。 VSP创建一个虚拟连接句柄,该句柄将返回给应用程序。硬件抽象层接收命令模式请求(例如,短消息请求),将其转换为命令模式消息(例如,AT命令)并放置在队列中。 VSP通过定期挂起当前打开的连接并处理队列中的一个或多个命令模式消息,在当前打开的数据通信会话(数据模式)和命令模式消息之间复用串行端口。在数据通信会话挂起时,缓冲区连续存储传入的数据。 VSP使用启发式计算来确定可以中断数据通信会话的最大时间间隔。启发式计算基于空中通信的平均比特率(例如7000比特/秒)和串行端口的比特率(例如152,000比特/秒)的比例占用时间量(例如0.5秒)的百分比。这确保了数据通信不会在足够长的时间间隔内中断,以免丢失数据包。可以静态地或动态地调整时间量的参数和其他参数,以解决硬件中有限的缓冲区大小。

著录项

  • 公开/公告号US2002147853A1

    专利类型

  • 公开/公告日2002-10-10

    原文格式PDF

  • 申请/专利权人 MICROSOFT CORPORATION;

    申请/专利号US20010788125

  • 发明设计人 ROMAN SHERMAN;SCOTT R. SHELL;

    申请日2001-02-16

  • 分类号G06F15/163;G06F9/54;G06F9/00;G06F3/00;

  • 国家 US

  • 入库时间 2022-08-22 00:49:30

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号