Page 1 of 1

um - broken?

Posted: Fri May 04, 2018 6:47 am
by walaj
win 10 - a bunch of google homes, google home minis.

App just sits there. Until ctrl-c

C:\Users\walaj>"C:\Program Files\Cast\Cast.exe" -inventory
Cancelling casting
Casting cancelled

C:\Users\walaj>

Happy to run a debug version?

Re: um - broken?

Posted: Fri May 04, 2018 6:00 pm
by RobLatour
you should not see the canceling casting message unless you use the -cancel switch

try

c:
cd \
cd program files
cd cast
cast -inventory

and let me know what you see.

Also, you may want look at your firewall, to see if it is preventing communications from your PC to your internal network.

If you need a debug version, I can send you one - please e-mail me at info.cast@rlatour.com

Re: um - broken?

Posted: Sat May 05, 2018 7:57 am
by walaj
RobLatour wrote: Fri May 04, 2018 6:00 pm you should not see the canceling casting message unless you use the -cancel switch
or ctrl-c after waiting 15 minutes.

I've checked and cast.exe is listed with local/private network access.

I'll email outside for a debug version.

Re: um - broken?

Posted: Fri Mar 29, 2019 7:57 pm
by jsdray
I'm having same issue after I rebooted. Worked intermittently after install. Rebooted and doesn't work at all. Hangs on -inventory.
Any resolution?

Thanks

Re: um - broken?

Posted: Sat Mar 30, 2019 8:40 am
by RobLatour
... further to our emails outside this forum ...

You have said you have a mesh network.

The issue is with cast timing out, prior to getting a response over your network. There are likely one or more devices the program is having trouble connecting to in a timely fashion.

I am no expert in networking, but to narrow it down, you might want to try disconnecting one of your mesh networking devices. Myself, I have had up to five google devices (1 home, 4 minis, and a chromecast) and they have worked ok.

Also, my guess is when you reboot you are reconnecting in a different way within your mesh network, and that is what is causing the issue.

In any case, I've asked that you please run the following command and send me a screenshot of the results

cast -debug -inventory

Re: um - broken?

Posted: Sun Apr 28, 2019 7:55 pm
by walaj
back again - tried the most recent:

Code: Select all

C:\Users\walaj>C:\Users\Public\Desktop\Cast.lnk -debug -inventory
Start inventory devices - first attempt
Wait time = 00:00:03
Google device count = 7
        Callum's speaker
        Rumpas TV
        Family Plus Portable
        Kitchen
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCast.Channel.ReadMessage() in E:\Documents\VBNet\cast\SharpCast\Channel.cs:line 201
   at SharpCast.Channel.Connect() in E:\Documents\VBNet\cast\SharpCast\Channel.cs:line 82
   at SharpCast.Player.Connect() in E:\Documents\VBNet\cast\SharpCast\Player.cs:line 28
   at #=z0LIaZppmQw7_9x60cQ==.#=q0LIClG3JqJBHnWzTgeadc45Mu4$SJipAMIcuUYYAGeY1eEQrNIUDojZ2025VuOUYy9RJ6hTREX8BL9_xiuAtWw==.MoveNext()

Cast v1.4 - Help

