Structure of DiSEqC Command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,
I was reading the source code of various dvb related utilities and I
was wondering about forming up the message which instructs the DiSEqC
switch. But I found out that different programs produce the command
differently.
The confusing thing is that according to the DiSEqC specification
documents that I've read, the least significant bit (lsb) must
indicate the band (low/high), not the polarity (ver/hor), but as you
see it only applies to some of these programs:

getstrean abd dvbstream:
int i = 4 * switch_pos + 2 * hiband + (voltage_18 ? 1 : 0);

szap and mplayer:
(((sat_no * 4) & 0x0f) | (hi_lo ? 1 : 0) | (polv ? 0 : 2));

scan:
4 * switch_pos + 2 * hiband + (voltage_18 ? 1 : 0)

gstdvbsrc:
(((sat_no * 4) & 0x0f) | (tone == SEC_TONE_ON ? 1 : 0) | (voltage ==
SEC_VOLTAGE_13 ? 0 : 2));


-- Nima Mohammadi
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux