Radio RDS driver... and more
Hi all! I would like to announce a little patch and binary module that is rotting on my harddisk for some time now... First thing I did when I got my N900 was to hack the radio-bcm2048 driver to output proper RDS data to /dev/radio1 so that one can write proper userspace decoders - which is what I started next ;) So here we go: http://labs.kernelconcepts.de/Projects/RDS-TMC/ You can find the kernel driver diff as well as a pre-compiled kernel binary (works for all release kernels so far, i.e. PR1.1, PR1.2 and PR1.3) which can just be copied to /lib/modules/2.6.28-omap1/ and pay attention that the module gets reloaded. After tuning to your favourite station with RDS you can read the raw RDS groups (binary data - not human readable!) from /dev/radio1. The decoder/ tree in GIT contains my tries at decoding the RDS as well as TMC. It works already pretty well for German TMC (not TMCpro) using the also contained location list database (bunzip the lcl.db.bz2). The GTK application "uberradio" is a first shot of mine for a GUI to display as much information from the RDS stream as possible - far from complete but could probably one be turned into a Maemo application. Currently I use it on my laptop with a FM radio USB stick. So...umm... have fun with it! Feedback is of course welcome - but not expect any fast responses...this is my (scarce) free time project. Cheers nils -- kernel concepts GbR Tel: +49-271-771091-12 Sieghuetter Hauptweg 48 Fax: +49-271-771091-19 D-57072 Siegen Mob: +49-176-21024535 http://www.kernelconcepts.de ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: calendar-backend API: CCalendar's entries empty
2010/11/5 Filip-M. Brinkmann > Hi all, > > I'd like to code a small Todo-list widget, which shows all due to-dos on > the desktop. > I started today, but I cannot access the to-dos because the CCalendar > instances don't return any entries. > I have 2 Calendars on my N900 and I get two calendar instances back, > which is fine. They return the correct names and attributes, but are > otherwise unresponsive. ;) > so, for instance the following code returns 0 as to-do count: > > ... > > QString output; > int count=0; > int error; > > CMulticalendar* mcal = CMulticalendar::MCInstance(); > vector cals = mcal->getListCalFromMc(); > for(std::vector::iterator it = cals.begin(); it != cals.end(); > ++it){ > // here, I get those 2 calendars correctly > > // next line sums up to 0 all the time > count += (dynamic_cast(*it))->getTodos(error).size(); > > // next line shows the calendar names > cerr << (dynamic_cast(*it))->getCalendarName(); > } > > output= QString("Found %1 todos.").arg(count); > // count is 0 here, although I have like 20 todos in one calendar > return output; > > -- > Same behaviour shows on getEvents() and so on... > > Since documentation is...ehm... not very complete: > does anyone know what happens there? > > cheers, > > filip > > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > For debugging purpose you can create an empty file: /home/user/.calendar/log (reboot may necessary) This file indicates the calendar-backend to log ALL sql and results as syslog messages. Now you can see which sql and parameters are called for example to retrive all todos with "getTodos()" Btw pay attention, that methods like this one: (dynamic_cast(*it))->getTodos(error).size(); create a vector with dynamically allocated objects, and you have to free them. regards nicolai ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
calendar-backend API: CCalendar's entries empty
Hi all, I'd like to code a small Todo-list widget, which shows all due to-dos on the desktop. I started today, but I cannot access the to-dos because the CCalendar instances don't return any entries. I have 2 Calendars on my N900 and I get two calendar instances back, which is fine. They return the correct names and attributes, but are otherwise unresponsive. ;) so, for instance the following code returns 0 as to-do count: ... QString output; int count=0; int error; CMulticalendar* mcal = CMulticalendar::MCInstance(); vector cals = mcal->getListCalFromMc(); for(std::vector::iterator it = cals.begin(); it != cals.end(); ++it){ // here, I get those 2 calendars correctly // next line sums up to 0 all the time count += (dynamic_cast(*it))->getTodos(error).size(); // next line shows the calendar names cerr << (dynamic_cast(*it))->getCalendarName(); } output= QString("Found %1 todos.").arg(count); // count is 0 here, although I have like 20 todos in one calendar return output; -- Same behaviour shows on getEvents() and so on... Since documentation is...ehm... not very complete: does anyone know what happens there? cheers, filip ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers