Reading Data From A HID Device?
Mar 19, 2010How can I read data from a HID device (USB RFID Reader)and which acts like a keyboard.
View 4 RepliesHow can I read data from a HID device (USB RFID Reader)and which acts like a keyboard.
View 4 RepliesI have a modbus TCP device that I have managed to connected to through my VB source code.
I want to poll (continueously read) data from certain registers of the device, and store the polled data in a file (text,csv, excel).
Using visual studio 2010 on a PC running Windows XP SP3 (32bit) I am trying to read the output from a serial device but only get timed out error?If I open hyper terminal I can see the output, so the hardware and connections are good and the command to send data is working as well?When debugging I have no errors, when the program is run (in debugging mode) I get a timed out error from after the do loop (test=2) All I want to do is have my device output printed to TextBoxLockOut.Text? Note "comstring" grabs my com port the serial device is using - on this computer it is com4, it is a public string
Dim inputline As
String = ""
Dim command As
String = ""
[code]....
I'm currently working on a project where I am transmitting data from a comm device via the serial port and resorting the raw data (in binary) to its respective ascii values. The problem I'm facing is determining the most efficient method to accomplish my goal. Essentially, I have 68 bytes coming in, the first and second bytes represent the page and packet number and the data itself ranges from 3 to 64, the remaining for my checksum.
What I am needing to do is, grab 50 consecutive bytes per variable in my array, and that is where I'm confused. I have easily pulled my 3-64 bytes and stored that data to a string. I just don't know the most efficient method to accomplish my goal. Should I write directly to file all my data, as there are like 8 pages, of 128 packet data. [Code] I can capture the the first 50 by using a for-loop easily, but what would be the preferred method to track what data chunk I've taken? The more I think about it, I think I may just want to write to file, all my data, and then just take them back to back in 50 byte chunks. Is that the most efficient method?
how can i make my program feel if any device or usb device plugged into the computer or unplugged.url...
View 3 RepliesA Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...
View 2 RepliesI have a usb instrument and a driver who's printed output dumps a data string to the computer I need to be able to read this string into vba The driver manual provides the content of the string but no info on how to access the data.
View 1 RepliesI've created a custom USB device using a PIC18F4550 and I'm having trouble with reading information from the device. The device sends reports without a request from the application as 64 bytes. I'm relatively new to VB and this is my first foray into USB as well... It's not going good. I've set the Vendor ID to Hex 1234 and the Hardware ID to Hex 0001. I've used different libraries and the timer to check for incoming reports, but I can't seem to figure it out. I've waded through pages of USB Complete and all kinds of code for mice and barcode scanners, but nothing so far that will do anything for my device.. how I can register the device and get the raw report from the device and display it in a text box
View 1 RepliesI have a sim card reader, that is a usb-to serial device. It has a sim card inserted. what i need to do is access that sim card to get the data, phonebook and sms for example. I CAN connect to the reader but i cannot send any commands or recieve any data.
What are the commands i could use to access data held on the device. The chipset is pl-2303
What is the best way to go about retrieving data from a proprietary hardware device that interfaces via HID USB? The particular device I need the data from is a blood-pressure/heartbeat measurement & monitoring device.The hardware came with software that downloads the data from the device and places that data into a (passworded/encrypted) MS Access database that I cannot connect to using programmatic methods, at least not without having the (admin's) password. The software provided produces reports, but the formatting renders them virtually useless (well, completely useless) for the needs of our company.
The device manufacturer provides to it's customers no API or any other technical information for accessing the data produced by their product; so, this pretty much leaves me stuck trying to figure out how to obtain the data via custom application in order to reclaim the initial justification for the expense associated with the hardware, which by the way has already been purchased.I don't need code snippits specifically, though examples would be nice; what I really need is to know is how to best approach this project, from a general design and programming stand-point.
I know how to send data to com or virtual usb-com if it has physical com port number listed under "Ports (COM&LPT)" tab in the Windows device manager
' sending to device with physical COM port number"
Try
Dim searcher As New ManagementObjectSearcher( _
[Code]...
But how to send data to the device listed in "Universal Serial Bus Controllers" tab without any physical COM port number?
I have developed a simple software using VB.net, now i want to receive some data from an external device,How to read a hardware transmitted data using VB.net, where hardware is attached to a USB port?"
View 1 RepliesI have an xml file stored on an web server and I need to read the data using vb.net for a smart device application.I also need the ability to select indvidual nodes of the xml file. It currently a simple file but will be expanded upon. [code] I need to access the name node to start with.
View 2 RepliesI need some sample code for sending data to the MIDI device on the computer? I'm not quite sure what the hardware's address is though.
View 2 Repliesust want to ask if its possible for me to measure how many bytes of data does a device sent to my computer using vb.net?
View 3 RepliesI am trying to read data from an external device using MSComm control but the problem is I am getting wrong data. I am recieving 1 byte data but the first three bits are wrong so anything greater than 31 sent from the external devices is recieved wrongly. eg. if I am sending 63(111111) from the device then the input from MSComm control gives me 159(10011111).Due to this reason I tried SerialPort from .Net framework and was surprised to see that it is working properly.
View 3 RepliesI have 20-30 devices that I am connecting to and gathering data from. I want to display six or seven lines of data for each device on the same screen, then allow the user to click the object containing the device and show more detail on a separate form. There aren't any other programmers where I work and am looking for advice on how most efficiently to implement this. I have tried TableLayoutPanels, Datagrids, Textboxes, ListBoxes and I am probably not implementing them right, but they don't seem to be getting me where I want to go. I am also trying to stay away from hardcoding objects onto the screen.
View 3 RepliesI know how to open a communications port and read data from a wired usb device.
How can I open a communications port to read data from a wireless bluetooth device?
I have USB device that is detected as human interface device (HID). The device has one button on it. I want to have more of same devices attached to one PC. I would like to simulate a click on that device (it is not a mouse!). It should be simple using Windows API, but I just can't seem to find an example or at least function that does that (I successfully found code that takes position of a MOUSE, and sends click to a MOUSE, but I need that for my HID). What i really need is an example how to simulate click on HID (something like joystick).Second question is a bit more complicated and I can't find a solution. The HID when button is clicked returns data (5-6 bytes). But data returned is immediately printed to the screen (like i typed it on keyboard) and it is followed by CR, however no data is left on clipboard. I don't know how to get that data to my program. Detecting keystrokes using Windows API (something like keylogger), or to make a control (richtextbox) and retrieve data from that control? Thou important notice is that my program is complicated, involves multithreading (cross-thread operations are a mess) and is TIME CRITICAL (as much as it can be on Windows - you get what I mean), so cross-thread access of control will slow me down a lot or even just won't work. Something like this:[code]Even if this problem is solved it still makes it buggy because user should be able to use GUI all the time.
View 5 RepliesIs there a way to search fast in text file? i have a 5mb text file and it is slow to search ..Im using Vs2008 (VB) and MC3100 WinCE 6 platform
Code
Private Sub DataHandler()
[code].....
I am developing an application which can connect to an ip address to transfer/receive data to the handheld device via gprs network.
View 2 RepliesI am writing a small app that is retrieving data from a device connected to a virtual com-port. I connect without problems to the device using the settings 9600-8-N-1.
I need to send the command <esc>MS , the device then sends back the data to a computer. I have tried this using Hyperterminal with success. I also did this with Excel and VBA. I used the MSComm32 Active X control:
MSComm1.Output = Chr$(27) + "M" + "S" + Chr$(13)
Msgbox(MSComm1.Input)
This made the data from the device pop up in a messagebox. I am writing a winforms app in vb.net, using VS2005. I have a form, on which I have a Placed a SerialPort control, named sp. My sample code is as follows:
Private Sub Form1_Load(ByVal
sender As System.Object,
ByVal e
[CODE]...
This returns the error message "Error: expecting a command". I have done som tests in HyperTerminal, and have concluded with:
-If I dont send <esc>, I get error "Expecting a command"
-If I send wrong command (ie MD instead of MS) i get error "Bad command"
Based on this, I suspect that I don't pass the escape character correctly to my device. So I wonder how to do this?
Data binding should be an extremely simple thing to manage but I can't find a SIMPLE solution to the following problem.
I have two forms
Form1 contains a 4x4 MSFlexGrid (unfortunately an unmanaged COM object but I can merge cells, which I can't do with a managed Datagrid)
Form2 contains other controls which change the data in the Flexgrid.
I connect the two with a Public 4x4 array. Form2 changes the data in this array. I can update the grid data by reading the array. But how do I bind the Grid to the array so that it auto-updates - which is the whole point of binding isn't it?
I am reading data from a socket (as bytes) and storing this data in a string. Then later i need to access specific bytes within the string and do some math with them. However the bytes that I read back from the string are not what I am expecting.
[Code]...
I've been asked to prepare a proposal for a client for a new development. The finished product will require copying of personal DVDs, e.g. a wedding or christening video, to AVI or similar format.
Is it possible in vb.NET to read data from a DVD and encode it as an AVI file? If so, can you give me some pointers to how I might research this more.
I am working in VB.NET 2003 and here is the issue of the day (for me):
I have an application which is supposed to read data from a CSV file one line at a time then pick out the 9th item ( a number) in the line and then add these numbers together for a total. The problem is the routine does not get beyond the first line. The code is as follows:
Dim total As Decimal = 0
Dim reader As StreamReader
Try
[Code]....
How do I get this routine to advance to the next line of the CSV file and continue to do so until it has read the last line?
how can i display data from a sql database in a listbox?
View 2 RepliesI need to display the MinAH price and the name of the item listed in the table. If possible, I would also like to make a listbox of all the servers/realms in World Of Warcraft, giving the user the ability to change the realm that they want from the list because the prices will be different. Another thing would be a specific item instead of the ones already listed in the initial table (see link if you don't understand). You can search items on the website, I'm not sure how I could incorporate this so the user can select a specific item.
View 1 RepliesI have been following tutorial from Bort and writed encrypted string to registry with this
[Code]...
Now I want to read that from registry and get the date witch is encrypted to decrypted to textbox so I can compare it to date.today. How can I get that date from registry. I have used this Tutorial: RSA Encryption in VB.NET and tried to get these trial version tutorials to work together.
I am doing my academic research on ARM MINI 2440 and "i want the code to read the data from sd card and send that data to the serial port.
View 16 Replies