主题 : 串口资源不够,有什么办法扩展 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 75438
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2012-08-08
最后登录: 2013-10-31
楼主  发表于: 2013-06-15 08:27

 串口资源不够,有什么办法扩展

串口资源不够,有什么办法扩展
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-06-15 10:19
我想你可以参考2440上的做法,通过USB device功能上的g_serial模块模拟一个串口。

http://www.aiothome.net/read.php?tid-1753.html
http://www.aiothome.net/read.php?tid-3551.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 75438
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2012-08-08
最后登录: 2013-10-31
2楼  发表于: 2013-06-15 12:27

 回 1楼(kasim) 的帖子

版主问下,这样的方法能用在hun上啊,我可以多扩展几个串口
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-06-15 16:36

 回 2楼(myprsp) 的帖子

抱歉,不可以。另外,Hub并不能增加USB设备的数量,只能增加USB Host的端口个数。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 75438
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2012-08-08
最后登录: 2013-10-31
4楼  发表于: 2013-06-17 08:02

 回 3楼(kasim) 的帖子

Hub增加USB Host的端口个数。在把增加的host转成串口是不行的吗