Comments (5)
Emu is an OS application tool.
It does not support SMBUS/I2C line at this moment.
from spdm-emu.
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.
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.
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.
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)
- The PortIndex field must contain the PortIndex field value from the corresponding QUERY.
- Need to clear IDE KEY after IDE_KM message is sent.
- add responder-validator to CI
- Issue with Release folder creation on Windows environment. HOT 2
- Add tdisp_context for TDISP library
- should not use interface_id from requester in get_version
- Please provide use case to test SPDM 1.2 commands
- need to update super-project-pointer of SPDM-Responder-Validator
- Spdm-emu should read corresponding cert according to alias_cert model the when set cert
- How can responder know when it needs to reply "RESPOND_NOT_READY" respond? HOT 1
- Connection error in SPDM_EMU when using SPDM over MCTP HOT 3
- remove MULTI_KEY_CAP if PUB_KEY_ID is used.
- Error when running ./spdm_responder_emu --cap CERT,MEAS_NO_SIG,CHAL on SPDM_NEGOTIATE_ALGORITHMS HOT 1
- clear GET_KEY_PAIR_INFO and SET_KEY_PAIR_INFO if PUB_KEY_ID is set
- Need add support for LIBSPDM_ENABLE_VENDOR_DEFINED_MESSAGES HOT 7
- spdm_responder_lib cannot identify capability conflict of DATA_TRANSFER_SIZE and MAX_SPDM_MSG_SIZE for SPDM version 1.0 & 1.1 HOT 4
- [Enhancement] Some hardcode should be updated
- Enquiry for ERROR Param 1 & 2 before GET_CAPABILITIES HOT 1
- spdm-emu contribution HOT 2
- Build error on aarch64 & GCC toolchain (maccumulate-outgoing-args, mno-red-zone) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spdm-emu.