Android Help

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Android Help

Craig Lindholm
Hello.

I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:

11/01/15 02:50:24 PM Running: test android speak
normal: hello from jim duda
11/01/15 02:50:24 PM web_hook_callback:
11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
11/01/15 02:50:25 PM xml: cat Android
11/01/15 02:50:25 PM xml: o $android t Android_Item
11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd

but no sound.

I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.

I do have the android_server.pl enabled.

Anyone have any idea what I am missing?

Craig

------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
Hi Craig,

Do you have the Misterhouse Service enabled?
This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.

What happens when you choose "test android notification"?
If the service is working properly, you'll get a message in the android notifications with this text:
This is notiication LINE 1

The service needs to work in order to get speak and play events to work.

If you don't get the notification, then we need to solve this issue first.

Regards,

Jim

On 11/01/2015 05:58 PM, Craig Lindholm wrote:

> Hello.
>
> I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>
> 11/01/15 02:50:24 PM Running: test android speak
> normal: hello from jim duda
> 11/01/15 02:50:24 PM web_hook_callback:
> 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 02:50:25 PM xml: cat Android
> 11/01/15 02:50:25 PM xml: o $android t Android_Item
> 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
> 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>
> but no sound.
>
> I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>
> I do have the android_server.pl <http://android_server.pl> enabled.
>
> Anyone have any idea what I am missing?
>
> Craig
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm

I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.

When I try "test android notification", I get:

11/01/15 05:09:48 PM Running: test android notification
11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
11/01/15 05:09:49 PM xml: cat Android
11/01/15 05:09:49 PM xml: o $android t Android_Item
11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd

But no notification.

I get the same result on both my phone and tablet.




When I try the

On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email]> wrote:
Hi Craig,

Do you have the Misterhouse Service enabled?
This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.

What happens when you choose "test android notification"?
If the service is working properly, you'll get a message in the android notifications with this text:
This is notiication LINE 1

The service needs to work in order to get speak and play events to work.

If you don't get the notification, then we need to solve this issue first.

Regards,

Jim

On 11/01/2015 05:58 PM, Craig Lindholm wrote:
> Hello.
>
> I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>
> 11/01/15 02:50:24 PM Running: test android speak
> normal: hello from jim duda
> 11/01/15 02:50:24 PM web_hook_callback:
> 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 02:50:25 PM xml: cat Android
> 11/01/15 02:50:25 PM xml: o $android t Android_Item
> 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
> 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>
> but no sound.
>
> I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>
> I do have the android_server.pl <http://android_server.pl> enabled.
>
> Anyone have any idea what I am missing?
>
> Craig
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
Craig,

What do you get in your logfile when you select "dump android inventory to log file"?

Thanks,

Jim

On 11/01/2015 08:12 PM, Craig Lindholm wrote:

> I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.
>
> When I try "test android notification", I get:
>
> 11/01/15 05:09:48 PM Running: test android notification
> 11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
> 11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:09:49 PM xml: cat Android
> 11/01/15 05:09:49 PM xml: o $android t Android_Item
> 11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
> 11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd
>
> But no notification.
>
> I get the same result on both my phone and tablet.
>
>
>
>
> When I try the
>
> On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Craig,
>
>     Do you have the Misterhouse Service enabled?
>     This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
>     The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.
>
>     What happens when you choose "test android notification"?
>     If the service is working properly, you'll get a message in the android notifications with this text:
>     This is notiication LINE 1
>
>     The service needs to work in order to get speak and play events to work.
>
>     If you don't get the notification, then we need to solve this issue first.
>
>     Regards,
>
>     Jim
>
>     On 11/01/2015 05:58 PM, Craig Lindholm wrote:
>      > Hello.
>      >
>      > I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>      >
>      > 11/01/15 02:50:24 PM Running: test android speak
>      > normal: hello from jim duda
>      > 11/01/15 02:50:24 PM web_hook_callback:
>      > 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 02:50:25 PM xml: cat Android
>      > 11/01/15 02:50:25 PM xml: o $android t Android_Item
>      > 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
>      > 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > but no sound.
>      >
>      > I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>      >
>      > I do have the android_server.pl <http://android_server.pl> <http://android_server.pl> enabled.
>      >
>      > Anyone have any idea what I am missing?
>      >
>      > Craig
>      >
>      >
>      > ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > ________________________________________________________
>      > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>      >
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
Hi Jim.

I get:
11/01/15 05:37:37 PM Running: dump android inventory to log file
11/01/15 05:37:38 PM xml: request=categories=Android options=fields=name|text
11/01/15 05:37:38 PM xml: cat Android
11/01/15 05:37:38 PM xml: o $android t Android_Item
11/01/15 05:37:38 PM xml: o $android_server t Socket_Item
11/01/15 05:37:38 PM xml: o $v_android_volume t Voice_Cmd
11/01/15 05:37:38 PM xml: o $v_test_android_callerid t Voice_Cmd
11/01/15 05:37:38 PM xml: o $v_test_android_inventory t Voice_Cmd
11/01/15 05:37:38 PM xml: o $v_test_android_notification t Voice_Cmd
11/01/15 05:37:38 PM xml: o $v_test_android_play t Voice_Cmd
11/01/15 05:37:38 PM xml: o $v_test_android_speak t Voice_Cmd

