GithubHelp home page GithubHelp logo

Comments (5)

jyao1 avatar jyao1 commented on August 17, 2024

Emu is an OS application tool.
It does not support SMBUS/I2C line at this moment.

from spdm-emu.

PrakashK94 avatar PrakashK94 commented on August 17, 2024

ok thanks for your answer. I would like to know is there a plan to support SMBUS/I2C communication in future?

Also, the MCTP library which it is using does it support I2C/SMBUS communication?

from spdm-emu.

jyao1 avatar jyao1 commented on August 17, 2024

The emulator just sends MCTP message to network socket.

If you want to use this, you need write an SMBUS/I2C library to send message to SMBUS/I2C device.

We don't have plan at this moment. But you are welcome to contribute if you want.

from spdm-emu.

PrakashK94 avatar PrakashK94 commented on August 17, 2024

Thanks again. I will try replacing socket calls with I2C init, read, write functions and use the same MCTP library to check SMBUS/I2C communication, but before trying it out I would like to ask you is this the correct way to try this?

from spdm-emu.

jyao1 avatar jyao1 commented on August 17, 2024

right, you need write code to send data to SMBUS/I2C instead of network socket.

To be specific, you need implement libspdm_device_send_message_func() and libspdm_device_receive_message_func() declared in https://github.com/DMTF/libspdm/blob/main/include/library/spdm_common_lib.h. Then you need register them via libspdm_register_device_io_func().

You may search those 3 APIs, to see how they are used or implemented in spdm-emu.

from spdm-emu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.