VicTT Posted October 1, 2006 Posted October 1, 2006 How do you write data, and read data to an USB port?I assume it's through dllcalls..and how do you get a list of all connected USB devices, and obtain a handle to one of them, for reading&writing purposes? Quote Together we might liveDivided we must fall
Fossil Rock Posted October 1, 2006 Posted October 1, 2006 If you're referring to a pendrive or similiar device, it should show up as a drive like your hard drive or CD-Rom. Agreement is not necessary - thinking for one's self is!
VicTT Posted October 1, 2006 Author Posted October 1, 2006 (edited) No..I'm actually reffering to any device connected on an USB port on my computer (like a flash-drive), and the issue is reading and writing data to it..raw bytes..sending/receiving raw bytes from it I'm sorry if I wasn't any clearer than that..I don't want to read/write files..Just bytes EDIT: And I want to use AutoIt to do it Edited October 1, 2006 by VicTT Quote Together we might liveDivided we must fall
AzKay Posted October 1, 2006 Posted October 1, 2006 Dont they show up in "My Computer" as a drive? They do for me. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Fossil Rock Posted October 1, 2006 Posted October 1, 2006 No..I'm actually reffering to any device connected on an USB port on my computer (like a flash-drive), and the issue is reading and writing data to it..raw bytes..sending/receiving raw bytes from it I'm sorry if I wasn't any clearer than that..I don't want to read/write files..Just bytes EDIT: And I want to use AutoIt to do it A flash drive is a similiar device... treat it like a hard drive. Why would you want to write raw bytes anyway? Agreement is not necessary - thinking for one's self is!
VicTT Posted October 1, 2006 Author Posted October 1, 2006 (edited) It's not a normal USB device, LIKE a flash-drive (notice how I used the word "like"), and it is not seen as such.. I was thinking that there must be some way of accomplishing this, as I've seen a library for reading/writing data to a serial port..I figured if someone might want to give me a few pointers on where to look and what to look for, I could try and do it myself if time is the issue.. EDIT: It's a bluetooth usb device used to connect to other bluetooth enabled devices..I just didn't think it was relevant..But maybe it helps you understand what I want.. Edited October 1, 2006 by VicTT Quote Together we might liveDivided we must fall
AzKay Posted October 1, 2006 Posted October 1, 2006 It's not a normal USB device, LIKE a flash-drive (notice how I used the word "like"), and it is not seen as such..I was thinking that there must be some way of accomplishing this, as I've seen a library for reading/writing data to a serial port..I figured if someone might want to give me a few pointers on where to look and what to look for, I could try and do it myself if time is the issue..EDIT: It's a bluetooth usb device used to connect to other bluetooth enabled devices..I just didn't think it was relevant..But maybe it helps you understand what I want..Can we have the name of this device? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Fossil Rock Posted October 1, 2006 Posted October 1, 2006 What exactly is the device ? Agreement is not necessary - thinking for one's self is!
VicTT Posted October 1, 2006 Author Posted October 1, 2006 You can figure out the name just by looking at it..And I'll give you a few hints..It's BLUE, and it has "Bluetooth" written on it .. Does it really matter what its name is?The question was directed at a generic USB port..You'd still most probably have to write (through the use of device-specific dll's) to the usb port it's connected to anyway.. Quote Together we might liveDivided we must fall
AzKay Posted October 1, 2006 Posted October 1, 2006 (edited) Well, We cant know what to do, if we dont know what it is?Give us the name of the device, and we can do a search on it to see what it is, So then WE know.EDIT:You can figure out the name just by looking at it..We arent looking at it. Edited October 1, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Fossil Rock Posted October 1, 2006 Posted October 1, 2006 I know zilch about bluetooth other than hackers love to hack it... are you trying to hack a bluetooth device? Agreement is not necessary - thinking for one's self is!
VicTT Posted October 1, 2006 Author Posted October 1, 2006 No..I'm trying to rewrite badly-written software for it.. Other than that, it's a "Bluetooth Soleil" device..And that's all I know..I can probably pull out some more technical data from the drivers if it helps... But my point still stands..I don't think you can accomplish writing/reading from the device through DllCall's..So if you want to do things the low-level way, you'd open the USB port and start reading/writing from it..REGARDLESS of what the device is.. Quote Together we might liveDivided we must fall
VicTT Posted October 1, 2006 Author Posted October 1, 2006 @AzKay I tried to be as little sarcastic/ironic as I can be..Read my above post.. Quote Together we might liveDivided we must fall
Fossil Rock Posted October 1, 2006 Posted October 1, 2006 This... ? Agreement is not necessary - thinking for one's self is!
VicTT Posted October 1, 2006 Author Posted October 1, 2006 (edited) Hmm....Possibly..Bluetooth Soleil IVT is the only brand I can make out in the manual.. EDIT: Yep..it looks alot like mine.. Edited October 1, 2006 by VicTT Quote Together we might liveDivided we must fall
VicTT Posted October 1, 2006 Author Posted October 1, 2006 *bump Quote Together we might liveDivided we must fall
FuryCell Posted October 1, 2006 Posted October 1, 2006 Not sure but maybe this could be of some use to you.Bluetooth Programming with Windows Sockets HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Confuzzled Posted October 4, 2006 Posted October 4, 2006 From http://www.bluesoleil.com/products/index.a...mp;id=115319010 3.Specification3.1 Interface: - USB Version 1.1 compliant 3.2 Functions: - Main chip : CSR BC04- Bluetooth 2.4GHz~2.4835GHz license-free ISM Band frequency hopping- Connections within ranges up to 32.8 feet (10 Meters) (Varies depending on use environment) - Connect up to 7 devices in a Piconet- Data Rate : 2~3Mbps - Class 2 Bluetooth radio- RF module sensitivity : -80dbm at 0.1% Bit Error Rate (BER)- Security : encrypted link, authentication- Bluetooth profiles support includes: Generic access profile (GAP), Serial port profile (SPP), Object push profile (OPP), File transfer profile (FTP), Dial-up network profile (DUN), Fax profile (FAX) Synchronization Profile(SYNC) Personal Area Network(PAN) Basic image Profile(BIP) Headset Profile(HSP) Hardcopy Cable Replacement Profile(HCRP) A2DP (Advanced Audio Distribution Profile)HID Profile(HID)Sounds like a real chameleon! AutoIT supports FTP and there are many scripts and scraps on how to access a serial port.You will find that the Bluetooth low level drivers will emulate known devices and your script should be able to use these.Can you share a little more detail about what you are trying to do?
joseLB Posted October 4, 2006 Posted October 4, 2006 (edited) I would like to introduce another issue, but related: what about access to USB read/write for Serial Port Devices? I developed a PIC circuit that sends/receives seria port data, and now I intend to change it to work with USB, but emulating a serial port.I'm using AU3 up tp now read/write serial port on the PC (using some clues from this site), and now would like to change it to USB. ANy help?I heard about Virtual Com ports, do youbelieve that NetCommOCX would work?Jose Edited October 4, 2006 by joseLB
joseLB Posted October 4, 2006 Posted October 4, 2006 I would like to introduce another issue, but related: what about access to USB read/write for Serial Port Devices? I developed a PIC circuit that sends/receives seria port data, and now I intend to change it to work with USB, but emulating a serial port.I'm using AU3 up tp now read/write serial port on the PC (using some clues from this site), and now would like to change it to USB. ANy help?Jose I heard about Virtual Com ports, do youbelieve that NetCommOCX would work?
Recommended Posts