![]() |
[Announce] HeySms - Send and receive sms on your computer
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 :
Controller fonctions :
Mini manual :
Of course, only the selected bonjour contact can send/receive SMS from/to your phone... :D Also, all your answers will be store in the N900 history. You will not lost your messages ! ;) Tested :
Limitations
Updates
Roadmap
Usefull links :
Thanks for your feedbacks ! Please, excuse my english ... :) |
Re: [Announce] HeySms - Send and receive sms on your computer
N900 and a PC has to be somehow in the same local net, I guess, so avahi, mdns, bonjour would work?
|
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Maybe I should plan something (button ?) to automount the usb0 interface to simplify the connection... |
Re: [Announce] HeySms - Send and receive sms on your computer
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?
|
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
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 |
Re: [Announce] HeySms - Send and receive sms on your computer
Would love to see something like this for the N9. Nice work :)
|
Re: [Announce] HeySms - Send and receive sms on your computer
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 " |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
I will present this application to meamo competition code 2012 to win a N9/N950 and port it ... :) Thanks |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Do you have avahi-daemon installed ? What do you have with : apt-cache show avahi-daemon |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Code:
$ dpkg -l | grep avahi .... edit: After installing avahi-daemon: Code:
$ dpkg -l | grep avahi Code:
$ heysms |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Hum ... good question ! I don't think, but I will check it ! |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
|
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Now it is and heysms runs. .... "No Bonjour contacts found." What I should configure in PC Linux Pidgin-end? Create a Bonjour-protocol account with what username? |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Then click on reload button on HeySms and you will see your account ... :) |
Re: [Announce] HeySms - Send and receive sms on your computer
replying to a sms via bonjour/pidgin doesn't work for me.
I receive the message in pidgin from a phone number in the form +32477xxxxxx when i reply, in the log i see : Code:
new_message to contact1 the first 2 digits '+3' are lost in the destination number. |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Well well well.. I m from Montreal, my number is +1 514 xxxx ... I never test HeySms with number outside america ... Could you tell me where do you come from ? and what is the structure of your number ? Thanks !! |
Re: [Announce] HeySms - Send and receive sms on your computer
I confirm !
HeySms works only with american number... I will fix it to night ... |
Re: [Announce] HeySms - Send and receive sms on your computer
I just update the package
This fix avahi dependency and number error ... Also, I will create a roadmap on github |
Re: [Announce] HeySms - Send and receive sms on your computer
This is so awesome! I was thinking in making a program like this.
Since it's 12:22 am here and everybody's sleeping I sent myself an automated SMS. But these SMS are alphanumeric so it seems it doesn't get recognized by this little program. In my country we receive a lot of alerts through alphanumeric SMS (Normal SMS just that they don't come from a number but from a word). Usually bills (reminders that you haven't pay something). Does it only work with numbers? I'd have to wait to decent hours to test it. |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
+ (intl code number) xxxxxx In Europe, intl code number can be 2 or 3 digits long (For example, 3 digits in Luxembourg '352', 2 digits for Belgium '32' ) '1' is the intl code number for America. That one is only one digit long. |
Re: [Announce] HeySms - Send and receive sms on your computer
Hm, shouldn't the full international number always be used, regardless of (length of) prefix? That is, shouldn't the 'from' be totally opaque to HeySms? Just wondering...
|
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
in fact you can t send international sms for now ( i never tested it ...) I will fix it ! Thanks ! |
Re: [Announce] HeySms - Send and receive sms on your computer
Very good one, anyway I already used to VNC my N900 from PC (x11VNC) in order to send sms remotely :D
|
Re: [Announce] HeySms - Send and receive sms on your computer
Oh my God! Look at this!
http://talk.maemo.org/showthread.php?t=62897 I knew I liked the idea from the start LOL (I should change the status from "sandbox" to implemented") |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Actually, I made this application last year ... I just didn't take the time to publish it ... Next step : stabilization Next step : Port to N9/N950 |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
removing the prefix is not a solution either. In my case, Belgium. sending a sms to +32 477 xxxxxx works sending a sms to 477 xxxxxx wouldn't work. sending a sms to 0477 xxxxxx would work The rule in Belgium is: if no intl prefix is used, the regional prefix 477 should be preceded with a 0. Those kind of rules can change in every country. Using the full number as stated in the contact list, regardless of its format, would be the better solution |
Re: [Announce] HeySms - Send and receive sms on your computer
I don't really get it why is there a distinction in numbers. Everything that is SMS should be forwarded via Bonjour. There's a way to differentiate SMS from IM in whatever method you're using for coding (python, Qt, GLIB).
|
Re: [Announce] HeySms - Send and receive sms on your computer
Hello !
I just made a new version which should work with all countries and all sms from all country ! :) It's in devel repository : HERE Please tell me if it's working for you guys ! I'm waiting your comment ! Thanks ! |
Re: [Announce] HeySms - Send and receive sms on your computer
Package is imported in testing !
|
Re: [Announce] HeySms - Send and receive sms on your computer
OK, there's somthing fishy here - but I need more input from other users and XMPP-experts before I call it a bug:
HeySMS (1.2.0-1) works fine when used together with Pidgin. (There is a message in the Pidgin debug window that looks like an error, but it doesn't seem to have any effect; the message is "jabber: XML parser error for BonjourJabberConversation 0x8ff0ac0: Domain 1, code 5, level 3: Extra content at the end of the document" and is issued after every SMS that's either sent or received.) When used with Empathy, though, only some contacts/senders work. SMS-messages from other contacts never get through. What happens is that the contact appears in Empathy when the SMS comes in, but disappears immediately. The content of the SMS is not transmitted to the PC. Empathy then disconnects the link local account. I tried to find something that the non-working contacts have in common. I found it: a space character. Messages from numbers that are not in my address book always work because they create a contact that consists of numbers only, no spaces. Messages from contacts that I stored as "Mum" or "David" also always work. Messages from contacts that have a space in either first or last name ("David jun.") or have both first and last name filled in ("David Miller") never work. I changed existing entries in the address book to verify this, I'm almost 100% certain that the issue is the space character. This made me check the XML that's sent. I found something like this: Code:
<message from="David Miller" to="benny@myhome" type="chat" id="798420758213"> Could it be that Pidgin is more forgiving about such issues than Empathy and that in fact the XMPP created by HeySMS is buggy? Or is the XMPP message created by HeySMS correct and there's a bug in Empathy or the underlying telepathy framework? I'd love to get it working with Empathy, because it's much better integrated with my Gnome desktop. === Edit: Just for comparison, a hand-written message sent from the normal Link-Local account on my N900 looks like this: Code:
<message from="chatwithme@Nokia-N900-42-11" to="benny@myhome" type="chat" id="68596804"> |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
When I started HeySms, i remember to get an error like this with Kopete ! But I didn't reproduce the bug with Pidgin ... So i think that was one of countless bigs of kopete ... ;) So, I just need to know how "encode" space character and I think I have the same bug with accented characters ... |
Re: [Announce] HeySms - Send and receive sms on your computer
Maybe a urlencode ???
=> From="firstname%20lastname" ??? |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
A valid XMPP address is either of: * host * node@host * node@host/resource Spaces are not allowed in neither host nor node. I would recommend something like +xxxxx@n900/sender's name, where +xxxxx is the sender's number. You will have to apply the resourceprep profile of stringprep to the resource part (i.e. the sender's name) to avoid trouble with accents etc. Since sender number can be alphanumeric it might be a good idea to apply the nodeprep profile of stringprep to the node part, too. If you can guarantee that those alphanumeric numbers use ASCII characters only then you can skip that part. But if you get resourceprepping working then this shouldn't be difficult to add and might make things easier if non-ASCII numbers should turn up in the future. :) |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Is it possible to have "heysms@n900/sender1", "heysms@n900/sender2", ... ? And how the contact will be shown in the pidgin/kopete/... client ?? "sender1" ? "heysms@n900/sender1" |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
First name, last name and nickname are not supposed to be part of the ID that is transmitted in the "from"-attribute. According to the specification, they are part of the DNS TXT record that mDNS publishes. The ID that's used for the "from" (or "to") attribute will normally not show up in the chat client. It seems it's used as a fallback only if everything else fails... which is the case with HeySMS. Do you have avahi-discover installed? It gives you a nice comparison. For example, both the desktop account and the regular N900 account show up under "iChat Presence" as somthing like this: type '_presence._tcp' name benny@myhome domain 'local' Host myhome.local / 10.0.0.160:5298, TXT txtvers=1 TXT 1st=Oskar G. TXT last=Welzl TXT port.p2pj=5298 TXT status=avail TXT node=libpurple TXT ver=2.10.4 TXT vc=! TXT phsh=8917af748c3a0d52c7a0aadda54bde740e8ac3c0 What I know is that this account, created in Pidgin, shows up as "Oskar G. Welzl" in every other XMPP Link Local enabled client I use. It does not show up as "benny", although "benny@myhome" is used in the "from"-/"to"-attributes that are used during the conversation. All these data fields preceded by TXT come from the DNS TXT record. When I examine one of the accounts created by HeySMS with avahi-discover, most of these TXT fields don't exist. I only find: TXT port.p2pj=5299 TXT version=1 TXT txtvers=1 TXT status=avail So what I assume would be the right thing to do is: Find a way to create these TXT fields from within your code. In case it's a known contact from the address book, fill in TXT last TXT nick TXT 1st accordingly. If the sender is not found in the address book, maybe use TXT nick only and put the number there. Then, create an ID based on the hostname and the phone numer of the sender - you'll end up with something like "+123456@Nokia-N900-42-11". Use this ID within the XMPP-conversation to fill "From"/"To". And, above all, wait for input from other folks here. I'm not a real expert in XMPP and zeroconf. |
Re: [Announce] HeySms - Send and receive sms on your computer
Hello !
Fix is in devel repository ! 1.2.1-1 I think it fixes the compatibility with client like Empathy (normal clients :D ) I'm waiting for you comments ! Thanks all ! |
Re: [Announce] HeySms - Send and receive sms on your computer
Works with Empathy and all the various name combinations that had not worked last time. Sweet! This should be on every phone! :)
|
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Imported to testing ! Thanks again ! (I use the "TXT nick" and i delete all special characters ...) |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
(Of course I still think you should win a N9 or N950 for this.) |
Re: [Announce] HeySms - Send and receive sms on your computer
Quote:
Code:
contact1 Yet the phone number printed and the new code in createPDUmessage seems OK. I don't get it. |
All times are GMT. The time now is 23:13. |
vBulletin® Version 3.8.8