Notices


Reply
Thread Tools
titilambert's Avatar
Posts: 98 | Thanked: 147 times | Joined on Mar 2010
#1
HeySms

SAILFISH PORT HERE

Application submitted to the 2012 Coding Competition

Hi everyone !
I made a small application to send and receive sms on your computer without a specific software.
You just have to use your instant messaging client ... Which have to be compatible with Bonjour protocol.

I made this application because my girlfriend send me a lot of sms when I'm working ...
Now I can answer her without taking my N900 ...

Feature list :
  • Send SMS from your computer (using your bonjour client)
  • Receive SMS on your computer (using your bonjour client)
  • Silent your phone when HeySms starts
  • Use Smssend to send SMS. Usefull if you can't send Sms wih standard method. (You need to install smssend package)
  • Connect your phone to your computer using the USB cable
  • Bonjour Bot to control your phone (called 'Controller')
  • Controller will notify you if someone call you (Usefull, if your N900 is in silent mode)
  • Set contact as favorite... This contact will appears in your active contact list at starting ...
  • All your messages/answers are stored in your conversation history...

Controller fonctions :
  • help : Show help
  • show : Show current active contact list
  • search : Search a contact in your address book in order to add a contact in your Bonjour contact list
  • add : Add contact to active contact list
  • del : Remove contact from active contact list
  • echo : Just reply your message ...
  • If you have any idea ... I can do it !!!

Mini manual :
  1. Launch your instant messaging client on your computer and activate your Bonjour account.
  2. Launch HeySms on your N900
  3. In HeySms select yourself (your Bonjour name) in the Bonjour contact list.
  4. If you are not in the Bonjour contact list, click on reload button ...
  5. Add contact in your active contact list (Menu -> "Add friend")
  6. You will see your friend in the active contact list
  7. Your friend will appears in your Bonjour client on your computer
  8. Write message to your friend (in fact, it send SMS...)
  9. .... Wait answer ....
  10. Receive SMS ...
  11. The message appears on your computer !
  12. Answer ...

Of course, only the selected bonjour contact can send/receive SMS from/to your phone...

Also, all your answers will be store in the N900 history. You will not lost your messages !

Tested :
  • N900 and Pidgin (on Linux)
  • N900 and Empathy (on Linux)
  • N900 and Kopete (on Linux) [ Need more feedbacks ]
  • N900 and Gajim (on Linux) [ Need more feedbacks ]
  • Please talk about you

Limitations
  • If you use Wifi, your N900 and your computer must be on the same network (subnet)
  • N900 only (If I get N950 or N9, I port it !)

Updates
  • 1.6.6-1 : Fix communications with Kopete, Empathy, Pidgin and Gajim
  • 1.6.5-1 : Fix my poor english
  • 1.6.4-1 : Fix call notifier
  • 1.6.3-1 : Fix search contact (Thanks to darodi)
  • 1.6.2-1 : Fix Controller stability
  • 1.6.1-1 : Fix stability
  • 1.6.0-1 : Add controller. You can now control your N900 using Bonjour
  • 1.5.1-1 : Cleaning code
  • 1.5.0-1 : Add option to use USB PC connection
  • 1.4.5-1 : Fix minor bugs

Roadmap
  • Clean bonjour client code (use XMPPPY ???)
  • Improve USB network activation stability
  • Port to N9/N950
  • Silent phone using the Controller
  • Add preference to don't show Yellow Popups
  • Translations
  • .... ???
  • Call forwarding using jingle library ??? ( maybe in version 42 )

Usefull links :
Thanks for your feedbacks !



Please, excuse my english ...

Last edited by titilambert; 2014-07-25 at 06:43.
 

The Following 29 Users Say Thank You to titilambert For This Useful Post:
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#2
N900 and a PC has to be somehow in the same local net, I guess, so avahi, mdns, bonjour would work?
 
titilambert's Avatar
Posts: 98 | Thanked: 147 times | Joined on Mar 2010
#3
Originally Posted by zimon View Post
N900 and a PC has to be somehow in the same local net, I guess, so avahi, mdns, bonjour would work?
You right !!! I just edited my message ...

Maybe I should plan something (button ?) to automount the usb0 interface to simplify the connection...
 
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#4
Need to try this as soon as possible. This would be reason enough for me to switch back to the n900 as my main phone. Or would it be possible to port this to the n9?
 

