[ECE 453] Re: API

  • From: "Lee Boaman" <lboaman@xxxxxxxxxxx>
  • To: <453_all@xxxxxxxxxxxxx>
  • Date: Thu, 30 Oct 2008 16:09:46 -0400

#define TCPPORT 3904                    //port we'll be talking over data -
TCP
#define UDPPORT "3900"                  //port we'll be talking over image -
UDP

Any reason the UDPPORT has paren's, when the TCPPORT does not?  Also, I
don't ever see you writing the buffer to the image file in the stub code.
Don't know if either of these are the cause of your error.  What error
message prints out on the server/client?

Lee

-----Original Message-----
From: 453_all-bounce@xxxxxxxxxxxxx [mailto:453_all-bounce@xxxxxxxxxxxxx] On
Behalf Of bgarris@xxxxxxxxxxx
Sent: Thursday, October 30, 2008 3:33 PM
To: 453_all@xxxxxxxxxxxxx
Subject: [ECE 453] API

Hola,

Here is my latest version of the network API. I wrote it in a UNIX
environment, so will need to port that to windows at some point (soon), but
that is not a big problem.

Data transmission over TCP is fine one-way. In other words, we'll need to
run both a server and client on both ends, eventually, so that TMC can send
commands/receive data, and so cameras can receive commands/send data.
Since we are using TCP for data and UDP for images/video, these will be on
different ports.

Image transmission is currently not working. I feel like this is because of
something incredibly stupid on my part - but I've been looking at it for too
long and can't find where I'm going wrong. I'm not even sure the image file
I'm testing with is being read in correctly in my stub code - take a look
and see what you think. However, the UDP sendto() function is sending the
correct number of bytes, so I'm not sure what's going on.

I'm attaching all my stuff - the header file, stub code simulating TMC and
camera, and makefile.

Usage: make

(for data)
[server-end]: tmc
[camera-end]: cam

(for images)
[server-end]: rcv
[camera-end]: snd

Thanks for any input/help that will make this go faster/work!!

Ben G

P.S. I'll go ahead and attach the picture files I was trying to use



Other related posts: