linux查看cp2102,微雪电子CP2102(type A)USB转USART简介

CP2102 USB转UART串口模块 type A接口

支持对外供电:5V或3.3V 支持Mac、Linux、Android、WinCE、Windows 7/8/8.1

型号 CP2102 USB UART Board (type A)

747d881bd766bbe14f151bb2a7323eb9.png

2d45a727dc545fea5a6cbccc8c348109.png

04c3dd693ccb82f57314210a311750c7.png

ab4af22e2dcb73cedb84ac298a6ea527.png

5854ea1067bb893c37b5f7dd34c8dc86.png

本产品不带USB线。

产品简介CP2102特性:

单芯片USB转UART数据转换器

无需外部电阻,无需外部振荡器;片内上电复位电路,片内电压调节器

集成1024字节EEPROM(可用于存储各类信息)

USB功能

符合USB2.0规范,全速(12Mbps)

SUSPEND引脚支持USB挂起状态

UART功能

所有握手和调制解调器接口信号

支持的数据格式:数据位:5,6,7,8;停止位:1, 1.5, 2;校验位:奇校验,偶校验,无校验

波特率300bps至1Mbps

576字节接收缓冲器;640字节发送缓冲器

支持硬件或X-On / X-Off握手

支持事件状态

虚拟COM口器件驱动支持

Windows 8/7/Vista/Server 2003/XP/2000

MAC OS-X/OS-9

Linux 2.40或更高版本

USBXpress驱动支持

Windows 7/Vista/Server 2003/XP/2000

Windows CE

温度范围

-40至+85度

产品特性:

支持Mac、Linux、Android、WinCE、Windows 7/8/8.1/...

支持对外供电:5V或3.3V

带USB保护器件:SP0503

带3个LED:TXD LED、RXD LED、POWER LED

TXD、RXD、RTS、CTS:采用弯排针引出

其余功能PIN:预留焊盘,可上插或下插接入用户系统(配送排针、排座;PIN间距支持插入万用板)

使用说明:(以接入MCU为例)

VCCIO:输出3.3V或5V(模块由USB供电,须将跳线帽跳到3.3V或5V)

GND:接GND

TXD:接MCU.RX ( 信号流向:MCU.RX << CP2102 << PC.TX )

RXD:接MCU.TX ( 信号流向:MCU.TX >> CP2102 >> PC.RX )

RTS:接MCU.CTS ( 信号流向:MCU.CTS << CP2102 << PC.RTS )

CTS:接MCU.RTS ( 信号流向:MCU.RTS >> CP2102 >> PC.CTS )

注意:该模块为USB转TTL电平,切勿直连RS232电平,以免烧坏模块。

【 特别说明:我们提供VCP(虚拟串口)的开发范例,提供USBXpress的驱动程序库,但不提供USBXpress的技术支持 】

产品图片

2d45a727dc545fea5a6cbccc8c348109.png

76adc7a401c1c2b957daf3a7a017e118.png

b76953aed227d67a2c07b101aed7c19f.png

0291aca5926b8f85b560ea26da8c0705.png

2e7aa054c22c848d18ce10f3c1170a30.png

This bundle contains a modified CP210x driver for the 4.10.0 kernel (Ubuntu 17.04). It contains: - Support for the CP2102N NOTE: This driver is an example of how to perform GPIO operations within the CP210x driver since the driver on kernel.org does not support GPIO at this time. This driver has only been written and tested on the Linux 3.13.0 kernel on Ubuntu 14.04. This driver is a modified version of the existing driver in the Linux 3.13.0 kernel, which is maintained at kernel.org. It is recommened to use the driver there that matches your specific kernel version: www.kernel.org Build instrutions: Ubuntu: 1. make ( your cp210x driver ) 2. cp cp210x.ko to /lib/modules//kernel/drivers/usb/serial 3. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko 4. insmod cp210x.ko RedHat: 1. yum update kernel* //need to update the kernel first otherwise your header won't match 2. yum install kernel-devel kernel-headers //get the devel and header packages. 3. reboot //your build link should be fixed after your system come back 4. make ( your cp210x driver ) // should be able to build successfully at this point 5. cp cp210x.ko to /lib/modules//kernel/drivers/usb/serial 6a. insmod /lib/modules/<kernel-version/kernel/drivers/usb/serial/usbserial.ko 6. insmod cp210x.ko 7. sudo chmod 666 /dev/ttyUSB0 8. sudo chmod 666 /dev/ttyUSB1 GPIO example: This shows how to use the two IOCTLs to set GPIO state. Build instructions: 1. g++ cp210x_gpio_example.c -o cp210x_gpio_example 2. ./cp210x_gpio_example
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值