The Following User Says Thank You to benny1967 For This Useful Post:
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#5
Originally Posted by titilambert View Post
Maybe I should plan something (button ?) to automount the usb0 interface to simplify the connection...
Hmm...maybe, but if someone already has local net connection with some other means (usb, wlan, bluetooth) then it should be able to use that also. Maybe you just tell in the help button, one can use Mobile hotspot to make a local net connection?


Tried it.
I have USB-network connection to the PC (with Mobile Hotspot application). The local net is working. I can for example ssh both ways.

When I start HeySms, it just tells "Loading Bonjour contacts" and then quits.

I tried to run it in xterminal, and it gives this:
Code:
$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')

Last edited by zimon; 2012-06-05 at 20:02.
 
Posts: 34 | Thanked: 36 times | Joined on Nov 2011 @ Atlanta
#6
Would love to see something like this for the N9. Nice work
 

The Following 2 Users Say Thank You to fignew For This Useful Post:
Posts: 282 | Thanked: 220 times | Joined on Aug 2011
#7
A good idea
Can you make it send emails with the SMS content
And you can reply back by sending back an email with a prefix maybe like SMS: -N "phone number" -t "text here "
 

The Following User Says Thank You to davdav For This Useful Post:
titilambert's Avatar
Posts: 98 | Thanked: 147 times | Joined on Mar 2010
#8
Originally Posted by benny1967 View Post
Need to try this as soon as possible. This would be reason enough for me to switch back to the n900 as my main phone. Or would it be possible to port this to the n9?
I just don't have N9 ...
I will present this application to meamo competition code 2012 to win a N9/N950 and port it ...

Thanks
 

The Following 3 Users Say Thank You to titilambert For This Useful Post:
titilambert's Avatar
Posts: 98 | Thanked: 147 times | Joined on Mar 2010
#9
Originally Posted by zimon View Post
Hmm...maybe, but if someone already has local net connection with some other means (usb, wlan, bluetooth) then it should be able to use that also. Maybe you just tell in the help button, one can use Mobile hotspot to make a local net connection?


Tried it.
I have USB-network connection to the PC (with Mobile Hotspot application). The local net is working. I can for example ssh both ways.

When I start HeySms, it just tells "Loading Bonjour contacts" and then quits.

I tried to run it in xterminal, and it gives this:
Code:
$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')
Oh ! Maybe I forgot a dependency in packaging ...
Do you have avahi-daemon installed ?
What do you have with :
apt-cache show avahi-daemon
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#10
Originally Posted by titilambert View Post
Oh ! Maybe I forgot a dependency in packaging ...
Do you have avahi-daemon installed ?
What do you have with :
apt-cache show avahi-daemon
Code:
$ dpkg -l | grep avahi
ii  libavahi-client3                                    0.6.24-0maemo5                             Avahi client library
ii  libavahi-common-data                                0.6.24-0maemo5                             Avahi common data files
ii  libavahi-common3                                    0.6.24-0maemo5                             Avahi common library
ii  libavahi-compat-libdnssd1                           0.6.24-0maemo5                             Avahi Apple Bonjour compatibility library
Yep, avahi-daemon was not installed.
....

edit:

After installing avahi-daemon:
Code:
$ dpkg -l | grep avahi
ii  avahi-daemon                                        0.6.24-0maemo5                             Avahi mDNS/DNS-SD daemon
ii  libavahi-client3                                    0.6.24-0maemo5                             Avahi client library
ii  libavahi-common-data                                0.6.24-0maemo5                             Avahi common data files
ii  libavahi-common3                                    0.6.24-0maemo5                             Avahi common library
ii  libavahi-compat-libdnssd1                           0.6.24-0maemo5                             Avahi Apple Bonjour compatibility library
ii  libavahi-core5                                      0.6.24-0maemo5                             Avahi's embeddable mDNS/DNS-SD library
But still no luck:
Code:
$ heysms
Unsupported date format character at 1 (%-d.%-m.)
Traceback (most recent call last):
  File "/usr/bin/heysms", line 32, in <module>
    main()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 184, in main
    ui.central_widget.reload_contacts()
  File "/usr/lib/python2.5/site-packages/heysms/heysms.py", line 85, in reload_contacts
    self.parent.bonjour_users = list_presence_users()
  File "/usr/lib/python2.5/site-packages/heysms/lib/lib.py", line 201, in list_presence_users
    callBack=browse_callback)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 1409, in DNSServiceBrowse
    None)
  File "/usr/lib/python2.5/site-packages/heysms/lib/pybonjour.py", line 286, in _errcheck
    raise cls(result)
lib.pybonjour.BonjourError: (-65537, 'unknown')

Last edited by zimon; 2012-06-05 at 21:02.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:46.