maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] OpenWatch (Bluetooth watch support) for N900 (https://talk.maemo.org/showthread.php?t=45333)

moneytoo 2010-02-21 15:45

[Announce] OpenWatch (Bluetooth watch support) for N900
 
1 Attachment(s)
Hello,

I want to introduce you OpenWatch, an application that makes Bluetooth watches (currently supported Fossil/Abacus/Sony Ericsson MBW-100/150/200) possible to connect to N900 (and other mobile platforms).

OpenWatch offers standard features such as notification of incoming calls, text and instand messages and even controlling the default media player (track, volume).

Just like Conversation Inbox Desktop Widget, OpenWatch can show you number of unread messages. Just like Desktop Command Execution Widget, you can write your own scripts to display output on the watch.

With just released version 0.4.0 (available in extras-devel) you can use experimental API to display output from your application on the watch.

You can find more info in this thread: http://www.smartmadsoft.com/forum/in...m=16&topic=176

I would like to ask you for help/guidance (since I don't have much experience with linux) - I want to monitor incoming e-mails/skype calls/pim events. If you can help, please let me know.

Performer 2010-02-21 16:55

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
He-he :) I already made implementation Telepathy calls handling :)
So, can you help me with SoftBank AT-commands for news and mails?

moneytoo 2010-02-21 17:11

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
I only know command for Softbank SMS (BTWMT).

Performer 2010-02-21 18:17

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
oh!!! moneytoo, please show spec or examples of BTWMT usage.

