I've written some PHP to decypher SMS using Bluetooth. It doesn't do sending SMS yet, but I'm sure that's not much of a problem.
http://sf.net/projects/laconicatools
The code's in the SVN repo, in a file called lib_pdu.php
If you can do something useful with the code, please do :)
Jon