Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

richardc (1662)

  (email not shown publicly)

Journal of richardc (1662)

Monday March 08, 2004
12:55 AM

evolving - Paging Win32 and/or Device::SerialPort users.

[ #17800 ]

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