Go Back   Sonos Forums > The Unsupported Area

Reply
 
Thread Tools Display Modes
  #21  
Old Jan 3rd, 2013, 04:40 AM
jishi jishi is offline
Member
 
Join Date: Nov 2010
Location: Stockholm, Sweden
Posts: 1,105
Default

Quote:
Originally Posted by ratty View Post
http://x.x.x.x:1400/status/opt/log/anacapa.trace

If the timestamps matter you'll need to compute the offset of the internal clock from wall time using http://x.x.x.x:1400/status/date
I can't understand why the timestamps isn't correct, and why they don't fix it... It obviously manage to time sync because my alarms fire at the right time...
Reply With Quote
  #22  
Old Jan 3rd, 2013, 04:44 AM
ratty ratty is offline
Moderator
 
Join Date: Mar 2008
Location: Scotland
Posts: 14,274
Default

Quote:
Originally Posted by jishi View Post
I can't understand why the timestamps isn't correct, and why they don't fix it... It obviously manage to time sync because my alarms fire at the right time...
Sure, the system keeps accurate time via NTP.

I guess the answer to the "why not fix it?" question is "why bother?". These are undocumented internals after all. My guess is that where necessary the tool which Sonos Support uses to mine the diagnostic can do timestamp offset correction. It's pretty trivial.
Reply With Quote
  #23  
Old Jan 3rd, 2013, 06:44 AM
controlav controlav is offline
Member
 
Join Date: Aug 2010
Location: Kirkland, WA, USA
Posts: 286
Default

Quote:
Originally Posted by ratty View Post
Totally awesome! Is there a similar log for event errors themselves? (I know I can see the error counts on status/upnp). I'm still having trouble getting the ACKs to work correctly on events longer than a couple of packets in size.
Reply With Quote
  #24  
Old Jan 3rd, 2013, 07:14 AM
ratty ratty is offline
Moderator
 
Join Date: Mar 2008
Location: Scotland
Posts: 14,274
Default

Quote:
Originally Posted by controlav View Post
Is there a similar log for event errors themselves?
No idea. Application type / subscription errors appear in anacapa.trace. Low level stuff is in dmesg.
Reply With Quote
  #25  
Old Jun 26th, 2014, 09:46 PM
skavan skavan is offline
Member
 
Join Date: Apr 2009
Posts: 11
Default Simple How-To

Hi,

I'm trying to build a vb version of your excellent work. I have the device discovery working fine.

But then when I try and subscribe to an AVTransport Service, nothing happens!

I am guessing its because the event handling code is fundamentally different in vb.net.

Any ideas how to make this work:

Code:
private void SubscribeToEvents()
		{
			AVTransport.Subscribe(600, (service, subscribeok) =>
				{
					if (!subscribeok)
						return;

					var lastChangeStateVariable = service.GetStateVariableObject("LastChange");
					lastChangeStateVariable.OnModified += ChangeTriggered;
				});
		}
What I am doing is:
1. Discover relevant devices
2. Grab the renderer I want and then
3. pluck out the AVTransport service and
4. Subscribe to Events
5. When the Onsubscribe event is called, point the lastchangeevent to my own handler.

I am struggling somewhere between step 4 and 5. Oh - I should add, I am trying to make this a generic MediaRenderer handler and thus avoid ZoneTopology stuff (for now).

H-E-L-P!

Last edited by skavan; Jun 27th, 2014 at 07:48 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:56 PM.