Equipment/Webcams

From London Hackspace Wiki
Jump to navigation Jump to search

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=?


3201 reboot/hose machine?
3200 ? (disconnects - could be flash?)

31?? ? (0-0xf) (v. slow if set high)

30?? causes it to sleep for a proportionate time

290405 tilt scan
290404 pan scan
290403 pan & tilt scan?
290402 also tilt scan?
290401 also pan scan?
290400 stop

2903?? also centre?
290301 centre

290004 tilt down
290003 tilt up
290002 pan left
290001 pan right

28 state info

26 ? (disconnects)
25 ? (returns a value)

2401 cold reboot?

2201 flip on
22?? flip off

2101 mirror on
21?? mirror off

(not a flag in state)
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.
1F?? ? off

1E01 outdoor on
1E?? outdoor off

1D01 night on
1D?? night off

1C02 reboot (reset cam software?)
1C01 warm reboot

1802 res high (640x480)
1801 res med (320x240)
1800 res low (160x120)

13?? qual
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 higher by 0x10
11 qual std (0x59)
10 qual lower by 0x10

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 0x32 bytes are mostly 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?
...
0018 uint32_t Alarm status?
...
002f uint8_t ?
0x01-0x0f ? (310?)
0030 uint16_t Reserved?
0032 uint8_t Flags
0x40 mirror
0x80 flip
0033 uint8_t Compression level (0x00 for highest quality)
0034 uint8_t ?
0035 uint8_t Flags:
0x08 night
0x10 ? (1F01)
0x20 outdoor
0x40 res 320x240
0x80 res 640x480
0036 uint8_t ?


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.........
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 73 56 01  ........:=&..sV.
0000030: 00 00 c8 29 36 89 83 00 00 00 00 00 00 00        ...)6.........

After a reboot:

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 73 d0 01  ........:=&..s..
0000030: 00 00 c8 39 36 89 83 00 00 00 00 00 00 00        ...96.........