NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP/Bluetooth/Serial

Jon Baer jonbaer at jonbaer.net
Wed Jun 2 09:33:19 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

greetings ...

ive been playing around with a few classes in Ruby/Perl which deal with
AT messages to my t68i (which runs on other phones as well), then i was
able to find btcontrold which was even better (to send messages to xse
(XSendEvent cli) for controlling presentations) ... basically you can
create a menu on the phone and send something like @php
/path/to/script.php and read back results which can be use for small
messages/notes.

anyways, many of the classes deal with writing directly to serial
(/dev/rfcomm0) which php can do but i havent seen many classes that deal
directly w/ devices, are there any in php?  i had considered taking the
ruby "driver" i found and wrapping it in PHP_FUNCTION()'s for a module
but thought it would be overkill to create an extension.

has anyone seen any php code like this?  what im trying to envision
doing is something like:

$phone = new Phone("t68i");
$phone->addNewMenu($menu, $evnt);
$phone->showMenu($menu);
... then event handlers ...

- - jon

- --

pgp key: http://www.jonbaer.net/jonbaer.asc
fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAvdcfQdvbi5oMr0cRAnmrAKCFn/6A10keEfFwxHe9Ryt9YsiO/gCgwetd
K5obb6bvdhYUsb0SH/SEVWo=
=MOMd
-----END PGP SIGNATURE-----



More information about the talk mailing list