You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating requester and responder model using SPDM_EMU.
Raspberry pi is used to simulate requester model and Riscv32 processor to used to simulate responder model.
Requester and responder is connected thru I2C.
However, for requester implementation in https://github.com/DMTF/spdm-emu/blob/main/spdm_emu/spdm_emu_common/spdm_emu.c SPDM_EMU, init_client function, I see the socket communication is happening thru TCP packet
bool init_client(SOCKET *sock, uint16_t port)
{
SOCKET client_socket;
struct sockaddr_in server_addr;
int32_t ret_val;
I am getting connection error ( on requester side) due to there is no TCP connection between requester and responder.
What would be the suggested implementation that I can use to make connection between requester and responder over MCTP transport layer and I2C/SMBUS.
Thanks
AKrishnasamy
The text was updated successfully, but these errors were encountered:
spdm-emu is just an emulation program running on Windows/Linux OS environment with TCP/IP.
If you want to use it MCTP, then it is NOT an emulation. It is a real platform environment.
You need to write your own device layer function to send/receive function.
0.5, implement required SPDM device IO functions - libspdm_device_send_message_func and libspdm_device_receive_message_func according to spdm_common_lib.
Another option is to use SPDM-Utils. Like spdm-emu it uses libspdm but is aimed at testing real devices instead of emulators.
SPDM-Utils can currently communicate with a SPDM device over PCIe DOE. We don't yet have MCTP support, but we are working on it. It should be pretty easy for you to extend SPDM-Utils to support MCTP as well
Hi Jiewen,
I am creating requester and responder model using SPDM_EMU.
Raspberry pi is used to simulate requester model and Riscv32 processor to used to simulate responder model.
Requester and responder is connected thru I2C.
However, for requester implementation in https://github.com/DMTF/spdm-emu/blob/main/spdm_emu/spdm_emu_common/spdm_emu.c SPDM_EMU, init_client function, I see the socket communication is happening thru TCP packet
bool init_client(SOCKET *sock, uint16_t port)
{
SOCKET client_socket;
struct sockaddr_in server_addr;
int32_t ret_val;
#ifdef _MSC_VER
WSADATA ws;
if (WSAStartup(MAKEWORD(2, 2), &ws) != 0) {
printf("Init Windows socket Failed - %x\n", WSAGetLastError());
return false;
}
#endif
client_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (client_socket == INVALID_SOCKET) {
printf("Create socket Failed - %x\n",
#ifdef _MSC_VER
WSAGetLastError()
#else
errno
#endif
);
return false;
}
I am getting connection error ( on requester side) due to there is no TCP connection between requester and responder.
What would be the suggested implementation that I can use to make connection between requester and responder over MCTP transport layer and I2C/SMBUS.
Thanks
AKrishnasamy
The text was updated successfully, but these errors were encountered: