.net 4.0 - Read Data From An External Hardware Device?
Feb 1, 2012
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 Replies
ADVERTISEMENT
Nov 30, 2010
I 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 Replies
Jun 22, 2010
I 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 Replies
May 16, 2011
I 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?
View 5 Replies
May 25, 2010
I'm trying to connect to an external device using a serial port. I found a couple of tutorials with demo code and tried these. Unfortunately they all return the same gibberish unreadible result.[code]I'm sure my port settings are correct (I have the communication protocol of the device.)
View 20 Replies
May 26, 2009
im trying to make vb.net translate input from an external device into keypresses. when bit = 1 i want the key down, when bit = 0 i want it up unfortunately with sendkeys it just sends the same keystroke over and over again. ive googled for days without finding a good answer.
View 7 Replies
Mar 15, 2010
How can I create a simple application to send timed controls to an external device?
What I need is to create a very simple application that sends control signals or voltages out to an external device connected via serial perhaps. The external device will in turn trigger some electromechanical devices. There needs to be 24 independent controls each with a simple command equivalent to on or off. What is important is being able to control the timings of the on and off on each control.[code]....
View 1 Replies
Dec 18, 2010
The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.
View 1 Replies
Dec 13, 2010
im from iran.your site very fine. i have a question . in my country have vary device that send it information by phone line(example:fax,POS...) if me connect it to my computer modem and my computer modem connect to phone line.how can i read information recived and sended.
View 3 Replies
Mar 16, 2010
How can I read SMS from mobile with my .net application? i have a Nokia 5310 mobile phone. Can you tell me from where i can download Nokia SDK or source code or Nokia API etc?
I want to make a custom application which reads SMS and at the same time sends a response to the sender's mobile number.
View 1 Replies
May 13, 2011
My current program can read in a continuous stream of data when initialized and I can send a command to retrieve the devices stored data, I also have within the same program code that will read an XML file and populate from controls.
I have two separate idea's right now that I'm trying to merge into one
I want to read in XML and populate my controls. I'm aware of delegate and Invoke but I'm having a hard time working them into my XML portion or the opposite "working my XML into my serial port class".
View 14 Replies
May 31, 2011
I am trying to write and read bytes from usb device.I have an array dout(8) of boolean say f,t,t,f,t,t,f,t representing switch states.I need to convert that to a variable DataOut as byte. 01101101 Later I read the usb device.This gives me a variable Data as byte 10110100 I need to convert that to an array DIn(10) of boolean t,f,t,t,f,t,f,f All my code attempts have failed.
View 2 Replies
Sep 9, 2009
how to read files from an USB mass storage device. I have found plenty of posts regarding drive letter detecting and reading the files. It's OK, but what about a device, where no drive letter is assigned - e.g. my mobile phone is visible under "My Computer" as "Mobile Device". The same situation it with my MP3 player. It's visible under "My Computer" as "Sansa device". Please, could anybody help me? I need to enumerate USB devices, identify, which ones have a file system and finally, I need to read/write a file to the file system.
View 2 Replies
Sep 27, 2010
I'm trying to read information from a device through COM Port.. Sometimes I receive information like:
[Code]...
how I can change that? or detect it so whenever the program receives that type of info it ignores it?
View 2 Replies
Jun 30, 2009
I like to read text from another application's buttons, labels and textboxes with the help of "SendMessage". I've tried so many different code examples, but nothing worked. Maybe somebody of you has a small VB.Net-Example on your harddrive and explain it a bit to me.
View 1 Replies
Sep 9, 2011
I have a situation where I have a vb.net program that uses two connection strings. This program will be used on multiple web servers on multiple domains and the only difference for any of them is the two connection strings.What would be the best solution to read in these connection strings from a file separate from my actual .vb code?
Ideally I want to be able to drop the .vb and the connection string file into its own folder on any number of asp.net websites and not update anything else (for example add any connections to the web.config or anything) than the external file containing the connection strings, I assume something like xml would suffice?
View 2 Replies
Sep 27, 2011
I am trying to extend some features of a external programm that is not able to use plugins or something. So I have to write my own app that reads the text from a textbox from this external application and trigger some own actions.
By using the FindWindow API in user32.dll I allready catched up the handle for the external application. But now I am kind of stuck. By using Spy++ from the Visual Studio Tools I got the information that the class name from the control I would like to read from is "WindowsForms10.EDIT.app.0.218f99c", but there are several of them. Additionally every time the external app starts it creates a new control id for the textbox I want to read.
View 2 Replies
Dec 25, 2010
with the hwnd = FindWindow(Nothing, "MsgBox Title")put in a Timer_Elapsed event i can get the Hwnd of a MessageBox launched from an external application. starting from the Hwnd there is way to get the text ot this message box?
View 5 Replies
Nov 10, 2009
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?
View 3 Replies
Mar 2, 2012
I 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).
View 1 Replies
Dec 2, 2009
I am using Visual Basic 2008 Express Edition. Some of the programs I am writing make extensive use of External files (saved games, data, item lists, etc.) I could use an easy way to get these files to ride allong during deployment (cd mostly). adding them to the resources works for some static pictures, but custom structures into lists of info to read and write from are beond that features abilities, same with the settings feature. I have found in other help referance to "MageUI.exe" so is downloading a .net SDK my solution or is there a better trick I can use?
View 2 Replies
May 5, 2010
how can i make my program feel if any device or usb device plugged into the computer or unplugged.url...
View 3 Replies
Nov 13, 2009
A 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 Replies
Oct 17, 2011
I 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 Replies
Aug 4, 2010
I'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 Replies
Mar 19, 2010
How can I read data from a HID device (USB RFID Reader)and which acts like a keyboard.
View 4 Replies
Feb 6, 2011
I 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
View 2 Replies
Jan 22, 2011
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.
View 2 Replies
May 27, 2012
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?
View 8 Replies
Jul 1, 2009
I 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 Replies