Showing posts with label Bluetooth Ear Thermometer. Show all posts
Showing posts with label Bluetooth Ear Thermometer. Show all posts

Sunday, April 6, 2008

First logic view



New Logic program that logs ALL data from scope output with PORTMON


THESE ARE NOT THE SAME OUTPUTS, JUST SOMETHING TO COMPARE VOLT/LOGIC

Partial view from Parallax scope app




Made a couple of basic parameters for the app named, Input Voltage Low (Vil) , Input Voltage High (Vih) , and finally Input Voltage (Vcc) variables. If the 30/70% of Vdd rule is exceeed the value is changed to a 1 or 0 giving a stepped logical view instead of scope type of view with little voltage spikes and dips.

Saturday, April 5, 2008

Hex code decyphered, time to program

Here is a SS of the hex --> voltage chart. Simple pattern after the first .07. It is (5) .08 tehn a .07, all the way to the end.

I am in the processing of putting togethor a simple VB.NET with zedgraph component to read the output from PORTMON and plot it on a graph and if time permits ultimatly automaticall decipher the I2C messages.

App will be able to read the PORTMON data log file, look for the pattern of 55, data1, data2, AA and if all is valid (not more than 2 data sequences between the 55 and AA) output the data to a graph. The output captured from the scope is 50uS at 5V for both channels. Will also prob add in a logic mode that will use a couple of params at first to determine what is considered "HI" and "LOW" so it's not a voltage reference chart.

Friday, April 4, 2008

Portmon to the rescue

Well Portmon was able to capture all the messages sent/received to the oscilloscope, looks like data is sent. I setup a filter to include only IRP_MJ_READ and IRP_MJ_WRITE message types only. Here are the "good" messages that need to be deciphered or at least understood as a pattern.

******** SEND DATA REQUEST START ******
IRP_MJ_WRITE Length 1: AA
IRP_MJ_WRITE Length 1: 52
IRP_MJ_WRITE Length 1: F3
IRP_MJ_WRITE Length 1: 14
IRP_MJ_WRITE Length 1: 00
IRP_MJ_WRITE Length 1: 91
IRP_MJ_WRITE Length 1: 07
IRP_MJ_WRITE Length 1: 2D
IRP_MJ_WRITE Length 1: 05
******** SEND DATA REQUEST DONE ******

******** RECV ???ACCEPTED CMD??? ******
IRP_MJ_READ Length 1: 55

******** RECV DATA FROM SCOPE START ******
IRP_MJ_READ Length 1500: 7E 7E 7E 7E 7E 7E 7E 7E 7E .... (ch1 data)
IRP_MJ_READ Length 1500: 7E 7E 7D 7E 7E 7E 7E 7F 7E ....(ch2 data)
******** RECV DATA FROM SCOPE END ******

Above sequence loops until "STOP" button is pressed which shows up as a
IRP_MJ_WRITE Length 1: FF

Will decypher the data section tomorrow and post an excel file of results.

Osc. can't handle it

Well the oscilloscope does not do logical data logging and only captures what is on the screen and is unable to log to a file, what a limitation. I see the data flash on the screen but can not capture the entire data steam as an image or as a saved data file. Since it's USB probably has some USB --> Serial chip inside. Time to see what can be done to fix my needs w/o buying another scope.

I2C decoding

After reviewing the schematic was able to trace back on the board a test point I could solder some test leads onto. Time to hook it up to the 'ol Parallax USB oscilloscope and see what comes out.
Tap locations for I2C access
Interesting find I should have though of before. The 24wc02 chip is a 2K serial EEPROM for data storage. This model stores up to 3 temps in memory and looks like a good candidate for the place I need to tap into for the data.

No data

Well that did not work. Seems to be easy access for voltage tests. The middle two pads are for power and ground however. Since that did not work time to start looking at components on the board and possiblly output from ASIC(s) on back side for a new tap.

I need BT for my ear hole

Well kids are sick again and wife currently logs the son's name, date/time, temperature, and medicine (fever reducer) given. While the pencil and paper method works great I feel the need to apply modern technology.

We currently havea Braun Thermoscan type 6022 ear thermometer which has an interesting plug underneath the battery section. Might be a place to tap into what the temp on the LCD is.

Red square below is hopfully the sweet spot for an easy data tap.