一种融合USB-CDC与JNI技术的数据通信方式  被引量:4

Data Communication Method Combining USB-CDC and JNI Technology

在线阅读下载全文

作  者:张海峰[1] 徐杭男 杨伟锋[1] 

机构地区:[1]杭州电子科技大学电子信息学院,杭州310018

出  处:《单片机与嵌入式系统应用》2017年第2期39-42,共4页Microcontrollers & Embedded Systems

摘  要:本文采用STM32F407为主控制器,根据板载USB接口的特点,设计基于通信设备类(CDC)的USB通信传输模块,然后在裁减配置好的Android系统上利用多线程读取由STM32采集到的原始数据并作处理;STM32利用ST公司提供的驱动程序,实现以USB设备为虚拟串口,利用Android源码编译Android程序的JNI部分的链接库文件以串行总线(COM)方式达到访问底层USB端口的目的。实验结果表明,该采集传输方式在数据稳定高速传输上性能显著。In the paper,the STM32F407 is used as the control core, according to the characteristics of on-board USB interface, a USB communication transmission module based on communication equipment class(CDC) is proposed. Then, the Android system which is well configured reads the original data collected by STM32 using the multi thread. The STM32 uses the USB driver provided by ST to change USB device to virtual serial port, and compiles JNI program which is loaded read USB port by the way of COM in the environment of An- droid source code. The experiment results show that the method is significant in data stable and high-speed transmission.

关 键 词:STM32F407 ANDROID USB-CDC 虚拟串口 

分 类 号:TN919[电子电信—通信与信息系统] TP334.7[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象