// diagnostic.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "PACSDK.h" #include "stdio.h" int main(int argc, char* argv[]) { char strName[32]; for(int i = 1; i <= pac_GetSlotCount(); i++) { strcpy(strName, ""); int mt = pac_GetModuleName((BYTE)i, strName); if(mt == 255) { HANDLE hPort = uart_Open(""); pac_ChangeSlot((BYTE)i); uart_SendCmd(hPort, "$00M", strName); uart_Close(hPort); } printf("Slot %d is %s\n", i, strName); } return 0; }