Adding a Foscam FI9831P camera

Forum for questions and support relating to the 1.30.x releases only.
Locked
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Adding a Foscam FI9831P camera

Post by pat2 »

I need to configure ZM 1.30 to add a new camera, a Foscam FI9831P.

Please could you help me suggesting the right parameters for General, Source and Control configuration sheets?

thanks
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Adding a Foscam FI9831P camera

Post by bbunge »

pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: Adding a Foscam FI9831P camera

Post by pat2 »

no instructions for FI9831P, only for FI9831W and not working for FI9831P the Control section (PTZ command).

is it working for you?
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: Adding a Foscam FI9831P camera

Post by pat2 »

found the solution. I will report in my next post.
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: Adding a Foscam FI9831P camera

Post by pat2 »

in General Tab:
-Source type: Ffmpeg
-Max FP: 20 (optional)

in Source Tab:
-Source path: rtsp://your_userid:your_pwd@your_ip:your_port/videoSub (*:it works with videoMain too)
-Remote method: RTP/Unicast
-Target color space: 32 bit
-Capture width: 640 (*:it seems working only 640x480, not 720p, not 960p)
-Capture height: 480 (*:it seems working only 640x480, not 720p, not 960p)

*: for Zoneminder i'm using the videoSub stream I set to VGA 640x480 (the working resolution) on the IPCAM, but you can use with videoMain stream too

in Contol Tab:
- Contollable: yes
- Control Type: Foscam 9831W ( a modified version, read following comments)
- Control device: usr=your_userid&pwd=your_pwd
- Control address your_ip:your_port

then in Control capability of Foscam 9831W:
in Main
- Can Wake: yes (you wil use to turn on infrared)
- Can Sleep: yes (you wil use to turn off infrared)
- Can Reset: yes (it should be already checked)
in Move,Pan Tilt, Presets (it should be already properly checked)

then edit FI9831W.pm:

cd /usr/share/perl5/ZoneMinder/Control
sudo nano FI9831W.pm

and modify the script:

- comment all sub wake module:

#sub wake
#{
# my $self = shift;
# Debug( "Wake=AUTO IR LED" );
# if ( $osd eq "on" )
# {
# my $cmd = "setDevName%26devName%3DAuto IR LED Mode";
# $self->sendCmd( $cmd );
# }
# my $cmd = "setInfraLedConfig%26mode%3D0";
# $self->sendCmd( $cmd );
#}

- modify line 412: sub zoomConTele -> sub wake
- modify line 427: sub zoomConWide -> sub sleep

DONE! it should work everything: Pan/Tilt arrow movements, Wake (turn on IR), Sleep (turn off IR), Reset Control, Presets Control

I hope it could be helpful.

Note: there is another way: to create and use an additional Control Type Foscam FI9831P linked to the new script FI9831P.pm (created copying and modifying FI9831W.pm). The result is the same and if you understood the explanation you are able to do. In this case you have to modify too line 38 FI9831W-> FI9831P and set properly (as per the above explanation) the Control capability of the new Control Type.
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
Locked