Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Advanced Member
    Join Date
    Dec 2004
    Location
    Michigan
    Posts
    7,509

    Default Exploring the 9500i USB capabilities

    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.



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



    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. 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

  2. #2
    Banned
    Join Date
    Jun 2007
    Posts
    9,497

    Default

    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.

  3. #3
    Yoda of Radar
    Join Date
    Dec 2004
    Location
    In front of my computer
    Posts
    10,773

    Default

    Dang now I have to go outside with my laptop :P

  4. #4
    Banned
    Join Date
    Aug 2006
    Location
    Europa
    Posts
    106

    Default

    great job..

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

  5. #5
    Advanced Member
    Join Date
    Dec 2004
    Location
    Michigan
    Posts
    7,509

    Default

    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:

  6. #6
    Scratonicity Groupie
    Join Date
    Mar 2005
    Posts
    7,614

    Default

    this is cool. When you get the plus 25DB patch I'll have one overnighted to me

  7. #7
    Yoda of Radar
    Join Date
    Dec 2004
    Location
    In front of my computer
    Posts
    10,773

    Default

    Quote Originally Posted by jimbonzzz
    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".

  8. #8
    Newcomer
    Join Date
    Aug 2006
    Location
    Alberta, Canada
    Posts
    11

    Default

    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/...s/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...

  9. #9

    Default

    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.

  10. #10
    Banned
    Join Date
    Jun 2007
    Posts
    9,497

    Default

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

    Has anyone been successful yet?

 

 

Similar Threads

  1. Exploring the ESP - Extended Serial Protocol
    By tz1 in forum Valentine One
    Replies: 11
    Last Post: 05-04-2012, 03:23 AM
  2. Exploring your community
    By word geek in forum Introduce Yourself
    Replies: 6
    Last Post: 07-14-2010, 12:42 AM
  3. Beltronic Vector 940 I/O Capabilities
    By Iceman692 in forum Radar Detectors - General
    Replies: 2
    Last Post: 02-11-2009, 04:32 PM
  4. THIS JUST IN! COBRA TO PRODUCE AN RD WITH MP3 CAPABILITIES!!
    By rose1 in forum Radar Detectors - General
    Replies: 32
    Last Post: 04-12-2008, 04:07 PM
  5. Exploring the 9500i USB Capabilities - Take II
    By jimbonzzz in forum Escort
    Replies: 23
    Last Post: 03-17-2008, 01:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •