#define USAGE \ "\n" \ "\nTest sending the burst mini command A/B on a SAT frontend." \ "\n" \ "\nusage: FRONTEND=/dev/dvb/adapterX/frontendX sendburst {a|b}" \ "\n" #include #include #include #include #include #include #include #include #include int main (int argc, char **argv) { char *fedev = "/dev/dvb/adapter0/frontend0"; int fd, r; if (argc != 2 || (strcmp(argv[1], "a") && strcmp(argv[1], "b"))) { fprintf (stderr, "usage: %s \n" USAGE, argv[0]); return 1; } if (getenv("FRONTEND")) fedev = getenv("FRONTEND"); printf("set22k: using '%s'\n", fedev); if ((fd = open (fedev, O_RDWR)) < 0) { perror ("open"); return 1; } ioctl (fd, FE_SET_TONE, SEC_TONE_OFF); usleep (30000); /* 30ms according to DiSEqC spec */ if (strcmp(argv[1], "a") == 0) r = ioctl (fd, FE_DISEQC_SEND_BURST, SEC_MINI_A); else r = ioctl (fd, FE_DISEQC_SEND_BURST, SEC_MINI_B); if (r == -1) perror("ioctl FE_SET_TONE"); close (fd); return 0; } '>aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2011-03-29make scan file syntax more strictChristoph Pfister1-8/+8
2011-03-29remove empty scan filesChristoph Pfister14-392/+0
2011-03-29remove scan files with guard interval == AUTOChristoph Pfister79-1914/+0
- all devices which support automatic detection of guard interval also suport detection of the other tuning paramters - use auto-Default / auto-With167kHzOffsets instead (superset of the used frequencies; takes a bit longer than regionalized files, but that's affordable)
2011-03-29rename auto-Normal --> auto-DefaultChristoph Pfister1-0/+0
2011-03-17update scan file for es-MadridChristoph Pfister1-8/+22
submitted by asgsb09 gmail.com