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.

如何讀取TMDSPLCKIT-V3裏頭的ID?

想請問如何讀取TMDSPLCKIT-V3裏頭的ID?

還有同樣的設備 他們的ID是否都相同 還是會不同?

因為我想要藉由ID來分辨說我現在是連接在哪個設備上

謝謝

  • 我是在PRIME Host Message Protocol Specification這份文件中的 0x0004-Vendor/product ID這邊看到的

    上面寫說Vendor ID:Vendor ID(assigned by Prime Alliance for PRIME).

                 Product ID:Vendor Specifics Identifier in ASCII, terminating with a NULL character.

    我想知道有沒有辦法寫出程式來讀出Product ID 

    還有同樣的設備 他們ID是否會相同?

    感謝

  • 大家好

    在看PRIME Host Message Protocol Specification這份文件

    第59頁中在講GET_INFO(Meaage Type 0x14),然後我想要讀取到裏頭的資訊

    然後在第69頁中 我試著學它寫類似的程式碼

    MSG_TYP = 0x14;   //GET_INFO

    MSG_ORG = '1';    //originated from PLC

    MSG_RPY = '0';     //need reply message

    MSG_BDY = uint16_t blob_id;     // blob id to identify the blob

                        uint16_t blob_len;     // length in bytes of blob to read

                        uint16_t blob_addr;     //start address of the blob, only exist when blob_id=4

    我不知道用這個程式碼對不對

    如果對的話 那這樣寫又是否正確

    還有我還需要加甚麼東西在程式碼中



  • 大家好

    不知道有沒有人會類似的語法

    這部分我始終不知道如何解決

    還有到時他會又是以怎樣的形式來告訴我他的ID編號

    如果有任何想法或建議都歡迎告訴我

    非常感謝