Equipment/Webcams: Difference between revisions
Line 110: | Line 110: | ||
==State info== | ==State info== | ||
The state info is also returned from UDP broadcast on port ? | The state info is also returned from UDP broadcast on port ? The first 0x30 bytes appear to be static. | ||
Structure (0x40 bytes): | Structure (0x40 bytes): | ||
{| | {| class="topalign" | ||
| 0000 || uint32_t || ''''u', 'i', 'v', '2'''' | | 0000 || uint32_t || ''''u', 'i', 'v', '2'''' | ||
|- | |- | ||
Line 123: | Line 123: | ||
| 0006 || uint16_t || Reserved/extra version? | | 0006 || uint16_t || Reserved/extra version? | ||
|- | |- | ||
|- | |||
| 0032 || uint8_t || Flags | |||
0x40 mirror | |||
0x80 flip | |||
|- | |- | ||
| 0033 || uint8_t || Compression level (0x00 for highest quality) | | 0033 || uint8_t || Compression level (0x00 for highest quality) | ||
|- | |- | ||
| 0035 || uint8_t || Flags | | 0035 || uint8_t || Flags: | ||
0x08 night | |||
0x20 outdoor | |||
0x40 res 320x240 | |||
0x80 res 640x480 | |||
|- | |||
|} | |} |
Revision as of 00:54, 8 August 2010
The IP Secure300r webcam
The camera is one of these.
Warning
The java app on the main admin page of the camera tends to lockup firefox
Access
- IP: 172.31.24.169
- Host: netcam
- Username: admin
- Password: hackspace
Infrared led control
To toggle the ir leds:
wget netcam/goform/WebCam_MotoForm?MotoBut=Light --http-user=admin --http-password=hackspace
you will get a page returned as either:
webcam_logoIROff.htm (Meaning the leds are on)
or
webcam_logoIROn.htm (Meaning the leds are off)
How to get an image
- Java a stream of width and size followed by JPEG.
- M-JPEG returns a multipart/x-mixed-replace stream. However, the boundary provided is incorrect, which
motion
does not appreciate, so use:
mkfifo campipe; nc -l -p 8011<campipe | nc netcam 80|sed -r 's/(boundary=)--sonixboundary/\1sonixboundry/'>campipe
And stream from there. On Babbage, the script netcamfix
is started automatically from xinetd
and does the same.
From outside the space
Currently http://hack.rs:8001 or http://babbage.hackspace.org.uk/ (if you have IPv6)
EasyN IPCam
Model FS-618A-M136, ordered from Ebay (with a free NETWOKR CABLE).
IP: 172.31.24.122
For commands: /cmmd=%s, where %s is:
52 username=? 32 ? (disconnects) 290404 pan scan 290405 tilt scan 290301 centre 290004 tilt down 290003 tilt up 290002 pan left 290001 pan right 28 state info 26 ? (disconnects) 25 ? (returns a value) 2200 flip off 2201 flip on 2100 mirror off 2101 mirror on 2005 ? 2003 ? 2001 ? 1E00 outdoor off 1E01 outdoor on 1D00 night off 1D01 night on 1C02 reboot 1802 res high (640x480) 1801 res med (320x240) 1800 res low (160x120) 13E0 qual v. v. low (14kB for 640x480) 1389 qual v. low 1359 qual std 1339 qual v. high 1329 qual v. v. high (60kB for 640x480) 12 qual high (0x49) 11 qual std (0x59) 10 qual low (0x69)
Known URLs
- /viwx.html
- /image.jpg
- /cgi-bin
- /pant.html
- /cmmd
State info
The state info is also returned from UDP broadcast on port ? The first 0x30 bytes appear to be static.
Structure (0x40 bytes):
0000 | uint32_t | 'u', 'i', 'v', '2' |
0004 | uint8_t | Major version (0x34 for version 34) |
0005 | uint8_t | Minor version |
0006 | uint16_t | Reserved/extra version? |
0032 | uint8_t | Flags
0x40 mirror 0x80 flip |
0033 | uint8_t | Compression level (0x00 for highest quality) |
0035 | uint8_t | Flags:
0x08 night 0x20 outdoor 0x40 res 320x240 0x80 res 640x480 |