Page 1 of 1

meaning mask parameter

PostPosted: Thu 21. May 2009, 04:37
by Fischer
Hi
concening function SendRemoteCommand,
what is the meaning of "mask" and "bus" parameters ?
I understand the use of "bus" parameter, but not for 'mask' paramerter.

In case of IRTrans bus modules connected to an IRTrans usb module, ecah bus module is addressed with the 'bus' parameter.

Thanks.

Re: meaning mask parameter

PostPosted: Thu 21. May 2009, 12:08
by IRTrans
It is the other way round:

- The bus parameter selects the IRTrans Device connected to the PC (either USB, RS232 or Ethernet). 0 = first one, 1 = 2nd and so on
- The mask or address mask parameter selects the Bus modules connected to the selected bus. It is a Bit mask that allows to select any combination of bus modules:
1 = Device ID 0, 2 = Device ID 1, 4 = Device ID 2 and so on. Adding the numbers allows to select multiple bus modules.

IRTrans

Re: meaning mask parameter

PostPosted: Fri 22. May 2009, 01:11
by Fischer
Hi,now it s clear.

And in case of several IRtrans bus modules,
how are the adrdess of the module ?
or can i set this address ?
I assume that this address is stored in some non volatile memory ?

Thanks

Re: meaning mask parameter

PostPosted: Fri 22. May 2009, 11:17
by IRTrans
IRTrans Bus Modules do have a 4 way DIP Switch to select the ID from 0 - 15.

IRTrans

Re: meaning mask parameter

PostPosted: Wed 22. Jul 2009, 14:18
by bluesincenew
Thats what I was looking for...
So the mask to flash only BusModule(0110) or #6 is (0000000001000000) or [csendmask]64;
and the mask to flash BusModules #6, 10 and 14 is (0100010001000000) or [csendmask]17472.
MASK - ID - Decimal
16 15 32768
15 14 16384
14 13 8192
13 12 4096
12 11 2048
11 10 1024
10 09 512
09 08 256
08 07 128
07 06 64
06 05 32
05 04 16
04 03 8
03 02 4
02 01 2
01 00 1

Re: meaning mask parameter

PostPosted: Wed 22. Jul 2009, 14:25
by bluesincenew
Is there a way to assign a mask in the .rem files?

[csendmask] in remote.irm is applied to each applicable command, is there a syntax for applying to the entire remote?

Re: meaning mask parameter

PostPosted: Wed 22. Jul 2009, 14:42
by IRTrans
No, the sendmask parameter cannot be assigned in .rem files.

To keep everything usable in different environments everything is strictly kept apart. We do not store any information specific for the installation in the .rem file.

IRTrans