which looks pretty much like the other results :-(
This is from the print.log file. If there is another log file somewhere for the android side, I don't know where it is.

Craig

On Sun, Nov 1, 2015 at 5:21 PM, Jim Duda <[hidden email]> wrote:
Craig,

What do you get in your logfile when you select "dump android inventory to log file"?

Thanks,

Jim

On 11/01/2015 08:12 PM, Craig Lindholm wrote:
> I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.
>
> When I try "test android notification", I get:
>
> 11/01/15 05:09:48 PM Running: test android notification
> 11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
> 11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:09:49 PM xml: cat Android
> 11/01/15 05:09:49 PM xml: o $android t Android_Item
> 11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
> 11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd
>
> But no notification.
>
> I get the same result on both my phone and tablet.
>
>
>
>
> When I try the
>
> On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Craig,
>
>     Do you have the Misterhouse Service enabled?
>     This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
>     The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.
>
>     What happens when you choose "test android notification"?
>     If the service is working properly, you'll get a message in the android notifications with this text:
>     This is notiication LINE 1
>
>     The service needs to work in order to get speak and play events to work.
>
>     If you don't get the notification, then we need to solve this issue first.
>
>     Regards,
>
>     Jim
>
>     On 11/01/2015 05:58 PM, Craig Lindholm wrote:
>      > Hello.
>      >
>      > I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>      >
>      > 11/01/15 02:50:24 PM Running: test android speak
>      > normal: hello from jim duda
>      > 11/01/15 02:50:24 PM web_hook_callback:
>      > 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 02:50:25 PM xml: cat Android
>      > 11/01/15 02:50:25 PM xml: o $android t Android_Item
>      > 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
>      > 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > but no sound.
>      >
>      > I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>      >
>      > I do have the android_server.pl <http://android_server.pl> <http://android_server.pl> enabled.
>      >
>      > Anyone have any idea what I am missing?
>      >
>      > Craig
>      >
>      >
>      > ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > ________________________________________________________
>      > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>      >
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
In reply to this post by Jim Duda

Sorry Jim. I forgot to mention I am running the master branch.

On 2015-11-01 5:24 PM, "Jim Duda" <[hidden email]> wrote:
Craig,

What do you get in your logfile when you select "dump android inventory to log file"?

Thanks,

Jim

On 11/01/2015 08:12 PM, Craig Lindholm wrote:
> I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.
>
> When I try "test android notification", I get:
>
> 11/01/15 05:09:48 PM Running: test android notification
> 11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
> 11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:09:49 PM xml: cat Android
> 11/01/15 05:09:49 PM xml: o $android t Android_Item
> 11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
> 11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd
>
> But no notification.
>
> I get the same result on both my phone and tablet.
>
>
>
>
> When I try the
>
> On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Craig,
>
>     Do you have the Misterhouse Service enabled?
>     This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
>     The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.
>
>     What happens when you choose "test android notification"?
>     If the service is working properly, you'll get a message in the android notifications with this text:
>     This is notiication LINE 1
>
>     The service needs to work in order to get speak and play events to work.
>
>     If you don't get the notification, then we need to solve this issue first.
>
>     Regards,
>
>     Jim
>
>     On 11/01/2015 05:58 PM, Craig Lindholm wrote:
>      > Hello.
>      >
>      > I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>      >
>      > 11/01/15 02:50:24 PM Running: test android speak
>      > normal: hello from jim duda
>      > 11/01/15 02:50:24 PM web_hook_callback:
>      > 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 02:50:25 PM xml: cat Android
>      > 11/01/15 02:50:25 PM xml: o $android t Android_Item
>      > 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
>      > 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > but no sound.
>      >
>      > I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>      >
>      > I do have the android_server.pl <http://android_server.pl> <http://android_server.pl> enabled.
>      >
>      > Anyone have any idea what I am missing?
>      >
>      > Craig
>      >
>      >
>      > ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > ________________________________________________________
>      > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>      >
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
In reply to this post by Jim Duda
Did some snooping. I added a print_log line in android_server.pl
When I send a dump inventory request, 
it passes this test => "if (my $state = said $v_test_android_inventory)"
but it never enters this for loop. =>    foreach my $client_ip (keys %androidClients) {

I do not really understand the code, but it looks like $client_ip is = 0 so it never enters the loop???? Yet I can turn on and off lights from my phone.....

How can I test this further?

Craig


On Sun, Nov 1, 2015 at 5:21 PM, Jim Duda <[hidden email]> wrote:
Craig,

What do you get in your logfile when you select "dump android inventory to log file"?

Thanks,

Jim

On 11/01/2015 08:12 PM, Craig Lindholm wrote:
> I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.
>
> When I try "test android notification", I get:
>
> 11/01/15 05:09:48 PM Running: test android notification
> 11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
> 11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:09:49 PM xml: cat Android
> 11/01/15 05:09:49 PM xml: o $android t Android_Item
> 11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
> 11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd
>
> But no notification.
>
> I get the same result on both my phone and tablet.
>
>
>
>
> When I try the
>
> On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Craig,
>
>     Do you have the Misterhouse Service enabled?
>     This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
>     The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.
>
>     What happens when you choose "test android notification"?
>     If the service is working properly, you'll get a message in the android notifications with this text:
>     This is notiication LINE 1
>
>     The service needs to work in order to get speak and play events to work.
>
>     If you don't get the notification, then we need to solve this issue first.
>
>     Regards,
>
>     Jim
>
>     On 11/01/2015 05:58 PM, Craig Lindholm wrote:
>      > Hello.
>      >
>      > I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>      >
>      > 11/01/15 02:50:24 PM Running: test android speak
>      > normal: hello from jim duda
>      > 11/01/15 02:50:24 PM web_hook_callback:
>      > 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 02:50:25 PM xml: cat Android
>      > 11/01/15 02:50:25 PM xml: o $android t Android_Item
>      > 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
>      > 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > but no sound.
>      >
>      > I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>      >
>      > I do have the android_server.pl <http://android_server.pl> <http://android_server.pl> enabled.
>      >
>      > Anyone have any idea what I am missing?
>      >
>      > Craig
>      >
>      >
>      > ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > ________________________________________________________
>      > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>      >
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
In reply to this post by Craig Lindholm
On 11/01/2015 08:41 PM, Craig Lindholm wrote:

> Hi Jim.
>
> I get:
> 11/01/15 05:37:37 PM Running: dump android inventory to log file
> 11/01/15 05:37:38 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:37:38 PM xml: cat Android
> 11/01/15 05:37:38 PM xml: o $android t Android_Item
> 11/01/15 05:37:38 PM xml: o $android_server t Socket_Item
> 11/01/15 05:37:38 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_speak t Voice_Cmd
>
> which looks pretty much like the other results :-(
> This is from the print.log file. If there is another log file somewhere for the android side, I don't know where it is.
>
> Craig
>

For some reason, which we need to determine, your android device(s) are not registering
with the misterhouse server. If they had, they would show in the inventory.

Which version of Android are you using?
KitKat, LolliPop, other?

I have a basic connection setup.
In my basic setup, I have "Enable Service" box checked.
The Misterhouse Port Number is set to 4444.
The Use SSH Connection is not checked.

I am running android app version 1.5.4 as shown in the About dialogue.

Same for you?


Every 10 minutes or so, the device will attempt to login.
With debug=android turned on, you should see these messages.

11/02/15 08:11:32 PM android_server:: state: {"device":"tf300t","serialNumber":"015d15b51c401e0a","model":"TF300T","pass":"android","room":"tablet","version":"1.5.4"}
11/02/15 08:11:32 PM android_server:: json_login_request:: pass: android version: 1.5.4 room: tablet model: TF300T device: tf300t serialNumber: 015d15b51c401e0a
11/02/15 08:11:32 PM android_server:: login_accepted:: user: admin room: tablet device: tf300t ip: 192.168.1.254:57951 client: IO::Socket::INET=GLOB(0x43673d8)
11/02/15 08:11:32 PM Testing socket: IO::Socket::INET=GLOB(0x43673d8) ip: 192.168.1.254:57951 against IO::Socket::INET=GLOB(0x43673d8) 192.168.1.254:57951
11/02/15 08:11:32 PM android_send_data:: ip: 192.168.1.254:57951
11/02/15 08:11:32 PM key: version data: develop-ref Build 626 (2e4941e)
11/02/15 08:11:32 PM key: function data: login
11/02/15 08:11:32 PM key: status data: success
11/02/15 08:11:32 PM json: {"version":"develop-ref Build 626 (2e4941e)","function":"login","status":"success"}

We need at least to make sure your devices are attaching.

However, because of your post, I now realize that speak/play is no longer working with my android devices.
Sadly, I've had the application on mute for many months now.  Although it's cool to get speak/play events, it can become annoying at times :-)

I have recently upgraded my tablets and phones to LolliPop and it appears speak/play isn't working with LolliPop.
I'm not surprised as each release brings some problems which prevents the fetching of wav files from the server.
I will have to break out the debugger this week and get to the bottom of this for LolliPop and release a new version.

But, I suspect you might not even have your devices registering properly.
Even if speak/play don't work for you (as they don't for me any longer), the notifications should (as they still do for me).

Regards,

Jim




------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
In reply to this post by Craig Lindholm
Craig,

This means the inventory is empty.
For some reason your devices are not registering.
I updated the thread on the mailing list.

Jim

On 11/02/2015 08:25 PM, Craig Lindholm wrote:
Did some snooping. I added a print_log line in android_server.pl
When I send a dump inventory request, 
it passes this test => "if (my $state = said $v_test_android_inventory)"
but it never enters this for loop. =>    foreach my $client_ip (keys %androidClients) {

I do not really understand the code, but it looks like $client_ip is = 0 so it never enters the loop???? Yet I can turn on and off lights from my phone.....

How can I test this further?

Craig


On Sun, Nov 1, 2015 at 5:21 PM, Jim Duda <[hidden email]> wrote:
Craig,

What do you get in your logfile when you select "dump android inventory to log file"?

Thanks,

Jim

On 11/01/2015 08:12 PM, Craig Lindholm wrote:
> I do have the service enabled, but not ssh. How do I know if I need to? I don't use it to access my web page.
>
> When I try "test android notification", I get:
>
> 11/01/15 05:09:48 PM Running: test android notification
> 11/01/15 05:09:49 PM android_notification: This is notiication LINE 1 And LINE 2
> 11/01/15 05:09:49 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:09:49 PM xml: cat Android
> 11/01/15 05:09:49 PM xml: o $android t Android_Item
> 11/01/15 05:09:49 PM xml: o $android_server t Socket_Item
> 11/01/15 05:09:49 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:09:49 PM xml: o $v_test_android_speak t Voice_Cmd
>
> But no notification.
>
> I get the same result on both my phone and tablet.
>
>
>
>
> When I try the
>
> On 2015-11-01 4:26 PM, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Craig,
>
>     Do you have the Misterhouse Service enabled?
>     This is under the Application Service Settings for the connection you are using in the android application settings dialogue(s).
>     The application needs to create a network socket to the misterhouse server.  I use ssh myself to make this connection secure.
>
>     What happens when you choose "test android notification"?
>     If the service is working properly, you'll get a message in the android notifications with this text:
>     This is notiication LINE 1
>
>     The service needs to work in order to get speak and play events to work.
>
>     If you don't get the notification, then we need to solve this issue first.
>
>     Regards,
>
>     Jim
>
>     On 11/01/2015 05:58 PM, Craig Lindholm wrote:
>      > Hello.
>      >
>      > I am trying to get the Android service working. I can control my devices from my Nexus5 on lollypop, but cannot get speech to come through on my phone. When I select "test android speak", I get this:
>      >
>      > 11/01/15 02:50:24 PM Running: test android speak
>      > normal: hello from jim duda
>      > 11/01/15 02:50:24 PM web_hook_callback:
>      > 11/01/15 02:50:25 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 02:50:25 PM xml: cat Android
>      > 11/01/15 02:50:25 PM xml: o $android t Android_Item
>      > 11/01/15 02:50:25 PM xml: o $android_server t Socket_Item
>      > 11/01/15 02:50:25 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 02:50:25 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > but no sound.
>      >
>      > I am using festival on my raspberry pi, and it plays sound when I use the text to speech page on the web.
>      >
>      > I do have the android_server.pl <http://android_server.pl> <http://android_server.pl> enabled.
>      >
>      > Anyone have any idea what I am missing?
>      >
>      > Craig
>      >
>      >
>      > ------------------------------------------------------------------------------
>      >
>      >
>      >
>      > ________________________________________________________
>      > To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>      >
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users




------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
In reply to this post by Jim Duda

I am on 1.5.5. My phone is running 5.1.1 and my tablet is running cyanogenmod ver 4.2.2 ( this is based on KitKat)

I even port forwarded 4444 in my router to check...nothing.
I do have debug=android, but I get no feedback other than what I posted before. Whats strange, is that I can control all my lights, and read the status of my motion sensors, etc.

Sent from my email program

On Nov 2, 2015 17:32, "Jim Duda" <[hidden email]> wrote:
On 11/01/2015 08:41 PM, Craig Lindholm wrote:
> Hi Jim.
>
> I get:
> 11/01/15 05:37:37 PM Running: dump android inventory to log file
> 11/01/15 05:37:38 PM xml: request=categories=Android options=fields=name|text
> 11/01/15 05:37:38 PM xml: cat Android
> 11/01/15 05:37:38 PM xml: o $android t Android_Item
> 11/01/15 05:37:38 PM xml: o $android_server t Socket_Item
> 11/01/15 05:37:38 PM xml: o $v_android_volume t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_play t Voice_Cmd
> 11/01/15 05:37:38 PM xml: o $v_test_android_speak t Voice_Cmd
>
> which looks pretty much like the other results :-(
> This is from the print.log file. If there is another log file somewhere for the android side, I don't know where it is.
>
> Craig
>

For some reason, which we need to determine, your android device(s) are not registering
with the misterhouse server. If they had, they would show in the inventory.

Which version of Android are you using?
KitKat, LolliPop, other?

I have a basic connection setup.
In my basic setup, I have "Enable Service" box checked.
The Misterhouse Port Number is set to 4444.
The Use SSH Connection is not checked.

I am running android app version 1.5.4 as shown in the About dialogue.

Same for you?


Every 10 minutes or so, the device will attempt to login.
With debug=android turned on, you should see these messages.

11/02/15 08:11:32 PM android_server:: state: {"device":"tf300t","serialNumber":"015d15b51c401e0a","model":"TF300T","pass":"android","room":"tablet","version":"1.5.4"}
11/02/15 08:11:32 PM android_server:: json_login_request:: pass: android version: 1.5.4 room: tablet model: TF300T device: tf300t serialNumber: 015d15b51c401e0a
11/02/15 08:11:32 PM android_server:: login_accepted:: user: admin room: tablet device: tf300t ip: 192.168.1.254:57951 client: IO::Socket::INET=GLOB(0x43673d8)
11/02/15 08:11:32 PM Testing socket: IO::Socket::INET=GLOB(0x43673d8) ip: 192.168.1.254:57951 against IO::Socket::INET=GLOB(0x43673d8) 192.168.1.254:57951
11/02/15 08:11:32 PM android_send_data:: ip: 192.168.1.254:57951
11/02/15 08:11:32 PM key: version data: develop-ref Build 626 (2e4941e)
11/02/15 08:11:32 PM key: function data: login
11/02/15 08:11:32 PM key: status data: success
11/02/15 08:11:32 PM json: {"version":"develop-ref Build 626 (2e4941e)","function":"login","status":"success"}

We need at least to make sure your devices are attaching.

However, because of your post, I now realize that speak/play is no longer working with my android devices.
Sadly, I've had the application on mute for many months now.  Although it's cool to get speak/play events, it can become annoying at times :-)

I have recently upgraded my tablets and phones to LolliPop and it appears speak/play isn't working with LolliPop.
I'm not surprised as each release brings some problems which prevents the fetching of wav files from the server.
I will have to break out the debugger this week and get to the bottom of this for LolliPop and release a new version.

But, I suspect you might not even have your devices registering properly.
Even if speak/play don't work for you (as they don't for me any longer), the notifications should (as they still do for me).

Regards,

Jim




------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
Are you running misterhouse on linux or windows?

If on linux, can you see if there are any ports open on 4444?

I get:
$ netstat -a | Grep krb524

tcp        0      0 linux:34181             linux:krb524            ESTABLISHED
tcp        0      0 linux:krb524            linux:57951             ESTABLISHED
tcp        0      0 linux:57951             linux:krb524            ESTABLISHED
tcp        0      0 linux:krb524            linux:34181             ESTABLISHED

krb524 is port 4444.

In my mh.private.ini, I have:
server_android_port=4444

>From the wiki instructions for the android app:
Misterhouse Configuration

If you want speak and play events to be pushed to the Android, you need to define server_android_port=XXXX (default 4444) in your mh.private.ini file.
Whatever port number you choose must match the corresponding port number in the Android Host configuration settings.
The android host configuration page defaults to 4444.
You need to enable the android_server.pl module found in code/common.

I think you need the server_android_port=4444 in your mh.private.ini.
I suspect that will allow the logins to occur.

Jim



On 11/02/2015 09:35 PM, Craig Lindholm wrote:

> I am on 1.5.5. My phone is running 5.1.1 and my tablet is running cyanogenmod ver 4.2.2 ( this is based on KitKat)
>
> I even port forwarded 4444 in my router to check...nothing.
> I do have debug=android, but I get no feedback other than what I posted before. Whats strange, is that I can control all my lights, and read the status of my motion sensors, etc.
>
> Sent from my email program
>
> On Nov 2, 2015 17:32, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     On 11/01/2015 08:41 PM, Craig Lindholm wrote:
>      > Hi Jim.
>      >
>      > I get:
>      > 11/01/15 05:37:37 PM Running: dump android inventory to log file
>      > 11/01/15 05:37:38 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 05:37:38 PM xml: cat Android
>      > 11/01/15 05:37:38 PM xml: o $android t Android_Item
>      > 11/01/15 05:37:38 PM xml: o $android_server t Socket_Item
>      > 11/01/15 05:37:38 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > which looks pretty much like the other results :-(
>      > This is from the print.log file. If there is another log file somewhere for the android side, I don't know where it is.
>      >
>      > Craig
>      >
>
>     For some reason, which we need to determine, your android device(s) are not registering
>     with the misterhouse server. If they had, they would show in the inventory.
>
>     Which version of Android are you using?
>     KitKat, LolliPop, other?
>
>     I have a basic connection setup.
>     In my basic setup, I have "Enable Service" box checked.
>     The Misterhouse Port Number is set to 4444.
>     The Use SSH Connection is not checked.
>
>     I am running android app version 1.5.4 as shown in the About dialogue.
>
>     Same for you?
>
>
>     Every 10 minutes or so, the device will attempt to login.
>     With debug=android turned on, you should see these messages.
>
>     11/02/15 08:11:32 PM android_server:: state: {"device":"tf300t","serialNumber":"015d15b51c401e0a","model":"TF300T","pass":"android","room":"tablet","version":"1.5.4"}
>     11/02/15 08:11:32 PM android_server:: json_login_request:: pass: android version: 1.5.4 room: tablet model: TF300T device: tf300t serialNumber: 015d15b51c401e0a
>     11/02/15 08:11:32 PM android_server:: login_accepted:: user: admin room: tablet device: tf300t ip: 192.168.1.254:57951 <http://192.168.1.254:57951> client: IO::Socket::INET=GLOB(0x43673d8)
>     11/02/15 08:11:32 PM Testing socket: IO::Socket::INET=GLOB(0x43673d8) ip: 192.168.1.254:57951 <http://192.168.1.254:57951> against IO::Socket::INET=GLOB(0x43673d8) 192.168.1.254:57951 <http://192.168.1.254:57951>
>     11/02/15 08:11:32 PM android_send_data:: ip: 192.168.1.254:57951 <http://192.168.1.254:57951>
>     11/02/15 08:11:32 PM key: version data: develop-ref Build 626 (2e4941e)
>     11/02/15 08:11:32 PM key: function data: login
>     11/02/15 08:11:32 PM key: status data: success
>     11/02/15 08:11:32 PM json: {"version":"develop-ref Build 626 (2e4941e)","function":"login","status":"success"}
>
>     We need at least to make sure your devices are attaching.
>
>     However, because of your post, I now realize that speak/play is no longer working with my android devices.
>     Sadly, I've had the application on mute for many months now.  Although it's cool to get speak/play events, it can become annoying at times :-)
>
>     I have recently upgraded my tablets and phones to LolliPop and it appears speak/play isn't working with LolliPop.
>     I'm not surprised as each release brings some problems which prevents the fetching of wav files from the server.
>     I will have to break out the debugger this week and get to the bottom of this for LolliPop and release a new version.
>
>     But, I suspect you might not even have your devices registering properly.
>     Even if speak/play don't work for you (as they don't for me any longer), the notifications should (as they still do for me).
>
>     Regards,
>
>     Jim
>
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
I am running a Raspberry Pi running Raspian Jessie
"netstat -a | grep krb524" returns nothing


"netstat -a" returns (among other things)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:4444                  *:*                     LISTEN

Also, I get the same results whether or not I enable the service on my phone / tablet I can still control the lights and everything with it disabled. is port 4444 only for the audio?
Upon startup of mh, it spits out...

 - reading previous log files
 - archiving previous /media/80GB/mh/my_mh/data/logs/*.log files ....
 - creating festival TTS socket on localhost:1314
 - creating http            on tcp   8080 buffered
 - creating server android  on tcp   4444
 - creating server mhsend   on tcp   8084 buffered
 - creating server telnet   on tcp   1234 raw
 - creating xap_send        on udp  3639 send
 - creating xap_listen_core on udp 49152 listen
 - creating xpl_send        on udp  3865 send
 - creating xpl_listen      on udp 49352 listen
 - initializing state tracker ...

I just tripled checked. I do have "server_android_port=4444" specified in my mh.private.ini and android_server.pl is specified to be loaded

It sounds to me like it's more of an Android thing now that I see the port is in a listening state...


On Mon, Nov 2, 2015 at 7:57 PM, Jim Duda <[hidden email]> wrote:
Are you running misterhouse on linux or windows?

If on linux, can you see if there are any ports open on 4444?

I get:
$ netstat -a | Grep krb524

tcp        0      0 linux:34181             linux:krb524            ESTABLISHED
tcp        0      0 linux:krb524            linux:57951             ESTABLISHED
tcp        0      0 linux:57951             linux:krb524            ESTABLISHED
tcp        0      0 linux:krb524            linux:34181             ESTABLISHED

krb524 is port 4444.

In my mh.private.ini, I have:
server_android_port=4444

>From the wiki instructions for the android app:
Misterhouse Configuration

If you want speak and play events to be pushed to the Android, you need to define server_android_port=XXXX (default 4444) in your mh.private.ini file.
Whatever port number you choose must match the corresponding port number in the Android Host configuration settings.
The android host configuration page defaults to 4444.
You need to enable the android_server.pl module found in code/common.

I think you need the server_android_port=4444 in your mh.private.ini.
I suspect that will allow the logins to occur.

Jim



On 11/02/2015 09:35 PM, Craig Lindholm wrote:
> I am on 1.5.5. My phone is running 5.1.1 and my tablet is running cyanogenmod ver 4.2.2 ( this is based on KitKat)
>
> I even port forwarded 4444 in my router to check...nothing.
> I do have debug=android, but I get no feedback other than what I posted before. Whats strange, is that I can control all my lights, and read the status of my motion sensors, etc.
>
> Sent from my email program
>
> On Nov 2, 2015 17:32, "Jim Duda" <[hidden email] <mailto:[hidden email]>> wrote:
>
>     On 11/01/2015 08:41 PM, Craig Lindholm wrote:
>      > Hi Jim.
>      >
>      > I get:
>      > 11/01/15 05:37:37 PM Running: dump android inventory to log file
>      > 11/01/15 05:37:38 PM xml: request=categories=Android options=fields=name|text
>      > 11/01/15 05:37:38 PM xml: cat Android
>      > 11/01/15 05:37:38 PM xml: o $android t Android_Item
>      > 11/01/15 05:37:38 PM xml: o $android_server t Socket_Item
>      > 11/01/15 05:37:38 PM xml: o $v_android_volume t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_callerid t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_inventory t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_notification t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_play t Voice_Cmd
>      > 11/01/15 05:37:38 PM xml: o $v_test_android_speak t Voice_Cmd
>      >
>      > which looks pretty much like the other results :-(
>      > This is from the print.log file. If there is another log file somewhere for the android side, I don't know where it is.
>      >
>      > Craig
>      >
>
>     For some reason, which we need to determine, your android device(s) are not registering
>     with the misterhouse server. If they had, they would show in the inventory.
>
>     Which version of Android are you using?
>     KitKat, LolliPop, other?
>
>     I have a basic connection setup.
>     In my basic setup, I have "Enable Service" box checked.
>     The Misterhouse Port Number is set to 4444.
>     The Use SSH Connection is not checked.
>
>     I am running android app version 1.5.4 as shown in the About dialogue.
>
>     Same for you?
>
>
>     Every 10 minutes or so, the device will attempt to login.
>     With debug=android turned on, you should see these messages.
>
>     11/02/15 08:11:32 PM android_server:: state: {"device":"tf300t","serialNumber":"015d15b51c401e0a","model":"TF300T","pass":"android","room":"tablet","version":"1.5.4"}
>     11/02/15 08:11:32 PM android_server:: json_login_request:: pass: android version: 1.5.4 room: tablet model: TF300T device: tf300t serialNumber: 015d15b51c401e0a
>     11/02/15 08:11:32 PM android_server:: login_accepted:: user: admin room: tablet device: tf300t ip: 192.168.1.254:57951 <http://192.168.1.254:57951> client: IO::Socket::INET=GLOB(0x43673d8)
>     11/02/15 08:11:32 PM Testing socket: IO::Socket::INET=GLOB(0x43673d8) ip: 192.168.1.254:57951 <http://192.168.1.254:57951> against IO::Socket::INET=GLOB(0x43673d8) 192.168.1.254:57951 <http://192.168.1.254:57951>
>     11/02/15 08:11:32 PM android_send_data:: ip: 192.168.1.254:57951 <http://192.168.1.254:57951>
>     11/02/15 08:11:32 PM key: version data: develop-ref Build 626 (2e4941e)
>     11/02/15 08:11:32 PM key: function data: login
>     11/02/15 08:11:32 PM key: status data: success
>     11/02/15 08:11:32 PM json: {"version":"develop-ref Build 626 (2e4941e)","function":"login","status":"success"}
>
>     We need at least to make sure your devices are attaching.
>
>     However, because of your post, I now realize that speak/play is no longer working with my android devices.
>     Sadly, I've had the application on mute for many months now.  Although it's cool to get speak/play events, it can become annoying at times :-)
>
>     I have recently upgraded my tablets and phones to LolliPop and it appears speak/play isn't working with LolliPop.
>     I'm not surprised as each release brings some problems which prevents the fetching of wav files from the server.
>     I will have to break out the debugger this week and get to the bottom of this for LolliPop and release a new version.
>
>     But, I suspect you might not even have your devices registering properly.
>     Even if speak/play don't work for you (as they don't for me any longer), the notifications should (as they still do for me).
>
>     Regards,
>
>     Jim
>
>
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
In reply to this post by Jim Duda
Craig,

I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?

Can you try and telnet to your server at port 4444 from both wired and wireless computers?

Here I get:

jim> telnet linux 4444
Trying 192.168.1.254...
Connected to linux.
Escape character is '^]'.

Regards,

Jim


------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm

Hi Jim.

I am not sure what is happening. If I run telnet on my phone as well as my tablet, I get  the same result as you (except I am on 10.1.1.10). 

If I try from my windows machine, I get a blank screen. when I press enter it says "login? but that's it.

I'll try on my sons phone.

On Nov 3, 2015 17:01, "Jim Duda" <[hidden email]> wrote:

Craig,

I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?

Can you try and telnet to your server at port 4444 from both wired and wireless computers?

Here I get:

jim> telnet linux 4444
Trying 192.168.1.254...
Connected to linux.
Escape character is '^]'.

Regards,

Jim


------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm
In reply to this post by Jim Duda
Hey Jim, this is interesting. I verified this on my phone and tablet. These logs are from MH debug
If I telnet into port 4444 and do nothing I get this from the android MH app.

11/03/15 07:06:58 PM Running: dump android inventory to log file
11/03/15 07:06:59 PM xml: request=categories=Android options=fields=name|text
11/03/15 07:06:59 PM xml: cat Android
11/03/15 07:06:59 PM xml: o $android t Android_Item
11/03/15 07:06:59 PM xml: o $android_server t Socket_Item
11/03/15 07:06:59 PM xml: o $v_android_volume t Voice_Cmd
11/03/15 07:06:59 PM xml: o $v_test_android_callerid t Voice_Cmd
11/03/15 07:06:59 PM xml: o $v_test_android_inventory t Voice_Cmd
11/03/15 07:06:59 PM xml: o $v_test_android_notification t Voice_Cmd
11/03/15 07:06:59 PM xml: o $v_test_android_play t Voice_Cmd
11/03/15 07:06:59 PM xml: o $v_test_android_speak t Voice_Cmd
11/03/15 07:07:00 PM: Saving object states ... done
11/03/15 07:07:06 PM android_server:: state:

Then I press "enter" in the telnet session and this comes from MH (sshing on port 22)

11/03/15 07:07:06 PM android_server 10.1.1.90:46653 client: IO::Socket::INET=GLOB(0x24cc588)
 device: , port: , room: oid_server:: legacy_login_request:: pass:
11/03/15 07:07:06 PM android_server:: login_accepted:: user: admin room: 10.1.1.90:46653 device:  ip: 10.1.1.90:46653 client: IO::Socket::INET=GLOB(0x24cc588)
11/03/15 07:07:06 PM Testing socket: IO::Socket::INET=GLOB(0x24cc588) ip: 10.1.1.90:46653 against IO::Socket::INET=GLOB(0x24cc588) 10.1.1.90:46653
11/03/15 07:07:06 PM android_send_data:: ip: 10.1.1.90:46653
11/03/15 07:07:06 PM key: version data: develop-ref Build 721 (385c2a2)
11/03/15 07:07:06 PM key: status data: success
11/03/15 07:07:06 PM key: function data: login
11/03/15 07:07:06 PM legacy function: login data:

(This part is from my code running normally)
normal: Someone left Upstairs
11/03/15 07:07:10 PM pre_speak_to_android
11/03/15 07:07:10 PM pre_speak_to_android client_ip: 10.1.1.90:46653 room: 10.1.1.90:46653
11/03/15 07:07:10 PM pre_speak_to_android rooms: 10.1.1.90:46653
Playing WAVE '/media/80GB/mh/my_mh/data/mh_temp.google-403.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
11/03/15 07:07:10 PM Paused for 8 seconds

Then I do an inventory dump from MH app:

11/03/15 07:10:00 PM Running: dump android inventory to log file
11/03/15 07:10:00 PM android_inventory::
11/03/15 07:10:00 PM room:    10.1.1.90:46653
11/03/15 07:10:00 PM ip:      10.1.1.90:46653
11/03/15 07:10:00 PM device:
11/03/15 07:10:00 PM version:
11/03/15 07:10:00 PM model:
11/03/15 07:10:00 PM serial:
11/03/15 07:10:01 PM xml: request=categories=Android options=fields=name|text
11/03/15 07:10:01 PM xml: cat Android
11/03/15 07:10:01 PM xml: o $android t Android_Item
11/03/15 07:10:01 PM xml: o $android_server t Socket_Item
11/03/15 07:10:01 PM xml: o $v_android_volume t Voice_Cmd
11/03/15 07:10:01 PM xml: o $v_test_android_callerid t Voice_Cmd
11/03/15 07:10:01 PM xml: o $v_test_android_inventory t Voice_Cmd
11/03/15 07:10:01 PM xml: o $v_test_android_notification t Voice_Cmd
11/03/15 07:10:01 PM xml: o $v_test_android_play t Voice_Cmd
11/03/15 07:10:01 PM xml: o $v_test_android_speak t Voice_Cmd

I haven't tried my son's phone yet, but it look like it needs a little extra something to get the socket going? 
I still don't have sounds or anything, but I thinks it's because the source port of 466653 is from my telnet app and not from the MH app.

thoughts?


On Tue, Nov 3, 2015 at 4:58 PM, Jim Duda <[hidden email]> wrote:
Craig,

I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?

Can you try and telnet to your server at port 4444 from both wired and wireless computers?

Here I get:

jim> telnet linux 4444
Trying 192.168.1.254...
Connected to linux.
Escape character is '^]'.

Regards,

Jim


------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users



------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Monte Freeman
In reply to this post by Craig Lindholm
I know nothing about the mh Android stuff (haven't played with it yet, but it's on the list....eventually....); but....

I *think* the syntax for Windoze Telnet is different than the syntax for a real OS. <evil grin>

On a Windows box, I think you have to use "telnet linux:4444" (colon between host and port, instead of a space). 

At least that's what I remember from the last time I tried to telnet to a non-standard port from the Microsoft world. 

Try it that way and see if your results are different. 

Just my $.02 worth......

-Monte

Sent from my iPhone 6

On Nov 3, 2015, at 9:30 PM, Craig Lindholm <[hidden email]> wrote:

Hi Jim.

I am not sure what is happening. If I run telnet on my phone as well as my tablet, I get  the same result as you (except I am on 10.1.1.10). 

If I try from my windows machine, I get a blank screen. when I press enter it says "login? but that's it.

I'll try on my sons phone.

On Nov 3, 2015 17:01, "Jim Duda" <[hidden email]> wrote:

Craig,

I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?

Can you try and telnet to your server at port 4444 from both wired and wireless computers?

Here I get:

jim> telnet linux 4444
Trying 192.168.1.254...
Connected to linux.
Escape character is '^]'.

Regards,

Jim


------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
In reply to this post by Craig Lindholm
Craig,

Wonderul.  I think you have helped me figure out the problem.
In reviewing the thread, I noticed you are running 1.5.5 while I am at 1.5.4 on my devices.
I upgraded my devices to 1.5.5 and got the same behavior as you.

Can you please downgrade to 1.5.4 from http://duda.tzo.com/~jduda/Misterhouse_1.5.4.apk

Then try again.
If it doesn't work, trying stopping the Misterhouse app in your android Settings and restart the app again.

I will need to go back and review what I did to break things between 1.5.4 and 1.5.5.

Best Regards,

Jim

On 11/03/2015 10:16 PM, Craig Lindholm wrote:

> Hey Jim, this is interesting. I verified this on my phone and tablet. These logs are from MH debug
> *If I telnet into port 4444 and do nothing I get this from the android MH app.*
>
> 11/03/15 07:06:58 PM Running: dump android inventory to log file
> 11/03/15 07:06:59 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:06:59 PM xml: cat Android
> 11/03/15 07:06:59 PM xml: o $android t Android_Item
> 11/03/15 07:06:59 PM xml: o $android_server t Socket_Item
> 11/03/15 07:06:59 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_speak t Voice_Cmd
> 11/03/15 07:07:00 PM: Saving object states ... done
> 11/03/15 07:07:06 PM android_server:: state:
>
> *Then I press "enter" in the telnet session and this comes from MH (sshing on port 22)*
>
> 11/03/15 07:07:06 PM android_server 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
>   device: , port: , room: oid_server:: legacy_login_request:: pass:
> 11/03/15 07:07:06 PM android_server:: login_accepted:: user: admin room: 10.1.1.90:46653 <http://10.1.1.90:46653> device:  ip: 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
> 11/03/15 07:07:06 PM Testing socket: IO::Socket::INET=GLOB(0x24cc588) ip: 10.1.1.90:46653 <http://10.1.1.90:46653> against IO::Socket::INET=GLOB(0x24cc588) 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM android_send_data:: ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM key: version data: develop-ref Build 721 (385c2a2)
> 11/03/15 07:07:06 PM key: status data: success
> 11/03/15 07:07:06 PM key: function data: login
> 11/03/15 07:07:06 PM legacy function: login data:
> /
> /
> /(This part is from my code running normally)/
> normal: Someone left Upstairs
> 11/03/15 07:07:10 PM pre_speak_to_android
> 11/03/15 07:07:10 PM pre_speak_to_android client_ip: 10.1.1.90:46653 <http://10.1.1.90:46653> room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:10 PM pre_speak_to_android rooms: 10.1.1.90:46653 <http://10.1.1.90:46653>
> Playing WAVE '/media/80GB/mh/my_mh/data/mh_temp.google-403.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
> 11/03/15 07:07:10 PM Paused for 8 seconds
>
> *Then I do an inventory dump from MH app:*
>
> 11/03/15 07:10:00 PM Running: dump android inventory to log file
> 11/03/15 07:10:00 PM android_inventory::
> 11/03/15 07:10:00 PM room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM device:
> 11/03/15 07:10:00 PM version:
> 11/03/15 07:10:00 PM model:
> 11/03/15 07:10:00 PM serial:
> 11/03/15 07:10:01 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:10:01 PM xml: cat Android
> 11/03/15 07:10:01 PM xml: o $android t Android_Item
> 11/03/15 07:10:01 PM xml: o $android_server t Socket_Item
> 11/03/15 07:10:01 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_speak t Voice_Cmd
>
> I haven't tried my son's phone yet, but it look like it needs a little extra something to get the socket going?
> I still don't have sounds or anything, but I thinks it's because the source port of 466653 is from my telnet app and not from the MH app.
>
> thoughts?
>
>
> On Tue, Nov 3, 2015 at 4:58 PM, Jim Duda <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Craig,
>
>     I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
>     You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?
>
>     Can you try and telnet to your server at port 4444 from both wired and wireless computers?
>
>     Here I get:
>
>     jim> telnet linux 4444
>     Trying 192.168.1.254...
>     Connected to linux.
>     Escape character is '^]'.
>
>     Regards,
>
>     Jim
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm

That's great Jim!....unfortunately, the link is down :-(

On 2015-11-03 8:17 PM, "Jim Duda" <[hidden email]> wrote:
Craig,

Wonderul.  I think you have helped me figure out the problem.
In reviewing the thread, I noticed you are running 1.5.5 while I am at 1.5.4 on my devices.
I upgraded my devices to 1.5.5 and got the same behavior as you.

Can you please downgrade to 1.5.4 from http://duda.tzo.com/~jduda/Misterhouse_1.5.4.apk

Then try again.
If it doesn't work, trying stopping the Misterhouse app in your android Settings and restart the app again.

I will need to go back and review what I did to break things between 1.5.4 and 1.5.5.

Best Regards,

Jim

On 11/03/2015 10:16 PM, Craig Lindholm wrote:
> Hey Jim, this is interesting. I verified this on my phone and tablet. These logs are from MH debug
> *If I telnet into port 4444 and do nothing I get this from the android MH app.*
>
> 11/03/15 07:06:58 PM Running: dump android inventory to log file
> 11/03/15 07:06:59 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:06:59 PM xml: cat Android
> 11/03/15 07:06:59 PM xml: o $android t Android_Item
> 11/03/15 07:06:59 PM xml: o $android_server t Socket_Item
> 11/03/15 07:06:59 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_speak t Voice_Cmd
> 11/03/15 07:07:00 PM: Saving object states ... done
> 11/03/15 07:07:06 PM android_server:: state:
>
> *Then I press "enter" in the telnet session and this comes from MH (sshing on port 22)*
>
> 11/03/15 07:07:06 PM android_server 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
>   device: , port: , room: oid_server:: legacy_login_request:: pass:
> 11/03/15 07:07:06 PM android_server:: login_accepted:: user: admin room: 10.1.1.90:46653 <http://10.1.1.90:46653> device:  ip: 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
> 11/03/15 07:07:06 PM Testing socket: IO::Socket::INET=GLOB(0x24cc588) ip: 10.1.1.90:46653 <http://10.1.1.90:46653> against IO::Socket::INET=GLOB(0x24cc588) 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM android_send_data:: ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM key: version data: develop-ref Build 721 (385c2a2)
> 11/03/15 07:07:06 PM key: status data: success
> 11/03/15 07:07:06 PM key: function data: login
> 11/03/15 07:07:06 PM legacy function: login data:
> /
> /
> /(This part is from my code running normally)/
> normal: Someone left Upstairs
> 11/03/15 07:07:10 PM pre_speak_to_android
> 11/03/15 07:07:10 PM pre_speak_to_android client_ip: 10.1.1.90:46653 <http://10.1.1.90:46653> room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:10 PM pre_speak_to_android rooms: 10.1.1.90:46653 <http://10.1.1.90:46653>
> Playing WAVE '/media/80GB/mh/my_mh/data/mh_temp.google-403.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
> 11/03/15 07:07:10 PM Paused for 8 seconds
>
> *Then I do an inventory dump from MH app:*
>
> 11/03/15 07:10:00 PM Running: dump android inventory to log file
> 11/03/15 07:10:00 PM android_inventory::
> 11/03/15 07:10:00 PM room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM device:
> 11/03/15 07:10:00 PM version:
> 11/03/15 07:10:00 PM model:
> 11/03/15 07:10:00 PM serial:
> 11/03/15 07:10:01 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:10:01 PM xml: cat Android
> 11/03/15 07:10:01 PM xml: o $android t Android_Item
> 11/03/15 07:10:01 PM xml: o $android_server t Socket_Item
> 11/03/15 07:10:01 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_speak t Voice_Cmd
>
> I haven't tried my son's phone yet, but it look like it needs a little extra something to get the socket going?
> I still don't have sounds or anything, but I thinks it's because the source port of 466653 is from my telnet app and not from the MH app.
>
> thoughts?
>
>
> On Tue, Nov 3, 2015 at 4:58 PM, Jim Duda <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Craig,
>
>     I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
>     You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?
>
>     Can you try and telnet to your server at port 4444 from both wired and wireless computers?
>
>     Here I get:
>
>     jim> telnet linux 4444
>     Trying 192.168.1.254...
>     Connected to linux.
>     Escape character is '^]'.
>
>     Regards,
>
>     Jim
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Craig Lindholm

Well Jim, I got the 1.5.4 download by going to https but I got the same results.

Sent from my email program

On Nov 3, 2015 20:48, "Craig Lindholm" <[hidden email]> wrote:

That's great Jim!....unfortunately, the link is down :-(

On 2015-11-03 8:17 PM, "Jim Duda" <[hidden email]> wrote:
Craig,

Wonderul.  I think you have helped me figure out the problem.
In reviewing the thread, I noticed you are running 1.5.5 while I am at 1.5.4 on my devices.
I upgraded my devices to 1.5.5 and got the same behavior as you.

Can you please downgrade to 1.5.4 from http://duda.tzo.com/~jduda/Misterhouse_1.5.4.apk

Then try again.
If it doesn't work, trying stopping the Misterhouse app in your android Settings and restart the app again.

I will need to go back and review what I did to break things between 1.5.4 and 1.5.5.

Best Regards,

Jim

On 11/03/2015 10:16 PM, Craig Lindholm wrote:
> Hey Jim, this is interesting. I verified this on my phone and tablet. These logs are from MH debug
> *If I telnet into port 4444 and do nothing I get this from the android MH app.*
>
> 11/03/15 07:06:58 PM Running: dump android inventory to log file
> 11/03/15 07:06:59 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:06:59 PM xml: cat Android
> 11/03/15 07:06:59 PM xml: o $android t Android_Item
> 11/03/15 07:06:59 PM xml: o $android_server t Socket_Item
> 11/03/15 07:06:59 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:06:59 PM xml: o $v_test_android_speak t Voice_Cmd
> 11/03/15 07:07:00 PM: Saving object states ... done
> 11/03/15 07:07:06 PM android_server:: state:
>
> *Then I press "enter" in the telnet session and this comes from MH (sshing on port 22)*
>
> 11/03/15 07:07:06 PM android_server 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
>   device: , port: , room: oid_server:: legacy_login_request:: pass:
> 11/03/15 07:07:06 PM android_server:: login_accepted:: user: admin room: 10.1.1.90:46653 <http://10.1.1.90:46653> device:  ip: 10.1.1.90:46653 <http://10.1.1.90:46653> client: IO::Socket::INET=GLOB(0x24cc588)
> 11/03/15 07:07:06 PM Testing socket: IO::Socket::INET=GLOB(0x24cc588) ip: 10.1.1.90:46653 <http://10.1.1.90:46653> against IO::Socket::INET=GLOB(0x24cc588) 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM android_send_data:: ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:06 PM key: version data: develop-ref Build 721 (385c2a2)
> 11/03/15 07:07:06 PM key: status data: success
> 11/03/15 07:07:06 PM key: function data: login
> 11/03/15 07:07:06 PM legacy function: login data:
> /
> /
> /(This part is from my code running normally)/
> normal: Someone left Upstairs
> 11/03/15 07:07:10 PM pre_speak_to_android
> 11/03/15 07:07:10 PM pre_speak_to_android client_ip: 10.1.1.90:46653 <http://10.1.1.90:46653> room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:07:10 PM pre_speak_to_android rooms: 10.1.1.90:46653 <http://10.1.1.90:46653>
> Playing WAVE '/media/80GB/mh/my_mh/data/mh_temp.google-403.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
> 11/03/15 07:07:10 PM Paused for 8 seconds
>
> *Then I do an inventory dump from MH app:*
>
> 11/03/15 07:10:00 PM Running: dump android inventory to log file
> 11/03/15 07:10:00 PM android_inventory::
> 11/03/15 07:10:00 PM room: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM ip: 10.1.1.90:46653 <http://10.1.1.90:46653>
> 11/03/15 07:10:00 PM device:
> 11/03/15 07:10:00 PM version:
> 11/03/15 07:10:00 PM model:
> 11/03/15 07:10:00 PM serial:
> 11/03/15 07:10:01 PM xml: request=categories=Android options=fields=name|text
> 11/03/15 07:10:01 PM xml: cat Android
> 11/03/15 07:10:01 PM xml: o $android t Android_Item
> 11/03/15 07:10:01 PM xml: o $android_server t Socket_Item
> 11/03/15 07:10:01 PM xml: o $v_android_volume t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_callerid t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_inventory t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_notification t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_play t Voice_Cmd
> 11/03/15 07:10:01 PM xml: o $v_test_android_speak t Voice_Cmd
>
> I haven't tried my son's phone yet, but it look like it needs a little extra something to get the socket going?
> I still don't have sounds or anything, but I thinks it's because the source port of 466653 is from my telnet app and not from the MH app.
>
> thoughts?
>
>
> On Tue, Nov 3, 2015 at 4:58 PM, Jim Duda <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Craig,
>
>     I agree that since your server is listening on 4444 as shown by netstat, you either have a netowrking issue or an android issue.
>     You androids are wireless.  Do you have a wireless router/access which might be blocking port 4444?
>
>     Can you try and telnet to your server at port 4444 from both wired and wireless computers?
>
>     Here I get:
>
>     jim> telnet linux 4444
>     Trying 192.168.1.254...
>     Connected to linux.
>     Escape character is '^]'.
>
>     Regards,
>
>     Jim
>
>
>     ------------------------------------------------------------------------------
>     ________________________________________________________
>     To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


------------------------------------------------------------------------------

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Android Help

Jim Duda
Administrator
On 11/04/2015 01:03 AM, Craig Lindholm wrote:
> Well Jim, I got the 1.5.4 download by going to https but I got the same results.
>

Okay.  My next guess is that there is something different about the interaction
between the android and the raspberry pi in regards to how the network sockets
are working with CR/LF.  I don't know why they would be different.

I'll try and come up with a plan to figure this out.

Jim



------------------------------------------------------------------------------
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

12