473,765 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing a USB device

Hi,

I have a blood glucose meter (a Lifescan OneTouch Ultra in case anyone
was wondering) which I connect to my PC using a USB cable and I would
like to have a go at accessing the data on this device without having
to use the software provided by Lifescan. The software is free and is
okay but it's not very good at manipulating the data.

Although I connect my meter using a USB cable, it can be connected by a
serial cable (there is a 3.5mm input jack which the cable plugs into)
so I think the key to accessing the device is through the cable itself
and the drivers which come with it.

My question is really how do I even get started? I've looked around
for guides on accessing UDB devices and I can't really find much info.
I think I'm right in assuming that I don't try and access the device
directly but use the drivers provided.

Sorry to sound a bit dumb. Just a few basic pointers would be a great
help.

Thanks,

Jimmy.

Jan 23 '06 #1
2 7855
Jimmy,

If there is a serial connection, then you might want to consider using
that. It will be slower, but there are classes in the framework (2.0 and
up) which allow you to handle Serial devices.

You will want to use the classes in the System.IO.Ports namespace to
access the port to your device.

Beyond that, you have to figure out the protocol for getting the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Jimmy Reds" <ji************ ******@stormhea ler.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...
Hi,

I have a blood glucose meter (a Lifescan OneTouch Ultra in case anyone
was wondering) which I connect to my PC using a USB cable and I would
like to have a go at accessing the data on this device without having
to use the software provided by Lifescan. The software is free and is
okay but it's not very good at manipulating the data.

Although I connect my meter using a USB cable, it can be connected by a
serial cable (there is a 3.5mm input jack which the cable plugs into)
so I think the key to accessing the device is through the cable itself
and the drivers which come with it.

My question is really how do I even get started? I've looked around
for guides on accessing UDB devices and I can't really find much info.
I think I'm right in assuming that I don't try and access the device
directly but use the drivers provided.

Sorry to sound a bit dumb. Just a few basic pointers would be a great
help.

Thanks,

Jimmy.

Jan 23 '06 #2
Nicholas,

I've just had a look in one of the INF files that the driver CD
installed and it says the following in the first two lines :

; SERWPL.INF - INF file for USB-to-Serial Device
; Copyright (C) 2001, Prolific Technology Inc.

So I'm going to see if I can use the serial port classes to access the
device. I think the cable is simply a custom built USB to Serial
cable.

Thanks for the advice.

Jimmy.

Jan 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
10279
by: Fazer | last post by:
Hello, I have a MP3 and I want to access the songs in them. I was wondering if Python could help me do that. I understand that this can be done using Linux by mountig it as a file system, but I am not on Linux and this is mainly for a Windows platform. Can anyone shed some light? Thanks,
13
8177
by: lupher cypher | last post by:
Hi, I'm trying to access memory directly at 0xb800 (text screen). I tried this: char far* screen = (char far*)0xb8000000; but apparently c++ compiler doesn't know "far" (says "syntax error before *"). I've tried using __far, _far, FAR, _FAR, and __FAR, all with the same result. So, then I tried this:
4
15208
by: Bradley Grant | last post by:
Does anyone out there know of where I could find some C# example programs for accessing USB Devices. There just does not seem to be much out there on this subject. Even after doing a Google, Yahoo, Lycos search engines. Any feed back would be appreciate. Bradley
1
1464
by: john wright | last post by:
I am trying to access a Human Interface device on USB. It is a device that will lock the PC when you walk away. I read the article on Coding for fun on MSDN and it was interesting, but as always it was C# with scant VB details. What I am looking for would be a control that would communiate via USB or classes I can import or set references to. I just want to poll the device and lock the PC when someone walks away or the device is...
1
1763
by: walterbyrd | last post by:
I want my python app to read a file from a pocketpc mobile device, if possible. Assume I am running windows-xp, and activesync 3.8. Assume I have "exported" the file. As I understand it, exported files are not really on the PC, even after syncing. You have to use your stylus on the PDA to get to the file in question, then use your PC mouse to drag the file onto the PC. I hate this. As it is, to get to the file, I have to open "my...
37
1884
by: Neo | last post by:
Hi, I want to write a program that essentially connects to web, access some web page and pass some parameters and fetch the return values and print like LWP in Perl Context. Can some one suggest me what are the headers I might require and directions to such a documentation.
3
3995
by: john | last post by:
I would like to view physical memory that is mapped to a pci board. I am using a tool called WinIO to try to create a virtual address to that physical memory. It works for both read and write of some addresses, like 0x9FFF0. However, the resource the board uses is address at 0xE8100000 which I cannot pick up with the tool. I have confirmed that address in windows device manager and in the BAR0 entry in the table that the PCI board...
0
1253
by: xlar54 | last post by:
Im needing to access a PocketPC device via C#. Using Windows Vista and a PocketPC 2002. I found out that if you disable the service called Windows Mobile 2003, the device will still show up in My Computer as a valid device. (Vista doesnt like 2002 PocketPCs). The question I have though, is how to actually access this device in code.
2
3026
by: wizche | last post by:
Hi, I'm currently trying to develop a IR Remote (TV consumer) listener in C under Linux. First of all I tried with an old notebook with an integrated IR peripheral (FIR)under Debian (kernel 2.6). All seems to work fine, I can also access directly with #cat /dev/ttyS1 And my listener (written in C) work pretty fine. Problems came up with a newer notebook with Ubuntu 8.10. I set FIR in Bios like the older notebook. But trying to access...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.