Jump to content

Recommended Posts

Posted

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

 

Posted

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!

My-Colors.jpg

cuniform2.gif

Posted (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 :lmao:

I'm sorry if I wasn't any clearer than that..I don't want to read/write files..Just bytes :ph34r:

EDIT: And I want to use AutoIt to do it :geek:

Edited by VicTT
Quote

Together we might liveDivided we must fall

 

Posted

Dont they show up in "My Computer" as a drive? They do for me.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted

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 :lmao:

I'm sorry if I wasn't any clearer than that..I don't want to read/write files..Just bytes :ph34r:

EDIT: And I want to use AutoIt to do it :geek:

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!

My-Colors.jpg

cuniform2.gif

Posted (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 by VicTT
Quote

Together we might liveDivided we must fall

 

Posted

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- #
Posted

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 :lmao:..

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

 

Posted (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 by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted

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!

My-Colors.jpg

cuniform2.gif

Posted

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

 

Posted

@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

 

Posted (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 by VicTT
Quote

Together we might liveDivided we must fall

 

Posted

From http://www.bluesoleil.com/products/index.a...mp;id=115319010

3.Specification

3.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?

Posted (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 by joseLB
Posted

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?

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...