Equipment/Webcams: Difference between revisions
Line 157: | Line 157: | ||
0000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 71 6e 01 .............qn. | 0000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 71 6e 01 .............qn. | ||
0000030: 00 00 c8 59 36 89 83 00 00 00 00 00 00 00 ...Y6......... | 0000030: 00 00 c8 59 36 89 83 00 00 00 00 00 00 00 ...Y6......... | ||
Later: | |||
0000000: 75 69 76 32 34 00 00 00 00 60 6e 51 66 43 00 50 uiv24....`nQfC.P | |||
0000010: ac 1f 18 7a ac 1f 18 01 ff ff fe 00 ac 1f 18 01 ...z............ | |||
0000020: 00 00 00 00 00 00 00 00 3a 3d 26 b1 00 71 6e 01 ........:=&..qn. | |||
0000030: 00 00 c8 4a 36 89 83 00 00 00 00 00 00 00 ...J6......... |
Revision as of 01:21, 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 (not a flag) 2005 ? gamma high 2003 ? gamma med 2001 ? gamma low Also increases quality by 0x10 until it's above 0x3a: 1F01 ? on colour temp? Seems as dark as outdoor. 1F00 ? off 1E01 outdoor on 1E00 outdoor off 1D01 night on 1D00 night off 1C02 reboot 1C01 reboot as well? 1802 res high (640x480) 1801 res med (320x240) 1800 res low (160x120) 13E0 qual lowest (14kB for 640x480) 1389 qual v. low 1359 qual std 1339 qual v. high 1329 qual highest (60kB for 640x480) 12 qual high (0x49) 11 qual std (0x59) 10 qual low (0x69)
For commands like 2101, it's 2101 for on, 21?? for off.
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 (0x3e 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 0x10 ? (1F01) 0x20 outdoor 0x40 res 320x240 0x80 res 640x480 |
At boot:
0000000: 75 69 76 32 34 00 00 00 00 60 6e 51 66 43 00 50 uiv24....`nQfC.P 0000010: ac 1f 18 7a ac 1f 18 01 ff ff fe 00 ac 1f 18 01 ...z............ 0000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 71 6e 01 .............qn. 0000030: 00 00 c8 59 36 89 83 00 00 00 00 00 00 00 ...Y6.........
Later:
0000000: 75 69 76 32 34 00 00 00 00 60 6e 51 66 43 00 50 uiv24....`nQfC.P 0000010: ac 1f 18 7a ac 1f 18 01 ff ff fe 00 ac 1f 18 01 ...z............ 0000020: 00 00 00 00 00 00 00 00 3a 3d 26 b1 00 71 6e 01 ........:=&..qn. 0000030: 00 00 c8 4a 36 89 83 00 00 00 00 00 00 00 ...J6.........