meaning mask parameter

Software related support

Moderator: marcus

meaning mask parameter

Postby Fischer » Thu 21. May 2009, 04:37

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.
Fischer
 
Posts: 31
Joined: Thu 20. Nov 2008, 18:16

Re: meaning mask parameter

Postby IRTrans » Thu 21. May 2009, 12:08

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: meaning mask parameter

Postby Fischer » Fri 22. May 2009, 01:11

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
Fischer
 
Posts: 31
Joined: Thu 20. Nov 2008, 18:16

Re: meaning mask parameter

Postby IRTrans » Fri 22. May 2009, 11:17

IRTrans Bus Modules do have a 4 way DIP Switch to select the ID from 0 - 15.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: meaning mask parameter

Postby bluesincenew » Wed 22. Jul 2009, 14:18

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
Last edited by bluesincenew on Wed 22. Jul 2009, 14:30, edited 3 times in total.
bluesincenew
 
Posts: 12
Joined: Thu 11. Jun 2009, 00:57

Re: meaning mask parameter

Postby bluesincenew » Wed 22. Jul 2009, 14:25

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?
bluesincenew
 
Posts: 12
Joined: Thu 11. Jun 2009, 00:57

Re: meaning mask parameter

Postby IRTrans » Wed 22. Jul 2009, 14:42

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to Software

Who is online

Users browsing this forum: No registered users and 12 guests

cron