So pleasantly enough Device::Ericsson::AccessoryMenu turns out to have quite the life of its own, so much so that the latest release (0.8) is entirely the work of Arne Georg Gleditsch who sent me a patch last month which I shamefully only just got round to looking at.
Anyway in yesterdays mail I received a query about bluetooth devices going out of range, which is in part the disconnection/reconnection stuff mentioned in the TODO section of the pod.
The problem in play here is that when your bluetooth device goes away it's presented to the machine as 'your modem has been disconnected from your serial port' and I can't work out how to get that from the Device::SerialPort API (actually, I can't figure out very much at all from the documentation of Device::SerialPort and Win32::SerialPort, but that's a different matter).
One way around this whole mess is to avoid Device::SerialPort altogether, and handle the serial port directly in a posix stylee, the downside to which is but that means losing the plug compatibility with Win32::SerialPort and so Win32 compatibility in general.
I'm somewhat reluctant to lose an OS just to make my life easier (though if we were talking about AIX then that's quite a different matter...), but I don't really know that there are Win32 users to lose, and so on to the appeal.
If you're using Device::Ericsson::AccessoryMenu on Win32 please drop me a note let me know. Also if you know how to get Device::SerialPort to 'fess up about the device going away, that'd be super too.
Monday - 2004-03-08 05:52