将 DTR/RTS 发送到基于 FTDI 的 Arduino 板后会发生什么? [英] What's going on after DTR/RTS is sent to an FTDI-based Arduino board?

查看:28
本文介绍了将 DTR/RTS 发送到基于 FTDI 的 Arduino 板后会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 sketch 以启用从 Android 设备上传到Arduino 板,它适用于 Duemilanove (FTDI-based) 和 Arduino Uno(ATmega-based)使用 rxtx(纯 Java).

I'm working over a sketch to enable uploading from an Android device to an Arduino board, and it works for Duemilanove (FTDI-based) and Arduino Uno (ATmega-based) when testing for PC/Arduino using rxtx (pure Java).

但在使用 USB-Android 库 因为尚未实现 setDTR/setRTS 方法.

But it does not work when using the USB-Android library as the setDTR/setRTS methods are not yet implemented.

FTDI Android 驱动程序 允许发送 setDTR/setRTS 信号,但无法发送/之后读取数据.

FTDI Android drivers allow the sending of setDTR/setRTS signals, but it fails to send/read data after it.

所以问题出在 Android USB API 上,我不知道出了什么问题..

So the problem is in the Android USB API and I can't figure out what's wrong..

切换 DTR/RTS 后,基于 FTDI 的 Arduino 板会发生什么?

What happens for FTDI-based Arduino boards after DTR/RTS are toggled?

我相信设备已重置并等待引导加载程序命令(STK500)~50-250 毫秒.我说得对吗?

I believe that the device is reset and waits for bootloader commands (STK500) for ~50-250 ms. Am I right?

推荐答案

答案是板子复位.原理图是按照它重置电路板的方式制作的(RTD/DTR 以某种方式连接到微控制器重置引脚).

The answer is that the board resets. The schematic is made in the way it resets the board (RTD/DTR is wired to the microcontroller reset pin somehow).

这篇关于将 DTR/RTS 发送到基于 FTDI 的 Arduino 板后会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