Yes directly to the inverter over Bluetooth, its taken me weeks to workout and understand what the SMA protocols are (they haven't published the specification unlike older protocols), but I can get the history data, current 5 minute average and instant spot values for watts, ac frequency, ac voltage, ac current etc.
That's impressive, I know the older protocol was available so I guess as you are working with the later protocol you are looking at interfacing with SunnyBoy's or similar with built in bluetooth. What language and platform are you working with C on windows maybe?
You are probably aware of the SMA bluetooth connection for linux sma-bluetooth - SMA Inverter Bluetooth Connection for linux - Google Project Hosting but if not its worth a look as it has some useful C code in the SMATool.
I've done a fair bit of programming so would certainly be interested to see what you have done, what are you intending to do with alll your hard work, are you looking to develop some sort of smart control system? If so you will be faced with the problem that the data from the inverter is useful but it would be better to know what excess (i.e. export) power is available at any point which is the problem I'm up against.
Whilst I would be interested in developing a software solution at some point, I'm currently attempting a purely hardware solution for directing any excess power to the immersion using a 'phase angle' power controller. Ideally something that could be retro fitted to most PV installations regardless of inverter type and it's looking likely I'll have to use multiple clamp type sensors to achieve that.