Switches:

 -about       show more information about cast

 -background  exits cast once the text, file or url has been cast
              does not wait until playing finishes before exiting

 -broadcast   cast to all devices (default)

 -cancel      cancel casting

 -debug       include diagnostic detail in the console displays

 -dir         followed by the full directory name of a directory to cast
              will cast all .mp3 .mp4 and .wav files in the directory and its sub-directories
              files will be cast in alphabetical order within each directory
              unless the -random switch is also used
              directory name may be surronded by double quotes (")
              (required if the filename contains one or more hyphens)
              the -dir and -background switches cannot be used at the same time

 -device      followed by the name of device(s) to cast to
              use the -inventory switch to determine available device names
              device names must be surrounded by double quotes (") when there are
              multiple device names or if a device name contains one or more hyphens

 -file        followed by the full filename to cast
              filename may be surronded by double quotes (")
              (required if the filename contains one or more hyphens)
              supported file types are: .txt .mp3 .mp4 .wav

 -help        shows this help
              help is also shown if not switches are used

 -inventory   show an inventory of devices and available voices
              not all voices on your system may be available

 -ip          followed by the internal Lan IP Address(es) to cast to
              use the -inventory switch to determine available IP Addresses
              IP Addresses must be seperated by spaces

 -mute        followed by the device(s) to mute

 -pause       prompt to 'Press enter to continue' when processing finishes
              if the -pause switch is used without any other switch then
              the help will also be displayed

 -port        followed by the port to cast through (default 55123)

 -random      may be used with the -dir switch to cast files in a random order

 -text        follewed by the text to cast (words to be spoken)
              text may be surronded by double quotes (")
              (required if text contains one or more hyphens)

 -unmute      followed by the device(s) to unmute

 -url         followed by the internet address of the file to cast
              should start with either http:// or https://
              url may be surronded by double quotes (")
              (required if the url value contains one or more hyphens)

 -voice       followed by the name of voice to be used to speak text
              use the -inventory switch to determine available voices
              voice name may be surrounded by double quotes (")
              (required if voice name contains one or more hyphens)

 -volume      followed by the desired volume level
              sets the volume to the desired volume level
              valid values are any whole number between 0 and 100 inclusive

 -website     visit the cast website

  Additional commands available when casting:
  0, 1, 2, ... 9   set volume to 0%, 10%, 20%, ... 90%
  Up arrow         set volume up by 1
  Down arrow       set volume down by 1
  M                mute
  U                unmute
  X                cancel casting and exit
  S                skip the current file (only with -dir switch)

Examples:

 cast -inventory
 cast -inventory -pause
 cast -text This is a test
 cast -text "This test is ready-to-go with hyphens"
 cast -ip 192.168.0.20 -text This is a test using only one ip address
 cast -ip 192.168.0.20 192.168.0.22 -text This is a test using multiple ip addresses
 cast -device "Office home" -text This is a test using one device name
 cast -device "Office home" "Basement mini" -text This is a test using multiple device names
 cast -text This test is a whisper -volume 5
 cast -text This test is a shout -volume 100
 cast -text This is a test using an alternative port -port 9696
 cast -text This is a test using a specific voice -voice Microsoft David Desktop
 cast -file C:\Users\Rob Latour\Music\Eagles\Hotel California.mp3
 cast -file C:\Users\Rob Latour\Music\Eagles\Hotel California.mp3 -background
 cast -dir C:\Users\Rob Latour\Music\Eagles -random
 cast -url "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3"
 cast -mute -device "Office home"
 cast -volume 45
 cast -cancel
 cast -website

Cast v1.4 Copyright © Rob Latour, 2018, All Rights reserved

Inventory

Device                         Type                      IP address           Volume   Mute
WALAJ-PC                       PC speakers               192.168.56.1         70%      Unmuted
Callum's speaker               Google Home Mini          192.168.1.147        20%      Unmuted
Rumpas TV                      Chromecast                192.168.1.145        100%     Unmuted
Family Plus Portable           Google Cast Group         192.168.1.141        45%      Unmuted
Kitchen                        Google Home               192.168.1.140        27%      Unmuted

Windows voice                  Culture                   Gender               Age
Microsoft Zira Desktop         English (United States)   Female               Adult

Press enter to continue

Unhandled Exception: System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCast.Channel.ReadMessage() in E:\Documents\VBNet\cast\SharpCast\Channel.cs:line 201
   at SharpCast.Channel.<Connect>b__25_0() in E:\Documents\VBNet\cast\SharpCast\Channel.cs:line 95
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

C:\Users\walaj>


How sensitive is the casting code (generic - not yours) to multiple devices? Eg if I have phones and "home assistant" also checking the LAN, will they interact?