Author Topic: [SOLVED] IP Camera in 1004  (Read 61981 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #15 on: August 02, 2012, 09:08:04 pm »
I am the developer of the Advanced IP Camera.

From the URLs you posted you should be able to create a template using the Advanced IP Camera in 5-10 minutes. The wiki article describes this process (well, I hope).

It still doesn't work, but i'm already relieved that you came in the picture. ;)


I've tried your wiki several times now. But i can't seem to figure out how i can make (a copy of) the template.
So i'm using the original 'Advanced IP Camera (#2208)'.

At first sight (for me at least), everything is filled in like it should be.
But i've got the impression that it simply isn't 'touched'. Like i need to restart/start a service or so?
In your manual, you write that the new template is started with the core. Can this be the issue?  ???

You can see in my attachment below that i can't get a picture (view) from it.
So for the moment no need to control something... ;)
« Last Edit: August 02, 2012, 09:10:40 pm by brononius »
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #16 on: August 02, 2012, 09:28:29 pm »
There is no way to copy a template at the moment.. so you have to create a new one from scratch.

It is possible to use the Advanced IP Camera template for testing, and later create a template using that data.

If the device is started properly, you should see a log file with the device id in /var/pluto/log on the core. This could also give more information about what is wrong..

Another strange thing is the use of user and password in the URL itself. Is this all that is required to authenticate with the camera? If so, you can probably clear the AuthPass and AuthUser fields. If those fields are filled in, it will try to use basic http authentication for all requests. Maybe that messes up the communication with the camera?

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #17 on: August 02, 2012, 09:51:43 pm »
I have tried to remove the user/password. In both the fields and links. No luck...

When i check the log folder, nothing is being created with the camera id. So somewhere there is a `start` issue for that device?
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #18 on: August 02, 2012, 10:02:18 pm »
Do you have the /usr/pluto/bin/Advanced_IP_Camera binary on the core?

Once the device is created with the template, and the router has been reloaded, it should start. The correct package should be installed automatically. If the binary is not present, there must be something wrong with the install or that the system hasn't triggered the install yet. A reboot should always trigger a install of missing packages.

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #19 on: August 02, 2012, 10:17:15 pm »
Yes, binary is present.
When i run it, i`m getting follow output:

Code: [Select]
brononius@dcerouter:/usr/pluto/bin$ ./Advanced_IP_Camera
Advanced_IP_Camera, v.2.0.0.45.12022425524
Visit www.plutohome.com for source code and license information
 
01      08/02/12 22:06:19.850           Connection for client socket reported BAD DEVICE IP=::ffff:192.168.111.1, device 0 last error
 3 <0xb77276f0>
05      08/02/12 22:06:20.350           void ClientSocket::Disconnect() on this socket: 0x923a450 (m_Socket: 3) <0xb77276f0>
Device ID is invalid.  Exiting...

A reboot didn`t changed anything...
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #20 on: August 02, 2012, 10:28:48 pm »
You need to specify the device ID on the command line to start it like that, use -d <dev.id>

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #21 on: August 03, 2012, 07:25:04 am »
I think i've looked from the wrong ID.  Probably because it was pass my bedtime... :-[

When i run the command now:

Code: [Select]
sudo /usr/pluto/bin/Advanced_IP_Camera -d 191
Advanced_IP_Camera, v.2.0.0.45.12022425524
Visit www.plutohome.com for source code and license information

05 08/03/12 7:16:14.640 m_vectEventMethod.size() = 5. Configured EventMethods: <0xb77d06f0>
05 08/03/12 7:16:14.640 m_mapPK_Device_OutputDevice.size() = 0. Configured OutputDevices: <0xb77d06f0>
Segmentation fault
I'm guessing that 'segmentation fault' isn't good?

And the log:
Code: [Select]
Return code: 139
3       08/03/12 07:16:14       191 (spawning-device)   ^[[1;31mDevice died... count=2/50 dev=191^[[1;00m
Fri Aug  3 07:16:14 CEST 2012 died
========== NEW LOG SECTION ==========
1       08/03/12 07:16:24       191 (spawning-device)   ^[[1;00mStarting... 3^[[1;00m
1       08/03/12 07:16:24       191 (spawning-device)   ^[[1;00mFound /usr/pluto/bin/Advanced_IP_Camera^[[1;00m
05      08/03/12 7:16:24.728            ^[[33;1mm_vectEventMethod.size() = 5. Configured EventMethods:^[[0m <0xb77dd6f0>
05      08/03/12 7:16:24.728            ^[[33;1mm_mapPK_Device_OutputDevice.size() = 0. Configured OutputDevices:^[[0m <0xb77dd6f0>

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #22 on: August 03, 2012, 08:29:43 am »
No, the segmentation fault does not look good..

First, please make sure you have the newest version of the lmce-advanced-ip-camera package. If there is a newer one, install that and do a quick reload and try starting the Advanced IP Camera again.

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #23 on: August 03, 2012, 09:45:44 am »
Any tip how i should update/check the package?  :-[
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #24 on: August 03, 2012, 10:01:05 am »
Do this:
Code: [Select]
apt-get install lmce-advanced-ip-camerawill install any newer version if available.

br,sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #25 on: August 03, 2012, 10:11:03 am »
Was already on the latest version:
Code: [Select]
lmce-advanced-ip-camera is already the newest version.
And to be sure, i've removed it, and reinstalled it.
But the result stays the same: 'segmentation fault'
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #26 on: August 03, 2012, 10:40:12 am »
Ok, then you need to help me debug it. Look in /home/coredump/1 for the last file with Advanced_IP_Camera in its name, this is the dump file.

Code: [Select]
cd /usr/pluto/bin
sudo gdb Advanced_IP_Camera <path and filename to dump file>

Once gdb has started, type bt and press enter
This will give you the stack trace and will help pinpoint the error. Please copy this and post it here.

Type quit to exit gdb.

br,
sambuca

« Last Edit: August 03, 2012, 11:38:20 am by sambuca »

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #27 on: August 03, 2012, 12:56:50 pm »
Hey,

Rather short response? Maybe i'm doing something wrong?

sudo gdb /usr/pluto/bin/Advanced_IP_Camera
Code: [Select]
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>...

Reading symbols from /usr/pluto/bin/Advanced_IP_Camera...(no debugging symbols found)...done.
(gdb)
(gdb)
(gdb) bt
No stack.
(gdb) quit
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: IP Camera in 1004
« Reply #28 on: August 03, 2012, 03:49:29 pm »
Yes, you forgot to add the dump file parameter to the command line. It should be something like this
sudo gdb /usr/pluto/bin/Advanced_IP_Camera /home/coredump/1/core_Advanced_IP_Camera_123412341234

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: IP Camera in 1004
« Reply #29 on: August 03, 2012, 05:17:51 pm »
I'm getting another error...  ???

sudo gdb /usr/pluto/bin/Advanced_IP_Camera /tmp/core_Advanced_IP_Camera_123412341234
Code: [Select]
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/pluto/bin/Advanced_IP_Camera...(no debugging symbols found)...done.
"/tmp/core_Advanced_IP_Camera_123412341234" is not a core dump: File format not recognized
(gdb) bt
No stack.
(gdb)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE