Cam-net-stream: Difference between revisions
From University of Washington - Ubicomp Research Page
Jump to navigationJump to search
Karl Koscher (talk | contribs) |
Karl Koscher (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
* [{{SERVER}}/files/uwar/imote2_sdcard/cam-net-stream linux download (xscale)] | * [{{SERVER}}/files/uwar/imote2_sdcard/cam-net-stream linux download (xscale)] | ||
cam-net-stream is a program that sends a stream of JPEG images captured by [[Cam-server|cam-server]] over | cam-net-stream is a program that sends a stream of JPEG images captured by [[Cam-server|cam-server]] over any available TCP/IP connection with sufficient bandwidth, such as WiFi, Bluetooth, or USB. cam-net-stream listens for an incoming connection on a TCP port you specify, and begins sending JPEG images once connected. Only one connection may exist at a time.<br /><br /> | ||
Before each JPEG image, the image length is sent as a four-byte, little-endian integer. Thus, the data stream looks like: | Before each JPEG image, the image length is sent as a four-byte, little-endian integer. Thus, the data stream looks like: | ||
Line 16: | Line 16: | ||
<ul> | <ul> | ||
=== Command line format === | === Command line format === | ||
<ul><pre>cam- | <ul><pre>cam-net-stream <port></pre></ul> | ||
</ul> | </ul> |
Latest revision as of 21:34, 21 August 2007
cam-net-stream
- msp/src/cam-net-stream/cam-net-stream.c
- linux download (xscale)
cam-net-stream is a program that sends a stream of JPEG images captured by cam-server over any available TCP/IP connection with sufficient bandwidth, such as WiFi, Bluetooth, or USB. cam-net-stream listens for an incoming connection on a TCP port you specify, and begins sending JPEG images once connected. Only one connection may exist at a time.
Before each JPEG image, the image length is sent as a four-byte, little-endian integer. Thus, the data stream looks like:
Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 -- Length + 3 | Byte n | Byte n + 1 | Byte n + 2 | Byte n + 3 | Byte n + 4 -- Byte n + 3 + Length |
---|---|---|---|---|---|---|---|---|---|
Length | JPEG Data | Length | JPEG DATA |
usage
Command line format
cam-net-stream <port>