首页> 外国专利> METHOD AND APPARATUS FOR REALIZING USB COMMUNICATION

METHOD AND APPARATUS FOR REALIZING USB COMMUNICATION

机译:实现USB通信的方法和装置

摘要

The disclosure provides a method and an apparatus for realizing USB communication; the method includes: step S1, when receiving a command sent by a host computer, a device determines a type of the command and returns enumerated general information of the device to the host computer if the command is an enumerating command, go back to step S1; if the command is a setting report command, the device acquires response data according to the setting report command and stores the response data, go back to step S1; if the command is a getting report command, the device selects a corresponding report size according to a size of current response data, acquires a second report identification corresponding to the report size, generates return data according to the acquired second report identification and the current response data and sends the return data to the host computer, go back to step S1.
机译:本公开提供了一种用于实现USB通信的方法和装置; 该方法包括:步骤S1,当接收由主计算机发送的命令时,设备确定命令的类型,并且如果命令是枚举命令,则返回步骤S1 ; 如果该命令是设置报告命令,则设备根据设置报告命令获取响应数据并存储响应数据,返回步骤S1; 如果该命令是获取报告命令,则设备根据当前响应数据的大小选择相应的报告大小,获取与报告大小相对应的第二报告标识,根据所获取的第二报告标识和当前响应生成返回数据 数据并将返回数据发送到主机,返回步骤S1。

著录项

  • 公开/公告号US2022004519A1

    专利类型

  • 公开/公告日2022-01-06

    原文格式PDF

  • 申请/专利权人 FEITIAN TECHNOLOGIES CO. LTD.;

    申请/专利号US202117478829

  • 发明设计人 ZHOU LU;HUAZHANG YU;

    申请日2021-09-17

  • 分类号G06F13/42;

  • 国家 US

  • 入库时间 2022-08-24 23:14:56

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号