View previous topic :: View next topic |
Author |
Message |
Leio Developer
Joined: 27 Feb 2003 Posts: 494 Location: Estonia
|
|
Back to top |
|
|
ufoman Tux's lil' helper
Joined: 02 Apr 2006 Posts: 80
|
Posted: Thu Mar 13, 2008 12:14 pm Post subject: |
|
|
Gusar wrote: | Am I correct to assume that Phonetooth uses the Bluetooth Serial Port Profile for communication with the phone? If so, it won't work with the N70, because the N70 does not support SPP. I have an N80 which isn't recognized by Phonetooth either. The N80 supposedly does support SPP, but it doesn't show up in a 'sdptool browse'.[/code] |
Hardware supports all profiles, just the SPP service is not advertised and there is no ready software support for it. I have successfully extracted phone info using Gammu by connecting rfcomm device to DUN service on phone, but unfortunately nothing else worked... _________________ Registered Linux User #417638
amd64 no-multilib
desktop: Gigabyte GA-MA770-UD3 v2.0, Athlon II X2 250 @3,6GHz, 4GB DDR2 800, Radeon HD 4850, Seagate Barracuda 7200.11 320GB |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Thu Mar 13, 2008 5:40 pm Post subject: |
|
|
Phonetooth indeed uses a Bluetooth Serial Port Profile for communication with the phone. I currently use AT Commands as protocol. I will probably add gammu support for phones that don't support AT Commands. There seem to be quite a few. |
|
Back to top |
|
|
frugo3000 n00b
Joined: 12 Feb 2008 Posts: 14 Location: Polska, Szczecin
|
Posted: Sat Mar 15, 2008 11:12 am Post subject: |
|
|
It can't find my nokia 6630 _________________ AMD Athlon x2 3600+ @ 9.0*318 2862MHz // ABIT KN9 nForce4 Ultra // GALAXY 7900gs 1.4ns 630/700 // GOODRAM Ddr2 800MHz 2x1GB // WD caviar 160GB pata // SAMSUNG 320GB sataII
Arch Linux |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Sat Mar 15, 2008 8:40 pm Post subject: |
|
|
I just released version 0.2.0
Release 0.2.0
* Support for sending messages in PDU mode (some devices don't support text mode)
* Added python gammu as backend (should increase number of supported devices)
* New config file layout
ebuild can be found on http://code.google.com/p/phonetooth/
You can now use gammu as backend for communication with your phone, this should help for phones that don't support at commands.
Use the gammu use flag in the ebuild
p1c2u: you should now be able to send sms messages in pdu mode (it was real pain ) |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Sat Mar 29, 2008 7:27 pm Post subject: |
|
|
Another version has been released, heavily improving sms sending with support for unicode and multi part messages.
It is also possible to use /dev/rfcomm* as device for people having trouble discovering their device.
Complete changelog:
* Allow connection through serial device
* Contacts can be exported to csv
* Support for unicode text messages
* Support for multi-part messages
* Delivery report option added
* Auto-detect port for file transfer
ebuild: http://phonetooth.googlecode.com/files/phonetooth-0.3.0.ebuild |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Sun Mar 30, 2008 4:14 pm Post subject: |
|
|
I was able to install the latest ebuild (0.3.0) with the gammu useflag but if I try to start phonetoothui I get this error msg: Code: | Traceback (most recent call last):
File "/usr/bin/phonetoothui", line 25, in ?
from phonetooth import mainwindow
File "/usr/lib/python2.4/site-packages/phonetooth/mainwindow.py", line 26, in ?
from phonetooth import mobilephonefactory
File "/usr/lib/python2.4/site-packages/phonetooth/mobilephonefactory.py", line 19, in ?
from phonetooth import bluetoothconnection
File "/usr/lib/python2.4/site-packages/phonetooth/bluetoothconnection.py", line 43
return self.__sock.recv(size, socket.MSG_WAITALL if wait == True else 0)
^
SyntaxError: invalid syntax |
Looking into the emerge log this seems to be related to this errors: Code: | Byte-compiling python modules...
contacts.py contactsdialog.py mainwindow.py mobilephone.py mobilephonegammu.py mobilephonefactory.py bluetoothdiscovery.py bluetoothconnection.py File "/usr/lib/python2.4/site-packages/phonetooth/bluetoothconnection.py", line 43
return self.__sock.recv(size, socket.MSG_WAITALL if wait == True else 0)
^
SyntaxError: invalid syntax
serialconnection.py preferences.py preferencesdialog.py constants.py sms.py File "/usr/lib/python2.4/site-packages/phonetooth/sms.py", line 99
endIndex = startIndex + (charactersLeft if finalPart else charactersPerPart)
^
SyntaxError: invalid syntax
bit7alphabet.py __init__.py
Byte-compiling python modules (optimized versions) ...
contacts.py contactsdialog.py mainwindow.py mobilephone.py mobilephonegammu.py mobilephonefactory.py bluetoothdiscovery.py bluetoothconnection.py serialconnection.py preferences.py preferencesdialog.py constants.py sms.py bit7alphabet.py __init__.py |
Code: | emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-rc8-g597d23b8-dirty i686)
=================================================================
System uname: 2.6.24-rc8-g597d23b8-dirty i686 Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz
Timestamp of tree: Sat, 29 Mar 2008 02:45:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python: 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu" |
Any hints?
Greetz
swimmer |
|
Back to top |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Sun Mar 30, 2008 4:57 pm Post subject: |
|
|
sms with not latin chars works fine now _________________ rion-overlay |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Sun Mar 30, 2008 7:19 pm Post subject: |
|
|
swimmer: python 2.4 does not support ternary operators, I restructured the code to work with python 2.4 by removing the ternary operators and will make a new release soon. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Sun Mar 30, 2008 10:01 pm Post subject: |
|
|
@Valkyr: thanks for the fast reply You are the second (after the Portato guy) which tries to get me to python 2.5
I will re-think it though ...
Greetz
swimmer |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Mon Mar 31, 2008 1:31 am Post subject: |
|
|
Thank you very much - now I can report that your application also works on a Sony Ericsson K800i with bluetooth
Greetz
swimmer |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Mon Mar 31, 2008 7:18 am Post subject: |
|
|
Good to hear |
|
Back to top |
|
|
ufoman Tux's lil' helper
Joined: 02 Apr 2006 Posts: 80
|
Posted: Tue Apr 01, 2008 1:33 pm Post subject: |
|
|
Phonetooth 0.3.1 detected my Nokia N70, but when I tried to send message I got error "Failed to send message: string index out of range"
Ps. Sending a file worked _________________ Registered Linux User #417638
amd64 no-multilib
desktop: Gigabyte GA-MA770-UD3 v2.0, Athlon II X2 250 @3,6GHz, 4GB DDR2 800, Radeon HD 4850, Seagate Barracuda 7200.11 320GB |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Tue Apr 01, 2008 2:01 pm Post subject: |
|
|
Could you give me a string that reproduces the problem? |
|
Back to top |
|
|
ufoman Tux's lil' helper
Joined: 02 Apr 2006 Posts: 80
|
Posted: Sat Apr 05, 2008 1:34 am Post subject: |
|
|
I know what was the problem. After entering number in contacts you have to click on the empty field below to make it saved... anyways, YOU ROCK!
You've done the impossible - I can send SMS from my Symbian phone from Linux! _________________ Registered Linux User #417638
amd64 no-multilib
desktop: Gigabyte GA-MA770-UD3 v2.0, Athlon II X2 250 @3,6GHz, 4GB DDR2 800, Radeon HD 4850, Seagate Barracuda 7200.11 320GB |
|
Back to top |
|
|
Erlend Guru
Joined: 26 Dec 2004 Posts: 493
|
Posted: Wed Apr 16, 2008 7:39 pm Post subject: |
|
|
Wow this is an exciting project. A desktop-neutral bluetooth phone manager!
I installed version 0.3.1 without the gamma use-flag. I'm using the sony k800i.
Everything works perfectly except for Send File... The phonetooth window says "File successfully sent." but nothing happens on my phone. Any ideas?
Also, will this program ever support receiving of sms messages on the computer (i.e. similar functionality to gnome-phone-manager)?
Thanks for the effort Dirk!
Erlend _________________ Thunar-thumbnailers
Raw-thumbnailer
http://brainstorm.ubuntu.com/idea/6878/image/1/ |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Wed Apr 16, 2008 11:45 pm Post subject: |
|
|
I'm glad you like it. The Send file functionality isn't that great at the moment and will be rewritten to use obex-data-server in stead of obexftp.
I started writing the application and implemented the features that I wanted to use, and receiving messages wasn't one of them. I never really saw the use of that feature because you can just read the message on the mobile phone (it is nearby if its connected). I will focus on other features first, but who nows if more people want the feature I might eventually implement it.
Development slowed down the last few weeks, because other things have been keeping me busy, but I will pick it back up one of these days. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Thu Apr 17, 2008 1:52 am Post subject: |
|
|
Receiving SMS & MMS from the phone as a sort of backup would be a nice feature indeed ...
Also I'd prefer to have the sent messages written somewhere on the phone as well - as in 'Sent' or 'Saved messages' ...
Thanks for your good work!
swimmer |
|
Back to top |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
|
Back to top |
|
|
Erlend Guru
Joined: 26 Dec 2004 Posts: 493
|
Posted: Thu Apr 17, 2008 9:31 am Post subject: |
|
|
swimmer wrote: | Receiving SMS & MMS from the phone as a sort of backup would be a nice feature indeed ...
Also I'd prefer to have the sent messages written somewhere on the phone as well - as in 'Sent' or 'Saved messages' |
Not just as a backup though - communication is communication, whether it be e-mail, instant message or SMS message: I would like these to be more unified on the Linux desktop (a bit like they are on GMail - almost). It's good to be able to read the messages on my computer screen. _________________ Thunar-thumbnailers
Raw-thumbnailer
http://brainstorm.ubuntu.com/idea/6878/image/1/ |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Thu Apr 17, 2008 9:55 am Post subject: |
|
|
Thanks Rion, I submitted both requests
Greetz
swimmer |
|
Back to top |
|
|
Valkyr Tux's lil' helper
Joined: 30 Jan 2004 Posts: 123 Location: Belgium
|
Posted: Thu May 29, 2008 10:57 pm Post subject: |
|
|
A new release has been created which could use some more extensive testing
Release 0.4.0
* Improved device discovery, takes less time
* Improved file transfer with obex-data-server
* Import contacts from file
* Send message to multiple contacts
* Scanning for devices no longer hangs when no bluetooth device is present
* Option to store sent messages on the phone
The ebuild can be found here
http://phonetooth.googlecode.com/files/phonetooth-0.4.0.ebuild |
|
Back to top |
|
|
mziab l33t
Joined: 01 Oct 2004 Posts: 644
|
Posted: Tue Jun 03, 2008 1:56 pm Post subject: |
|
|
Great job on the app. The previous version is working great here.
0.4.0 breaks compatibility with python 2.4, though:
Code: | contacts.py contactsdialog.py File "/usr/lib/python2.4/site-packages/phonetooth/contactsdialog.py", line 132
finally:
^
SyntaxError: invalid syntax
selectcontactsdialog.py mergecontactsdialog.py mainwindow.py filetransfer.py mobilephone.py mobilephonegammu.py mobilephonefactory.py bluetoothdiscovery.py bluetoothconnection.py serialconnection.py preferences.py preferencesdialog.py File "/usr/lib/python2.4/site-packages/phonetooth/preferencesdialog.py", line 111
finally:
^
SyntaxError: invalid syntax
|
_________________ Gentoo Linux 13.0 | 3.19 | glibc 2.19 | gcc 4.9.2
mteam | mziab's blog | roslin |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Tue Jun 03, 2008 2:28 pm Post subject: |
|
|
Same here - unfortunately I don't have any time for testing since I'm travelling too much at the moment :-/ |
|
Back to top |
|
|
|