cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
89
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Kelvin Nichols on 11-03-2011 07:46:10 AM
NI-4100 using serial control of C20 and C40. Using the Tandberg C-series Module 1.3.1 for some Tandberg functions/control and the Phonebook portion of the same module AND using the Tandberg PrecisionHD Camera module for camera PTZ control and presets. WHen all modues are loaded - duo video stops working as well as the camera controls. Comment out the Define Module statements for the cameras and  phonebook and duo video functions return. Have not been able to get phonebook to load no matter what modules are loaded. The cameras are not connected to the codec - they are controlled directly from the NI-4100.

Are there conflicting channel events possibly happening when all modules are loaded?

Subject: RE: Phonebook - Camera issue
Replied by: Viggo Fredriksen on 11-03-2011 02:28:37 PM
Hi,

  this should work, as long as you create new virtual devices for each Duet module
in your program. Also; if you decide to use the netlinx UI module for the camera,
please ensure that the buttons are properly defined and does not conflict with
other buttons on your panel (the example camera UI supplied with the camera module
has not been made with multiple cameras and devices in mind).
 
 1
 2DEFINE_DEVICE
 3// TC module
 4dvTandberg_TC = 5001:1:0  // RS232 port 1 real device
 5vdvTandberg_TC   = 41001:1:0  // virtual device 1
 6
 7// Camera 1
 8dvTandberg_PHD1 = 5001:2:0  // RS232 port 2 real device
 9vdvTandberg_PHD1 = 41002:1:0 // virtual device 2
10
11// Camera 2
12dvTandberg_PHD2 = 5001:3:0  // RS232 port 3 real device
13vdvTandberg_PHD2 = 41003:1:0 // virtual device 3
14
15DEFINE_START
16// TC Duet module
17DEFINE_MODULE 'Tandberg_TC_Comm_dr1_0_0' Comm1(vdvTandberg_TC, dvTandberg_TC)
18
19// Camera Duet module
20DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Camera1(vdvTandberg_PHD1, dvTandberg_PHD1)
21DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Camera2(vdvTandberg_PHD2, dvTandberg_PHD2)


Subject: RE: Phonebook - Camera issue
Replied by: Kelvin Nichols on 11-03-2011 04:44:21 PM
This is how I have the devices and modules defined.

DEFINE_DEVICE

dvCAM_1  = 5001:3:7                      // Student Tandberg Precision HD 1080p  (RS-232 9600,N,8,1)
dvCAM_2  = 5001:6:7                      // Instructor Tandberg Precision HD 1080p (RS-232 9600,N,8,1)
dvTANDBERG_1  = 1021:1:7                     // Codec 1 Tandberg C40  (RS-232 38400 N,8,1)
dvTANDBERG_2 = 1023:1:7                     // Codec 2 Tandberg C20  (RS-232 38400 N,8,1)
dvIPAD_RmA       = 11001:1:7  // IPAD 1 Touch Panel Rm A
dvIPAD_RmB       = 11002:1:7  // IPAD 2 Touch Panel Rm B
dvPHONEBOOK_1 = 11001:5:7  // Tandberg Phonebook Buttons IPAD 1 Rm A
dvPHONEBOOK_2 = 11002:5:7                       // Tandberg Phonebook Buttons IPAD 2 Rm B
dvTP_CAM_1 = 11001:8:7       // CAM Controls IPAD 1 RM A Instructor Cam
dvTP_CAM_2 = 11001:9:7  // CAM Controls IPAD 1 RM A Student Cam

dvTP_CAM_1 = 11001:8:7  // CAM Controls IPAD 1 RM A Instructor Cam
dvTP_CAM_2 = 11001:9:7  // CAM Controls IPAD 1 RM A Student Cam

vdvTandberg_TC    = 41001:1:7   // virtual device 1
vdvTandberg_TC_2 = 41001:2:7
vdvTandberg_TC2   = 41002:1:7   // virtual device 2
vdvTandberg_TC2_2 = 41002:2:7
vdvCAM_1  = 41020:1:7  // Virtual Device for Camera Module Instructor Cam
vdvCAM_2  = 41021:1:7  // Virtual Device for Camera Module Student Cam

DEFINE_CONSTANT

dev vdvDev[] =
{
    vdvTandberg_TC,
    vdvTandberg_TC_2
}
dev vdvDev2[] =
{
    vdvTandberg_TC2,
    vdvTandberg_TC2_2
}

dev vdvPhonebooks[] =
{
    vdvTandberg_TC,  // corporate phonebook
    vdvTandberg_TC2  // local phonebook
}
dev vdvPhonebooks2[] =
{
    vdvTandberg_TC2,  // corporate phonebook
    vdvTandberg_TC2_2  // local phonebook
}

DEFINE_START

DEFINE_MODULE 'Tandberg_TC_Comm_dr1_0_0' Comm1( vdvTandberg_TC, dvTANDBERG_1 )
DEFINE_MODULE 'Tandberg_TC_Comm_dr1_0_0' Comm2( vdvTandberg_TC2, dvTANDBERG_2 )
DEFINE_MODULE 'TANDBERG_PrecisionHD' InstructorUI(vdvCAM_2, dvTP_CAM_1, menuButtons)
DEFINE_MODULE 'TANDBERG_PrecisionHD' StudentUI(vdvCAM_1, dvTP_CAM_2, menuButtons)
DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Instructor(vdvCAM_2, dvCAM_2)
DEFINE_MODULE 'TANDBERG_PrecisionHD_dr1_0_0' Student(vdvCAM_1, dvCAM_1)
DEFINE_MODULE 'Tandberg_TC_Phonebook'    TAAPhonebook_A(vdvPhonebooks, dvIPAD_RmA, pbButtons)
DEFINE_MODULE 'Tandberg_TC_Phonebook'    TAAPhonebook_B(vdvPhonebooks2, dvIPAD_RmB, pbButtons2)

The CAM UI buttons were reversed and I haven't changed the ID to match - but they are assigned correctly. As mentioned before, the camera functions have worked, but seems to interfere with the channel that tracks DUO VIDEO/Presentation status (Ch# 314) and the ON HOOK/OFF HOOK status (CH#238).

I've actually gone back to manually controling the cameras through Hex commands instead of using the module, but have no presets available. I was hoping not to have to send the PT, Z, and F queries and then parse and store all that data to create a preset.

The phonebook portion of the module worked with the older module 1.2 - but would leave the H323 in front of the dial string. So I updated the module to 1.3.1 and now can't get the phonebook to load at all.

Buttons should not be an issue, because most of them are handled on different ports to avoid overlaps.

Hopefully this sheds some light on what I'm doing in code.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links