PDA

View Full Version : Exploring the 9500i USB capabilities



jimbonzzz
08-14-2007, 02:42 PM
One of the interesting things about the 9500i is the USB port, which will be used in the future when Escort releases software for it....

But in the mean time my curiosity got the best of me, and I just couldn't resist trying to get it to do SOMETHING. So just for fun, I decided to see how far I could get with it.

First off, although I've written several applications for RS-232 both in my day job and as a hobbyist, I'm no USB programmer. Prior to this have never attempted to develop anything for USB before. So I did some research which amounted to a crash-course in USB software development under Windows to see what I could do with the 9500i.

Since the port on the 9500i is a standard mini-USB port, I plugged in a cable I had for a camera. I powered the 9500i from a DC power source, and the computer detected and installed the 9500i as a Human Interface Device (or HID). From what I read, one advantage to making a device HID compliant is so that it doesn't need special device driver, and can use the windows HID driver which be present on all modern PCs.

So, I began my quest for a software interface for communicating with it...

Enumerating the USB devices yielded the vendor & product ID's: Vendor ID: 10C4, Product ID: 82D8. The Vendor ID is for Silicon Labs, they offer several products. I haven't yet disassembled my 9500i, but from the FCC photos the "USB chip" appears to have 7 pins per side or 28 total pins. So as for the actual part, a guess might be Silicon Labs' C8051F321, C8051F327, or C8051F326.

http://img521.imageshack.us/img521/617/usbchip2dv7.gif

Here's a screenshot of the test software I wrote to try and communicate with the 9500i:

http://img523.imageshack.us/img523/9696/screenshotco4.jpg

Here's what it does:

It should automatically detect if the 9500i is connected, and also when you plug or unlug it. (For those programming types who might be reading this, I subclass the window to detect WM_DEVICECHANGE messages)

The software reads the manufacturer, product, and serial number from the 9500i when you click the "Display Device Information" button. As for the "serial number" it reads, I'm not sure what it might be used for. I also don't know if this number is different on individual 9500i's, or the same for all of them, would be interesting to find out. I can tell you this much: the serial number which was read out of my 9500i does not match the serial number on the bottom of the case.

The software allows you to send and receive raw data to/from the 9500i, although this doesn't really do anything for you. I've never been able to read any data from it: all of my read attempts time out. My guess is that it needs to be sent specific byte command sequences first, in order to actually read any data from it. I've tried sending several different blocks of data to it, but of course not every possible combination of the 45 byte buffer :) As for writing: the API doesn't report any errors, so I assume the data is being sent to the 9500i (not that the 9500i seems to care). One interesting thing I noticed here was that it only accepted "Report ID's" of 1 and 2. I tried briefly on an old Windows 98 PC, and using a report ID of 0 worked on those? Not sure why. As someone mentioned on here, holding down MRK and BRT while plugging in the 9500i brings it up into a "USB Mode" of sorts. No luck reading in this mode either.

There's also some buttons to test many of the raw Windows API calls for communicating with a USB device, which are available when you go to View > API Test Buttons. These won't mean much to most people.

If anyone wants to mess around with the software, you can download it from HERE (http://www.guysoflidar.com/files/9500itest.zip). I would only recommend for advanced users. Be sure to read the disclaimer! You'll need a 12V DC power supply for the 9500i, a mini USB cable to connect the 9500i to your PC, and of course a 9500i. To get started, connect the USB cable from your 9500i to your PC. Then, power up the 9500i. The PC should detect the 9500i and install it as a HID device. If it does not, then my software will not work. Once it is detected and installed, the software should see it.

Jim

CJR238
08-14-2007, 03:00 PM
Wow, very cool that someone finally tried to get in to the 9500I USB.
The one thing that stood out to me on there patent was the ability to adjust the speed sensitivity mark from 15mph up to 55mph (if I remember correctly) via the USB. Hopefully some day they, or someone will come up with software that can communicate with the 9500I.

Very cool.

SmaartAasSaabr
08-14-2007, 04:56 PM
Dang now I have to go outside with my laptop :P

madmax31
08-15-2007, 01:05 AM
great job..

may be this initiative will trigger escort guys to release a official software which will do his job. :?

jimbonzzz
08-15-2007, 08:55 PM
If anyone reads the "serial number" using my utility, PM me. I would be interested to know if they're different from unit to unit (I blurred mine in the screenshot ) :wink:

thestaton
08-15-2007, 09:22 PM
this is cool. When you get the plus 25DB patch I'll have one overnighted to me :)

SmaartAasSaabr
08-15-2007, 11:29 PM
If anyone reads the "serial number" using my utility, PM me. I would be interested to know if they're different from unit to unit (I blurred mine in the screenshot ) :wink:

Unfortunately I'm trying to do this in the house on my Vista Ultimate desktop which gives me a "driver cannot start" problem with the "USB Human Interface Device". The "Check for solutions from Micro$oft" doesn't give anything, and update driver does nothing. If I click any of the buttons on your app it crashes immediately, probably because of the driver conflict. I can find some weird alphanumeric strings I can't comprehend (well aside from perhaps being hex) in the driver details I could forward...

Though I can't get GPS signal (edit: There it comes) from indoors so maybe that is the issue, and power fed to the detector is only about 12 VDC not a healthy 13+... I'm going to try it out in the car with the laptop (Vista Home Premium, maybe my old 1998 Thinkpad w/Win XP)tomorrow.

-Update

I rebooted into XP (same PC) and now it recognized the 9500i without a driver problem. The 9500i app sees the 9500i and comes up green, but if I click any buttons I still get the "Runtime error 53".

citizenjoe
09-08-2007, 12:40 AM
I got the program to work on mine

I had to download this file, unzip the it, then copy the file to c:\windows\system

http://www.intel.com/intelpress/usb/Examples/ZipFiles/apigid32.htm

All it does is read the USB device info... it would be nice to have something with which to interface with the 9500i.

Also you can power the 9500i from your computer!
take a female molex connector, put the yellow wire to the +12V and the black to the ground on a female automotive power connector...

GeoTracker
09-21-2007, 03:37 PM
This is from Escort after I emailed and complained that Cobra has already created a USB download software for their new detector.

Currently the USB port is only used internally. In the future you will
be able to download and save your marked locations, and download other
customer's saved locations. In the far future, you will also be able to
download software from us using the USB port. We have no time line on
when these functions will be available, but our engineers are currently
working on them. We will announce any new capabilities on our website.
The 9500i was not the first detector to have this feature and it won't
be the last, but we want to make sure it is the best.
Thanks for your interest in Escort!

I wonder if there are enough people who could hack this thing and beat Escort to the punch.

CJR238
10-30-2007, 09:12 AM
I wonder if there are enough people who could hack this thing and beat Escort to the punch.


Has anyone been successful yet?

Cruiser66
10-30-2007, 11:52 AM
I can't wait till someone figures it out.

Among other things, it would be nice for a national known speed trap data exchange (i.e. share marked locations) and for potentially allowing us to perform our own software updates without having to send it in to Escort.

I would never use if for sharing TrueLock locations, of course.

jwardell
11-01-2007, 08:58 AM
Glad to see someone has finally given up waiting on Escort to do this and started exploring on their own.

Shame on escort for advertising this for over a year yet still not supporting this (IMO significant) capability.

Even if they do release the software soon it may prove useful as you might find you are able to do more then their software allows.

I sure hope they allow for some advanced customizations like speed as mentioned before.
For me the biggest issue with the 9500 is its huge 1-mile lockout of bogeys, which is only useful in rural areas. It would be very nice if the software allowed you to assign smaller radius to the various lockout locations. In most urban locations 1/4 mi would be more than adequate--a full mile radius on just a few locations ends up locking out a whole city.

Anyway, as always, keep up the great work, Jim!