I2C driver on Windows 7

Hi All
We have SoC system which runs windows 7 . It has I2C controller to which is connected a i2c device . the vendor has provided the I2C bus driver. My question is , what driver should I write to access the i2c device. Is it ok to write a client driver for i2c device or should we write I2C to HID driver and then attach my client driver on top of it?

Ask the vendor how they expose the devices on the bus and how to talk to them

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?7/?19/?2014 9:14 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] I2C driver on Windows 7

Hi All
We have SoC system which runs windows 7 . It has I2C controller to which is connected a i2c device . the vendor has provided the I2C bus driver. My question is , what driver should I write to access the i2c device. Is it ok to write a client driver for i2c device or should we write I2C to HID driver and then attach my client driver on top of it?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

What Doron said.

You’ll have no idea how to communicate with a device on such a bus, using the vendor-provided bus driver, unless the vendor who provides the driver tells you what interface they provide. There’s no “standard” interface to which the vendor would have to comply on Win 7 for this bus, and even if there was, nothing says that the vendor implemented it in their own bus driver.

Peter
OSR
@OSRDrivers

Hi Doron and Peter
Thank you for the information .

Hi Doron and Peter
If the vendor exposes it as a HID device then is it advisable to write an I2C to HID driver on Windows 7 by following the HID_over_I2C_Protocol specification ?

The os doesn’t support this spec in win7. I don’t know how easy it would be for you to implement it on your own

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?7/?20/?2014 7:58 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] I2C driver on Windows 7

Hi Doron and Peter
If the vendor exposes it as a HID device then is it advisable to write an I2C to HID driver on Windows 7 by following the HID_over_I2C_Protocol specification ?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

ohh :frowning: … but is it feasible to implement in Windows 7? . If so what are all the difficulties I may encounter . Is there any spec. provided by Microsoft to implement this driver in Windows 7.

You have to talk to the i2c bus driver vendor and see how simple it is.

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?7/?20/?2014 8:50 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] I2C driver on Windows 7

ohh :frowning: … but is it feasible to implement in Windows 7? . If so what are all the difficulties I may encounter . Is there any spec. provided by Microsoft to implement this driver in Windows 7.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Ok Doron . But I wanted to confirm whether it is possible to develop HID over I2C in Windows 7 ? Is it recommended by Microsoft? . Because if it is not possible we will drop the plan?

Does your i2c device send HID packets? If so, and if you can learn how to use the system vendors i2c controller driver and their gpio driver (you’ll need an interrupt) and how to add your device to the system’s ACPI tables then you could develop your own hid over I2C hid minidriver for your device.

If your device doesn’t send HID packets but you can figure out the vendor drivers and the ACPI part you could write a HID minidriver that reads data from your device and converts it into HID packets if you need to.

-p

Sent from my Windows Phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?7/?20/?2014 9:21 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] I2C driver on Windows 7

Ok Doron . But I wanted to confirm whether it is possible to develop HID over I2C in Windows 7 ? Is it recommended by Microsoft? . Because if it is not possible we will drop the plan?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Ok . If that is the case then which spec should I follow to develop HID to I2C driver . Should I follow HID_over_I2C_Protocol specification provided by Microsoft or is there some spec available for this

“Ok . If that is the case then which spec should I follow to develop HID to I2C
driver . Should I follow HID_over_I2C_Protocol specification provided by
Microsoft or is there some spec available for this”

=> Sorry to post the above question again as it was already answered by Doron .

The device doesn’t send any HID packets , it provides only I2C packets.so in this case can i take the hidusbfx2 sample as reference and make changes as per our requirement?

Hi Peter/Doron
Can you please confirm on the following
\
The device doesn’t send any HID packets , it provides only I2C packets.so in
this case can i take the hidusbfx2 sample as reference and make changes as per
our requirement?

That or the generic kmdf hid sample is a fine starting point

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?7/?22/?2014 7:59 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] I2C driver on Windows 7

Hi Peter/Doron
Can you please confirm on the following
<br>The device doesn’t send any HID packets , it provides only I2C packets.so in
this case can i take the hidusbfx2 sample as reference and make changes as per
our requirement?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Hi Doron
Thank you very much