OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Reverse engineering an IR protocol, For Accu-chek blood glucose meter
Guest_Guest_*
post Oct 18 2004, 05:27 AM
Post #16





Guests






QUOTE(lardman @ Aug 11 2004, 05:14 PM)
All looking good. I downloaded portmon from http://www.sysinternals.com

Nice bit of (free!) software, respect to the authors.

I have captured the PC side (and this is what I want to emulate) of a couple of conversations. Time to start comparing the hex with the data I know was in the unit.

It actually looks reasonably simple:

IOCTL_SERIAL_SET_BAUD_RATE: 9600

IOCTL_SERIAL_SET_RTS

IOCTL_SERIAL_SET_DTR

IOCTL_SERIAL_SET_LINE_CONTROL: StopBits: ERROR Parity: NONE WordLength: 8

IOCTL_SERIAL_SET_CHAR: EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13

IOCTL_SERIAL_SET_HANDFLOW: Shake:1 Replace:40 XonLimit:0 XoffLimit:4096


Not sure what the StopBits: ERROR means (other than it's trying to use an illegal value - can you have no stop bit?). Any guesses?


Si

P.S. I've stuck up a web page about this: http://sgp.zaurii.net/howtos/accu-chek.html

No actual data yet, but I'll put it up there and report back here as I progress.

How do I make a call to this IOCTL_SERIAL_SET_HANDFLOW: without having the windows DDK? I am trying to set the values using Win32 function calls.

If you have any info please email me at peterd_33014@yahoo.com

thanks in advance.

-Peter
Go to the top of the page
 
+Quote Post
Guest_Guest_*
post Oct 21 2004, 08:26 AM
Post #17





Guests






Hello,

I am from Germany and in my computer science lessons at school I want to programm a Diabetes-Management-Software with Delphi.
But there are some problems: I've downloaded a rs-232-monitor-tool for testing the communication to the hardware.
It doesn't matter which caracter I send, the meter doesn't power on and I always reseive a String: Something like a "Y".
Please take a look at the screenshot...:
http://www.basicmotion.de/sonstiges/rs232.jpg

The computer communications port is set to 9600 baud, 8data bits, 1 stop bit.
What do I make wrong? Where is the problem?
I just can't find any solution :-(
So please help me,
Thanks,
Anton
antonbischof@web.de
Go to the top of the page
 
+Quote Post
khafra
post Oct 29 2004, 01:01 PM
Post #18





Group: Members
Posts: 18
Joined: 30-April 04
Member No.: 3,080



Speaking of reverse engineering IR protocols, I'm thinking of getting a casio camera watch, but don't have an ir port on my pc. What's more, I tried talking to a clie by using the ir applet on pdaXrom and couldn't even get started. How difficult would that be?


http://www.i4u.com/reviews/casiowristcamerareview_i4u.htm (they're pretty cheap now on Ebay)
Go to the top of the page
 
+Quote Post
lardman
post Feb 1 2005, 04:12 AM
Post #19





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



I have a copy somewhere at home, I'll find it and email you.

BTW where has it gone? It should be attached to the page.

Have all attachments vanished, or just this one?

Cheers,


Si
Go to the top of the page
 
+Quote Post
lardman
post Feb 2 2005, 05:36 AM
Post #20





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



http://people.bath.ac.uk/enpsgp/Zaurus/metertest.pl

Edit: Moved slightly, I've changed the link above to match the new location.

Si

This post has been edited by lardman: Aug 27 2007, 07:32 AM
Go to the top of the page
 
+Quote Post
bob_070
post Feb 2 2005, 09:21 AM
Post #21





Group: Members
Posts: 1
Joined: 2-February 05
Member No.: 6,385



I think all attachments got lost when the forms moved servers.

Can you also provide that log file again? http://sgp.zaurii.net/howtos/accu-chek.html is no longer a valid address. It would be really helpful to me.

Thanks!

Bob
Go to the top of the page
 
+Quote Post
lardman
post Feb 2 2005, 09:50 AM
Post #22





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



http://students.bath.ac.uk/enpsgp/Zaurus/accu-chek.html


Si

P.S. I received an email from a chap who was interested in adding support for this meter to the KPUMPE Project (of which I'd never heard I must admit). It seems to be a blood sugar analysis program, and OpenSource, just what I wanted :-) (though I'm sure there'll still be a place for Octave/R analysis too ;-))

This post has been edited by lardman: Feb 2 2005, 09:56 AM
Go to the top of the page
 
+Quote Post
Entropy
post Mar 20 2005, 03:12 PM
Post #23





Group: Members
Posts: 3
Joined: 13-August 04
Member No.: 4,285



QUOTE(lardman @ Feb 2 2005, 05:50 PM)
http://students.bath.ac.uk/enpsgp/Zaurus/accu-chek.html


Si

P.S. I received an email from a chap who was interested in adding support for this meter to the KPUMPE Project (of which I'd never heard I must admit). It seems to be a blood sugar analysis program, and OpenSource, just what I wanted :-) (though I'm sure there'll still be a place for Octave/R analysis too ;-))
*

I haven't been here in a while. (BTW, I'm not a Zaurus user, this was just the only place I could find any protocol information.)

Annoying that my attachment got nuked, good thing you've mirrored it, although I'm pretty sure I still have it on my laptop. I still need to do some serious cleaning up of that script, I've just been too busy with other stuff to actually DO anything. smile.gif

BTW, could you post a communications log of the Compass software setting the meters' time? I'd love to be able to add time setting functionality to my meter.
Go to the top of the page
 
+Quote Post
lardman
post Mar 21 2005, 02:06 AM
Post #24





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Will do.


Si
Go to the top of the page
 
+Quote Post
lardman
post Mar 27 2005, 03:22 AM
Post #25





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Right, here are two files which should be pretty much identical (they're not of course) except that on one the time was changed, and on the other I said no when the dialog window came up.

http://students.bath.ac.uk/enpsgp/Zaurus/P...bs_readings.zip

http://students.bath.ac.uk/enpsgp/Zaurus/P...d_date_time.zip

The time on the meter when it was changed was about 11:01:41, and the PC time (to which it was changed - GTM->BST) was 12:00:10 or so.

Let me know how you get on,


Si

P.S. I do wonder about releasing my blood sugar history in this way :-D. By way of an excuse for those who do look at the data, Saturday's readings were affected by my staying at a friend's house after a night out and not having much with me (no meter - makes life difficult when you go to bed very drunk and tired, and wake up the same way ;-) and then having to play it by ear (in terms of when/how much insulin to give myself) for the rest of the day (which I obviously got wrong in the end). My hba1c is still about 5% though so I can't be doing it all wrong :-).
Go to the top of the page
 
+Quote Post
mohanc@ozemail.c...
post Mar 31 2006, 12:05 AM
Post #26





Group: Members
Posts: 3
Joined: 30-March 06
Member No.: 9,495



QUOTE(Entropy @ Aug 13 2004, 07:54 PM)
Attached is a somewhat cleaned-up version of my Perl script.  It's still a mess.  smile.gif There are a lot of print statements commented out - uncomment them to see what the meter is spewing back.

This version actually pretty-prints the results and times.
*
Go to the top of the page
 
+Quote Post
mohanc@ozemail.c...
post Mar 31 2006, 12:09 AM
Post #27





Group: Members
Posts: 3
Joined: 30-March 06
Member No.: 9,495



QUOTE(Entropy @ Aug 13 2004, 07:54 PM)
Attached is a somewhat cleaned-up version of my Perl script.  It's still a mess.  smile.gif There are a lot of print statements commented out - uncomment them to see what the meter is spewing back.

This version actually pretty-prints the results and times.
*
Go to the top of the page
 
+Quote Post
mohanc@ozemail.c...
post Mar 31 2006, 12:18 AM
Post #28





Group: Members
Posts: 3
Joined: 30-March 06
Member No.: 9,495



QUOTE(Entropy @ Aug 13 2004, 07:54 PM)
Attached is a somewhat cleaned-up version of my Perl script.  It's still a mess.  smile.gif There are a lot of print statements commented out - uncomment them to see what the meter is spewing back.

This version actually pretty-prints the results and times.
*


Could you please email me your perl script with a brief word on how to run it. I don't know how to run a perl script. I want to be able to download my accu-chek readings using your perl script if that is ok.


My email is mohanc@ozemail.com.au

Thanks
Mohan
Go to the top of the page
 
+Quote Post
lardman
post Mar 31 2006, 02:14 AM
Post #29





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



It's on my web site.

Under Linux just make sure it's executable and run it (you ought to have perl installed by default).

Under Windows, install perl and then you can probably just double click on the file (assuming it registers a handler for the .pl extension).


Si
Go to the top of the page
 
+Quote Post
NetAmp
post Aug 15 2006, 12:49 PM
Post #30





Group: Members
Posts: 1
Joined: 15-August 06
Member No.: 10,808



Hi guys, great stuff going on here.

One question though, about the Perl script.
Can I use my laptop's built-in IR port? I am quite certain that it resides on COM4:, but it seems that it's only activated when I put another device, like my mobile phone or my Zaurus PDA in front of the IR port/'window' on my laptop.

Do you guys know how to set it up, so that I can use it for 'normal' serial communication with a device (Accu-Chek Compact Plus meter in my case)?

I'm using (Active)Perl v5.8.8 on Windows XP.

Maybe i'd be better off when just booting Linux on my laptop; sadly I'm a Windows:P user most of the time (sorry laugh.gif)

First I couldn't get the Win32API module to work, but the solution turned out to be simple for me:
I just had to type this at the Command Prompt to completely install it from the ActivePerl site:
CODE
ppm install Win32-API

Maybe someone else will be helped by this smile.gif
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th July 2014 - 09:18 PM