Difference between revisions of "Equipment/Webcams"

From London Hackspace Wiki
Jump to navigation Jump to search
Line 126: Line 126:
 
| 0033 || uint8_t || Compression level
 
| 0033 || uint8_t || Compression level
 
|-
 
|-
| 0035 || uint8_t || Flags, incl. size (0x00 = small, 0x40 = medium, 0x80 = large)
+
| 0035 || uint8_t || Flags, incl. res (0x00 = small, 0x40 = medium, 0x80 = large)
 
|}
 
|}

Revision as of 00:25, 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)

The Day So Far

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 compression high (14kB for 640x480)
1389 ?
1359 ?
1339 ?
1329 compression low (60kB for 640x480)

12 qual high
11 qual std
10 qual low

Known URLs

  • /viwx.html
  • /image.jpg
  • /cgi-bin
  • /pant.html
  • /cmmd

State info

The state info is also returned from UDP broadcast on port ?

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?
0033 uint8_t Compression level
0035 uint8_t Flags, incl. res (0x00 = small, 0x40 = medium, 0x80 = large)