I am learning to use the code generator(version 0.99) for the thin client taught in the wiki training. I just follow the recording, use the same .xml file and I think I have generated exactly the same source codes as those in the training recording. Then I use the command
scons WS=off OS=win7 CPU=x86_64 MSVC_VERSION=11.0 (already edited the top SConstruct file) and get the .exe files: ServiceMain.exe and ClientMain.exe. I tried to run the ServiceMain.exe, but the output I get is different from the one in the recording. The output I get is as follows:
Error: LoadNVFromFile() failed //this is the same as the one in the recording
000.000 aj_helper.c:285 AJ_StartService2(): connect failed: sleeping for 10 seconds
070.008 aj_helper.c:285 AJ_StartService2(): connect failed: sleeping for 10 seconds
......//similar to the ones above
991.145 aj_helper.c:129 AJ_RunAlljoynService(): status=AJ_ERR_TIMEOUT.
1051.168 aj_helper.c:285 AJ_StartService2(): connect failed: sleeping for 10 seconds
And when I run ClientMain.exe, there is no output.
I tried to trace the failure, and I find that in the function
AJ_Discover(...) of the file
ajtcl/scr/aj_disco.c , the value of status is NOT the AJ_OK after this line
status = sock.rx.recv(&sock.rx, AJ_IO_BUF_SPACE(&sock.rx), AJ_WHO_HAS_TIMEOUT); being executed. But I'm not sure if this is the reason.
Is there anyone successfully running the ServiceMain.exe? And can you help me find the reason I fail? Thanks a lot.