This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c# interface with TMP006EVM

Other Parts Discussed in Thread: TMP006

Hi there,

I am writing an application to interface with the TMP006EMV. In some threads I have seen that the communication is established through HID USB.

My application is written in C#.

Does anybody know if there is any C# class available for the HID USB communication?

Could somebody provide the comands to send on USB to read out data from TMP006 once the USB communication is estabished?

Thanks for your help

Regards

  • Hi again,


    I have established the HID USB communication and now I am trying to send commands to the TMP006EVM evaluation board to get it run and get data.

    In the TMP006EVM GUI, following script commands are being sent to establish communication with the module and make a first read of the 5 registers.

    CMD CTRL 0x9E
    CMD CTRL 0x9E
    CMD CTRL 0x9A
    CMD CTRL 0x98
    CMD EN_I2C ON
    I2C CH1 S 0x80 ACKS  0x0 ACKS S 0x81  ACKS R ACKM R ACKS P
    I2C CH1 S 0x80 ACKS  0x1 ACKS S 0x81  ACKS R ACKM R ACKS P
    I2C CH1 S 0x80 ACKS  0x2 ACKS S 0x81  ACKS R ACKM R ACKS P
    I2C CH1 S 0x80 ACKS  0xFE ACKS S 0x81  ACKS R ACKM R ACKS P
    I2C CH1 S 0x80 ACKS  0xFF ACKS S 0x81  ACKS R ACKM R ACKS P


    My question is:

    From my C# application calling a USB write, I am filling the byte buffer report with "CMD CTRL 0x9E" and so on.

    report[0] = C, report[1] = M, report[2] = D,......, report[10] = 0x9E

    But it does not react to it :-(

    Does anybody know how I should send this command?

    Thanks very much

    Regards

  • Hello Karim,

    Thanks for looking into IT's E2E forums for support. You 'hex' coding of I2C register map communication is correct. But your primary question is on the lines of C# coding practice. Unfortunately, this seems to be regarding C# related programming/coding structure issue and we cannot solve this in TI's temperature sensors hardware/device related forums. I would suggest you to post this question on software/programmer related forums.

    Please don't hesitate to contact us for help with any TMP006 device related questions in future.

    Thanks & Regards,

    Abhi