Performer 2010-02-21 19:16

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
About handling of VoIP and ordinal telephony calls. The right way is to use Telepathy framework.
So the first thing that you need is to implement Telepathy Observer interface ( http://people.collabora.co.uk/~danni...r.clients.html http://telepathy.freedesktop.org/spe....Observer.html ).
To handle VoIP calls only you need to create filter for TP_IFACE_CHANNEL ".ChannelType" = TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA and TP_IFACE_CHANNEL ".TargetHandleType" = TP_HANDLE_TYPE_CONTACT.
The observe method will be called when new challes creates.
Incoming call can be identified by TP_IFACE_CHANNEL ".Requested" property of channel.
You should set hook to "members_changed" signal of channel to handle switching call to active state.
The caller identifier sored in TP_IFACE_CHANNEL ".TargetID" property of channel.

Performer 2010-02-21 19:18

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
Does your program mutes ring for +CSIL=1 and how?

Thor 2010-02-21 19:35

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
Ugh... I'll stick to Omega, IWC, Panerai etc.
Ok I'm a watch nut... these ones just don't do it for me. Good luck anyway!

moneytoo 2010-02-21 21:51

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
Quote:

Originally Posted by Performer (Post 539898)
oh!!! moneytoo, please show spec or examples of BTWMT usage.

SMS and alarm:

Code:

\r\n+BTWMT: 1,53,\"+420720123456\",\"jmeno jmeno\",\"08/09/26,16:12:26+04\",0,0\r\n

\r\n+BTWMT: 1,75,\"t-zones SMS\",\"t-zones SMS\",\"08/09/29,17:58:50+04\",0,4\r\n\r\nahoj\r\n

\r\n+BTWMT: 1,83,\"t-zones SMS\",\"t-zones SMS\",\"08/09/26,16:10:56+04\",0,11\r\n\r\ntest jedna2\r\n

\r\n+BTWALM: 1, \"Test Alarm\"\r\n
\r\n+BTWALM: 0\r\n

Log from i:Virt and one Sharp phone (I'm not sure if it's complete, it's pretty old):

Code:

Name in hiragana:
13 10 43 66 84 87 77 84 58 32 49 44 56 53 44 34 43 52 50 48 55 50 48 49 49 53 53 55 55 34 44 34 227 129 170 227 129 159 227 129 149 32 227 129 175 227 129 190 227 130 137 34 44 34 48 56 47 48 57 47 51 48 44 49 54 58 52 48 58 52 50 43 48 52 34 44 48 44 52 13 10 13 10 116 101 115 116 13 10

SMS:
13 10 43 66 84 87 77 84 58 32 49 44 55 53 44 34 116 45 122 111 110 101 115 32 83 77 83 34 44 34 116 45 122 111 110 101 115 32 83 77 83 34 44 34 48 56 47 48 57 47 51 48 44 49 52 58 49 52 58 50 54 43 48 52 34 44 48 44 52 13 10 13 10 97 104 111 106 13 10


<CR><LF>+BTWMT: 1,75,"t-zones SMS","t-zones SMS","08/09/29,15:54:04+04",0,4<CR><LF><CR><LF>ahoj<CR><LF>
<CR><LF>+CIEV: 7,1<CR><LF>
<CR><LF>+CIEV: 5,0<CR><LF>
<CR><LF>+CLIP: "+420720123456",145,"",,""<CR><LF>
<CR><LF>RING<CR><LF>
<CR><LF>+CLIP: "+420720123456",145,"",,""<CR><LF>
<CR><LF>RING<CR><LF>
<CR><LF>+CLIP: "+420720115577",145,"",,""<CR><LF><CR><LF>+CIEV: 5,1<CR><LF>
<CR><LF>RING<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CCLK: "08/09/29,16:47:16+04"<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>SoftBank<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF><CR><LF>920SH<CR><LF>
<CR><LF>+BTWMOD: 2<CR><LF>
<CR><LF>+BTWMOD: 15<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CIND: 5,1,0,0,0,0,1<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>+CIND: ("battchg",(0-5)),("service",(0-1)),("call",(0-1)),("roam",(0-1)),("callsetup",(0-3)),("callheld",(0-2)),("mail",(1))<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>+BTWVER: "1.0.0"<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>+BTWRSEF: 127<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>+BTWRSF: 124<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+CHLD: (0,1,1x,2,2x,3)<CR><LF><CR><LF>OK<CR><LF><CR><LF>+CIEV: 6,0<CR><LF><CR><LF>+CIEV: 4,0<CR><LF>
<CR><LF>OK<CR><LF><CR><LF>+CIEV: 7,0<CR><LF>
<CR><LF>OK<CR><LF><CR><LF>+CIND: 5,2,1,0,0,0,0<CR><LF><CR><LF>OK<CR><LF>
<CR><LF>+CIND: ("battchg",(0-5)),("signal",(0-5)),("service",(0-1)),("callheld",(0-2)),("roam",(0-1)),("callsetup",(0-3)),("call",(0-1))<CR><LF>
<CR><LF>OK<CR><LF>
<CR><LF>+BRSF: 481<CR><LF>
Connected


Performer 2010-02-22 00:41

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
Quote:

Originally Posted by moneytoo (Post 540147)
SMS and alarm:
Code:

\r\n+BTWMT: 1,53,\"+420720123456\",\"jmeno jmeno\",\"08/09/26,16:12:26+04\",0,0\r\n

\r\n+BTWMT: 1,75,\"t-zones SMS\",\"t-zones SMS\",\"08/09/29,17:58:50+04\",0,4\r\n\r\nahoj\r\n

\r\n+BTWMT: 1,83,\"t-zones SMS\",\"t-zones SMS\",\"08/09/26,16:10:56+04\",0,11\r\n\r\ntest jedna2\r\n

\r\n+BTWALM: 1, \"Test Alarm\"\r\n
\r\n+BTWALM: 0\r\n


It's looks like AT+BTWMER=1 is responsible for enabling of +BTWMT reporting, events and AT+BTWAER=1 for +BTWALM reporting.
Maybe AT+BTWRER=1 is about news?

For +BTWMT the format looks like:
+BTWMT <delivery flag ??>,<command size>,<number>,<remote party>,<date>,<message type ??>,<text size>

Did you understood the value of AT+BTWCLKT=500 and AT+BTWCLKOK=1 commands?

agepbiz 2010-04-26 18:19

Re: [Announce] OpenWatch (Bluetooth watch support) for N900
 
Thank you moneytoo. I used OpenWatch when I had my SE X1, and it was awesome! Actually, OpenWatch was one of the few apps I really missed when I bought my N900. I found this thread just a few days ago. My MBW-100 just broke, but I bought an MBW-150 today. It works great with my N900.
Once again, thank you!

I hope you keep up supporting OpenWatch for N900


All times are GMT. The time now is 22:49.

vBulletin® Version 3.8.8