You have chosen to sponsor your bid up to a maximum amount of .
I have 2 code files (win32.cpp, 200 lines) and (test.cpp, 312 lines) which build fine
with the Visual Studio 2005 C++ on my PC. When run, test.exe gives 6 options:
Right after loading, specify com num ...
1. Send data to the modem.
2. Receive data from the modem.
3. Close communication.
4. Set the reception timeouts.
The code partially works (download attached win32.cpp & test.cpp to build & test)
but I want a variant of this code that will not prompt for any console input. Instead
I want to run it with the following syntax usage, example: 'test.exe 3 AT OK'
Here program must send string 'AT' to modem on com3, then compare received data from
modem with parameter OK. Before testing this new code it may help to use a terminal
program (Ex: HyperTerminal) to ensure the modem supports the string being sent, ie:
to check what the modem returns. Ex: If sending AT to modem it should return OK.
Simplest way to see strings modem supports is through Device Manager >> Modems
Success of project is "one" new code file (NewTest.cpp) that when run (NewTest.exe)
reliably detects the expected response as per stated syntax (ex: getting Ok from AT).
Ensure program times out and terminates regardless, ex: if response is not received.
Print explanatory statements to screen. Ex:
Sending 'AT' using reception timeout of: (value in milliseconds)
Expected response received.
Expected response not received.
The two code files I've attached are basically good code that needs some tweaking.
If bidding on this project, please message me answering the following:
** Do you have a PC with a 32 bit version of windows?
** Which version/year of MS Visual Studio C++ do you have?
** Do you have a 56k dial up modem to test with?