Check/test a program for me???

Permalänk
Medlem

Check/test a program for me???

Hi.
I have got help to make a CGI program in C-code but I have a problem.
Here is the C-code:

http://docs.google.com/View?docid=dg2t7hq7_0g2ccsw

I am supposed to call the CGI by sending a web adress to it like:

htt p://192.168.0.90/cgi/cgi-util_1.out?code=214443313600500d01

The C-program is then supposed to send the last numbers "214443313600500d01" out on a serial port like a RS232.
Now my problem is that circuits, connected to the port, dont react when i do this.

The circuits react and work when getting the signal from other source.
So I wonder if someone can see in the C-code what happens with the code I send with the webadress.

What kind of ASCII characters are I supposed to write in the end of the webadress ?
http://192.168.0.90/cgi/cgi-util_1.out?code=????
to control a DC-16:
http://www.efx-tek.com/topics/dc-16.html

It is supposed to get something like:
"!DC16", address, command {, data {, data }}
("!DC16", %00, "P", 13, 1)

Can somebody take a look at the C-code and maybe se what
ASCII characters i am supposed to use to get the DC-16 to react?
.........................
PS
I am trying to use Dev-C++ and Codeblock but I dont seem to understand how to debugg and step a program to see what happens with flags and variables.

Någon kan kanske förklara hur man kan stega sig igenom ett C-program med de programmen.
Jag kompilerar mitt C-program med
"Web Compiler" / http://www.acmesystems.it/?id=200

Regards Magi

Visa signatur

"Frågan är om tillståndet i världen någonsin kommer att bli beviljat"
Är Svensk Mästare i BlockOut2 på level: Out of control , https://blockout.nu