usbserial

USB Modem is echoing back wrong characters

笑着哭i 提交于 2019-12-04 04:17:02
问题 I have a USB modem connected on port ttyACM0. When I open an application like Minicom and try to send it some commands, the echo back is not always what I type. For example, if I type in "A", I get "@". If I type in "T", I do get "T". It seems that the serial port is stripping the least significant bit off of my transmission. For example: A = @ B = B C = B D = D E = D F = F ... and so on. I assume there is something wrong with my serial port configuration, but I've tried what seems like every

Reading data from Arduino UNO R3 kit

我的梦境 提交于 2019-12-03 21:06:04
问题 I'm trying to read the data already stored by me in the Arduino kit , I'm using the physicaloid library to achieve this. I tested the kit (reading data) by connecting it to my PC using the Type B USB cable provided by Arduino itself and using Tera Term . The data begins to transfer after I press '@' on the keyboard (specific to our implementation). But when I connect it my Android tablet and use the test project by physicaloid to open a device and start communicating, every time I click 'open

Android: RS232 Serial Communication with android device

折月煮酒 提交于 2019-12-03 13:54:47
问题 I have a MR400s taximeter hardware. I want to communicate with this taximeter using RS232 cable and I have already achieved this connection and communication in windows. But I wanted to make connection using android device. How can I achieve this? Thanks Ishan jain 回答1: I use the USB to serial library, you can find it here: USB Serial for Android. It doesn't require any root access. You'll need to check if your Android device supports USB host mode. Then, using a usb OTG cable and a USB to

USB Communication with Android/Arduino

可紊 提交于 2019-12-03 10:29:37
问题 I am working on this Android application that needs to communicate over USB. I have an Archos 101 Tablet (specifications here: http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en). It has a full USB host port. I can put a flash USB drive in the USB port and copy files to and from the flash drive onto internal storage. I have this Arduino Fio board, with an XBee attached to it. I have an XBee Explorer Dongle with another XBee that I plan to hook into the Archos 101

Android: RS232 Serial Communication with android device

不问归期 提交于 2019-12-03 03:50:03
I have a MR400s taximeter hardware. I want to communicate with this taximeter using RS232 cable and I have already achieved this connection and communication in windows. But I wanted to make connection using android device. How can I achieve this? Thanks Ishan jain I use the USB to serial library, you can find it here: USB Serial for Android. It doesn't require any root access. You'll need to check if your Android device supports USB host mode. Then, using a usb OTG cable and a USB to serial adapter cable you can start communicating with your serial device via RS232. There are code examples to

USB Communication with Android/Arduino

故事扮演 提交于 2019-12-03 01:05:20
I am working on this Android application that needs to communicate over USB. I have an Archos 101 Tablet (specifications here: http://www.archos.com/products/ta/archos_101it/specs.html?country=us&lang=en ). It has a full USB host port. I can put a flash USB drive in the USB port and copy files to and from the flash drive onto internal storage. I have this Arduino Fio board, with an XBee attached to it. I have an XBee Explorer Dongle with another XBee that I plan to hook into the Archos 101 tablet into the USB port. As of right now, I can put the XBee Explorer Dongle into my computer and send

How to identify UNIQUELY a USB Device?

扶醉桌前 提交于 2019-12-02 23:09:12
Is it possible to identify a USB device by a unique identifier like an Operating system has Mac-ID, Harddisk ID, Ethernet card ID has unique identifiers? I know one can easily change the volume serial number of USB partition or it could be changed when user Formats it. But is there an ID some kind of 'USB Harddisk ID or USB Hardware ID' which could be retrieved via MFC's (Visual C++ or C#) using the WMI Service? Will such an identifier be unique to the physical device? Kindly clarify... The closest equivalent of a "unique number" available in any USB device is the VID and PID, the vendor and

How to find out which USB-RS232 device is on which tty?

喜欢而已 提交于 2019-12-02 14:18:42
I have two different USB devices based on the same USB-RS232 chips. When I plug those in the USB they are mounted to /dev/ttyUSB0...3 My problem is how, inside a script, I can find out which one is on what tty? Using lsusb I can differentiate them: $> lsusb | grep 0403:f850 Bus 004 Device 002: ID 0403:f850 Future Technology Devices International, Ltd $> lsusb | grep 0403:6001 Bus 004 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC And using dmesg I can tell where they were mounted: $> dmesg | grep 'FTDI USB Serial Device converter now attached'

ftdi d2xx conflict with ftdi_sio on linux - How to remove ftdi_sio automatically

╄→尐↘猪︶ㄣ 提交于 2019-12-01 23:05:07
I have a rf-reader with ftdio usb to serial chip. I was able to write a program to control it using ftdi d2xx library. So far so good. The issue is that when the reader is reconnected to the PC I have to remove ftdi_sio and usbserial mods using this command: sudo rmmod ftdi_sio sudo rmmod usbserial I can't use ftdi d2xx library to connect to the reader if I don't run the code. I want to be able to add a udev rule so whenever the reader is connected kernel unload the ftdi_sio and usbserial (or not load them in first place) I've added a new udev rul to /etc/udev/rules.d with name 99-ftdi-sio

Arduino Android USB connection

这一生的挚爱 提交于 2019-12-01 10:37:59
I am using an Arduino Duemilanove and Nexus 7 . I have successfully detected the Arduino board and displayed the vendor id and product id. I am trying to transfer data from my tablet to the Arduino board and trying to blink the LED on the board. The code for Android is as follows. Main Activity.java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); UsbDeviceConnection connection; HashMap<String, UsbDevice> deviceList = manager.getDeviceList();