usb

Ada GNAT.Serial_Communications behavior on Linux

若如初见. 提交于 2019-12-11 12:09:54
问题 I have an Ada program that communicates with an Intellibox Basic(a box that allows you to control trains) that is connected via USB. Under Windows, I had to install a specific Serial driver (CP210x USB to UART Bridge VCP). With that driver I can communicate perfectly with the box. That means sending commands to the box. Under Linux I'm communicating via /dev/ttyusb0 and I'm able to get messages from the box, but I can't send commands to the box. Nothing happens. I don't get an error or

Reading data from serial port (COM3) using pyserial module on Windows XP

北战南征 提交于 2019-12-11 11:59:57
问题 Before going into the problem, here is some hardware/software information: Device accessed: Ohaus Scout Pro Digital Weight Machine (product link) Interface used: USB (product link) Serial Port: COM3 OS: WinXP Python Version: Activestate Python 2.7 pyserial version: 2.5 Python recognized this serial port and had no problems opening it. I am new to python as well as pyserial. I couldn't figure out how exactly can I read data from the serial port. I used the following code: 1 import serial 2 ser

Android Phone is not recognized on Ubuntu/Windows via USB

不羁岁月 提交于 2019-12-11 11:50:07
问题 I am using Samsung Galaxy 3. I have turned on the debug option and have connected the phone via usb to ubuntu/windows but the phone is simply not recognized. It was working perfectly fine i.e. recognized on ubuntu for me to work with Eclipse, until I decided to reboot the phone with usb still connected to the computer. I have tried rebooting the phone multiple times and everytime, when I plug in the usb, it simply charges and no notification of usb connection ever shows up. What am I doing

How to get the file path from a device acting as a usb mass storage in android

六月ゝ 毕业季﹏ 提交于 2019-12-11 11:44:58
问题 I am trying to get filenames(and also the filepath), from a Garmin device which acts as a usb mass storage. Connecting the device to the computer, the filepath is G:\Garmin. Connecting that to the android tablet using OTG and Explorer(i have check the app setting - the package name is : com.android.rk), the filepath is USB/Garmin. Using ES File Explorer, I have seen that the file path is mnt/usb_storage/Garmin. So in the code, as I am trying to parse the system.xml from the file path usb

Is there a portable python interpreter that will run on Mac OS X 10.6 from a USB key?

大憨熊 提交于 2019-12-11 11:06:48
问题 I've been running myself ragged trying to find a portable interpreter that I can run from a USB key on my work computer. Work comp is running Mac OS X 10.6, fairly restricted environment, no access to terminal, can't install apps but I do know that portable apps can be run from a USB drive. I've been using shell in a box to serve remote access to my comp at home over the web but out of respect for their network integrity I'd prefer not to. I've also just come across ideone.com which seems

How do I access information in Windows Device Manager in C++?

冷暖自知 提交于 2019-12-11 10:42:42
问题 How do I import Device Manager-like details of devices in my C++ code? I have tried Setupapi routines, but these do not give me Device Manager-like details of the device property value. 回答1: Something called Windows Management Instrumentation (WMI) can be used for this. 来源: https://stackoverflow.com/questions/29231470/how-do-i-access-information-in-windows-device-manager-in-c

Talk to USB device and vice versa from Flex

梦想与她 提交于 2019-12-11 10:28:17
问题 My co-worker is challenged with taking user input in Flex and using that data to execute commands on a USB device. We figured we would need to have a socket server running on the machine in order to do this. We want to send objects with byte arrays etc, not just strings. Is there anything out there that could help us? Do we need to write our own socket server, which I am afraid might take some time, or can we use any of the existing remote gateways like WebORB or FluorineFX and somehow use

How to communicate with GSM modem from c++ code

橙三吉。 提交于 2019-12-11 10:21:46
问题 I have huawei GSM modem and I wish to read and send SMS from my c++ application. Does anybody know how to establish communication from code (what are communication protocols, I know how to connect to serial port and read and write data there). I have read something about AT commands but don't know how to apply it. 回答1: You just sent the AT commands as strings via the serial port 来源: https://stackoverflow.com/questions/22662436/how-to-communicate-with-gsm-modem-from-c-code

How can we get data from iOS device using USB commands when its connected with Mac?

北战南征 提交于 2019-12-11 09:56:29
问题 When any iOS Device connected with Mac, I want device's all data in Custom developed desktop app (not Itunes), I want data like installed app list, all settings list, all installed provisioning profile list, all media content (iBooks, News, Videos, Music etc.), running application list, current screen of applications with the help of USB commands. In other words, I want all data (the data which we can take from iTunes) in my desktop app with the help of USB Commands. Is there any way to send

android: transfer sqlite database from pc to device via usb programatically

狂风中的少年 提交于 2019-12-11 08:47:57
问题 The situation is this. I have an application written in vb.net. it consists or two parts. One on a PC and the other on a handheld windows mobile 6 device . The desktop program transfers a SQLServer compact database to and from the handheld device using activesync via USB. Potentially we want to look into having android handheld devices also supported by this application. Now I know I can use SQLite with .net. I know I can use ADB to push and pull data (and therefore the database files) to and