SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #101  
Old 12-11-2005, 09:18 AM
Ken C Ken C is offline
Sage Aficionado
 
Join Date: Apr 2005
Posts: 446
Quote:
Originally Posted by salsbst
Ugh, yes, still swamped. I'm starting to suspect that this may not happen in December .
Rats, we were hoping for a Christmas present !

Real work comes first.

Ken C
Reply With Quote
  #102  
Old 01-01-2006, 12:23 PM
valnar valnar is offline
Sage Icon
 
Join Date: Oct 2003
Posts: 1,252
Send a message via ICQ to valnar
December is over.

Any more progress? We eagerly await!...

-Robert
Reply With Quote
  #103  
Old 01-03-2006, 07:28 AM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
I'm anxious to see this as well, and would gladly test anything that needs to be tested, as I am sure many others would!

Really want to get my Myhd130 working along with my DCT-6200, and hopefully 2 r5000's someday!
Reply With Quote
  #104  
Old 01-06-2006, 04:26 PM
nirvdrum nirvdrum is offline
New Member
 
Join Date: Jan 2006
Posts: 2
salsbst,

I've been looking a lot into how to manipulate the MyHD card for a different project. The nature of the work is similar in scope to yours though, so I figured I might chime in here and hopefully help you out and learn a thing or two.

After messing around with things a fair amount today, I've come to the conclusion that the TCP mechanism is only being used to send commands from the remote control. It was a bit tricky to sniff any traffic since there's no straightforward way to do so with a loopback device in Windows. What I ultimately ended up doing was using a hex editor to change the port the MyIRC process binds to. I then used netcat to bind to the old port (so the MyHD process would still connect to something) and then telnetted the MyIRC process's port, so I could see what it was sending out. It was a fair amount of work to find out that nothing was being sent unless the remote was being used . . .

It appears that the MyHD process uses some other mechanism to determine whether the MyIRC process is running. Indeed, even when it connected to my netcat server, it noted upon closing that the MyIRC process was not running. Even in this set up where the MyIRC and MyHD processes had not established connections to one another, the MyHD process was given the info necessary to start a recording.

Anyway, not sure if you had noted that or not. The consequence of this seems that you could run both MyIRC (patch it to bind to a different port) and start up whatever server you'd like to send the MyHD process commands. You'd have to proxy between your server and the MyIRC process in order to use the remote as normal.

Is it your intention to use your own scheduler to start and stop recordings. Based upon previous posts, this seems to be the case, but I wasn't totally following. If not, have you figured out how scheduled recordings are currently handled? I've been having a bit of a run in with this. My best guess right now is that it's all done through the registry. MyHD has a local Access DB it keeps around that looks like it has a table for recordings, but it's always empty. I haven't seen the MyIRC process actually access this DB either, yet it clearly knows about scheduled recordings.

Well, that's all I have for now. Any thoughts would be appreciated.

--
Kevin
Reply With Quote
  #105  
Old 01-06-2006, 04:38 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
If I may speak for salsbst

Quote:
Originally Posted by nirvdrum
Is it your intention to use your own scheduler to start and stop recordings.
The intent it to use SageTV as the scheduler, and that the idea is to create an intermediary that accepts commands (record/stop/channel/etc) from SageTV and then commands the MyHD card.

I don't think currently the plans were to actually schedule recordings.
Reply With Quote
  #106  
Old 01-06-2006, 10:41 PM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
Quote:
Originally Posted by stanger89
If I may speak for salsbst



The intent it to use SageTV as the scheduler, and that the idea is to create an intermediary that accepts commands (record/stop/channel/etc) from SageTV and then commands the MyHD card.

I don't think currently the plans were to actually schedule recordings.
And speaking for one of many waiting for this, it will be the holy grail when achieved!! OTA/QAM from sagetv!
Reply With Quote
  #107  
Old 01-20-2006, 04:27 PM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Salsbst, Any updates?
Reply With Quote
  #108  
Old 01-26-2006, 10:16 PM
lonndoggie's Avatar
lonndoggie lonndoggie is offline
Sage User
 
Join Date: May 2004
Location: Encinitas, CA
Posts: 42
Quote:
Originally Posted by nirvdrum
salsbst,
I've been looking a lot into how to manipulate the MyHD card for a different project. The nature of the work is similar in scope to yours though, so I figured I might chime in here and hopefully help you out and learn a thing or two....
Hey--

I've spent some time ltrying to figure out how MyHD does it's recording tricks, too, and indeed it uses the registry to store all recording schedules. I've got the format pretty much worked out.

I'd also concluded that there wasn't much traffic between MyIRC and MyHD--mostly thru empirical evidence (I too ran into the problem of not being able to capture packets on localhost, but never would have thought of trying to find the port address and editing it!). MyIRC will start MyHD if it's not running, so that a recording will go off--but if MyHD is running and is aware of a recording entry (e.g., it was either in the registry at the time of MyHD's startup, or the entry was made by the MyHD app or TitanTVHelper), then the recording will start, even if MyIRC isn't running.

So...this got me thinking that a really simple, dumb, clumsy (but doable!) way to do a Sage network encoder interface for MyHD would be, for each time you want to tune in something to watch/record:

1. Create the appropriate registry entry
2. Stop the MyHD app if its running
3. (Re)start MyHD

Or, if you can suss out how to run the TitanTV app (I think sengsational said he'd done that in the past), you could probably invoke it to poke the new entry in and avoid the start-stop thing. Likely a lot cleaner.

This approach would leave MyHD available to be used outside of Sage--if that's something you'd want to do (I probably would), as the network encoder would be acting like an automated user--e.g., just another user.

I don't have a development environment installed at home, nor have I been able to find the time to do so; it's also hard to find info about the network encoder interface specs (although I did download source for one network encoder, and it looks pretty simple). Plus, I spend too many hours at work and am lazy! Otherwise, I'd fiddle around with this approach.

Salsbst wouldn't be interested in this approach, because it all assumes that the MyHD system is going to be running "logged in", which works for me (my htpc logs in as part of its bootup sequence)--he wants (needs, I think) to run headless. His solution will be much more elegant and general, assuming he can overcome the problems he's outlined above (which he very patiently explained, thanks again for bearing with me).

And, again, since he's actually working on it, and I'm not, I'm rootin' for him! Go Salsbst!!!

Lonndoggie
Reply With Quote
  #109  
Old 01-27-2006, 03:04 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
FYI, maybe some colaboration is in order:
http://www.avsforum.com/avs-vb/showthread.php?t=635175
Reply With Quote
  #110  
Old 01-27-2006, 03:50 PM
nirvdrum nirvdrum is offline
New Member
 
Join Date: Jan 2006
Posts: 2
lonndoggie,

If you'd like, please check out my site I've set up for my project and see if the registry entries validate with what you think they are. Some I still hadn't quite figured out yet (they're marked with ???).

I agree that some collaboration may help everyone involved. Like I said, I'm not actually using SageTV, but rather another program. I think the general approach here could be useful in both cases though. We could actually probably even share code. I have stuff that will schedule MyHD recordings in the registry right now. It's being sourced from my app's scheduler, but there is a clear separation here.

The project is to be ASL 2.0, although I need to actually release the code / set up the repository (you can browse the code via the trac instance though).

Anyway, just figured I'd throw that out there to prevent duplicated work (which it looks like we already have done to a certain degree) and help all of us MyHD owners start taking advantage of our cards.

Link: http://www.negativetwenty.net/projects/btv_myhd/

--
Kevin
Reply With Quote
  #111  
Old 01-27-2006, 05:04 PM
lonndoggie's Avatar
lonndoggie lonndoggie is offline
Sage User
 
Join Date: May 2004
Location: Encinitas, CA
Posts: 42
Quote:
Originally Posted by nirvdrum
lonndoggie,

If you'd like, please check out my site I've set up for my project and see if the registry entries validate with what you think they are. Some I still hadn't quite figured out yet (they're marked with ???).
Nice! And, might I add: ARRGGGGHH!!! I'm looking for my notes, and all I can find so far is a rather rough spreadsheet; I know I had a much more refined description elsewhere, and I'm still looking.

But, from that, I do have these observations:

1. All the "reserved" chunks you list may well be, but to me it appears as if all the values that the MyHD folks write are actually DWORDS--e.g. they occupy 4 bytes. I think this is borne out by the few where they use negative numbers (they cover four bytes, mostly "F"s). Thus, for example, the first field, the input ID, is actually in bytes 0-3, not just byte zero with 1-3 reserved (remember, little-endian addressing so the rightmost byte has the lowest address).

2. This one: 0xD6 0x07 ??? is actually the reservation start year, and occupies bytes 0x14-0x17. Again, remember little endian, so to put this together as a DWORD the value would be 000007D6. Plug that into your hex calculator and you get -- voila! -- 2006.

3. At 0x28, your ??? is, again, a DWORD (0x28-0x2B), but I have here as a one-time vs. recurring. I'm not sure that's right; my later notes got this stuff straightened out, and I see you've pegged recurring vs. one-time elsewhere.

4. You ??? at 0x3c I had a question mark about, too--something about maybe the use default file name flag, but again, I'm not putting too much faith in that yet.

I'll keep looking for my better data--I think it's on another computer (not the HTPC where I'm actually typing now). If I do (I'll be P.O.ed at myself if I lost that, spent a lot of time sussing that out!), I'll go over the rest. In the meantime, you may want to consider collapsing your matrix down to include the "reserved" chunks into their constituent fields...oh, and one other thing that cleared several things up is to use the "save reservations" feature in MyHD, then go look at the file it had written. All the stuff is in there, nicely labeled; all you have to do at that point is to make enough test cases to figure out the ambiguities and enumeration values.

Best of luck with your project--keep us posted!

Lonndoggie
Reply With Quote
  #112  
Old 02-25-2006, 09:33 AM
Ken C Ken C is offline
Sage Aficionado
 
Join Date: Apr 2005
Posts: 446
Any update on the progress ?

Ken C
Reply With Quote
  #113  
Old 03-09-2006, 09:14 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
I received some information that may help me with integration.

I'm almost done with the major wedding preparation madness that has been keeping me from this, so I hope to start digging in again soon. Sorry to have gone dark for a while.

Last edited by salsbst; 03-09-2006 at 05:36 PM.
Reply With Quote
  #114  
Old 03-23-2006, 11:03 AM
Ken C Ken C is offline
Sage Aficionado
 
Join Date: Apr 2005
Posts: 446
Quote:
Originally Posted by salsbst
I'm almost done with the major wedding preparation madness that has been keeping me from this, so I hope to start digging in again soon. Sorry to have gone dark for a while.
You're letting your wedding get in the way ? Priorities, man ...


Glad to hear it's still an active project.

Ken C
Reply With Quote
  #115  
Old 04-20-2006, 02:29 PM
insomniac's Avatar
insomniac insomniac is offline
Sage Icon
 
Join Date: May 2003
Location: Concord, Ca.
Posts: 1,104
still preying for this solution

Any word?
__________________
If you're not cheating, your not trying...

My sage rigs:
Server - Windows 2003, Intel 865 PERLL w/ P4 3.2g 1gb ram, 3-PVR250, 3-PVRUSB's, 1 Skystar2, 1 twinhan 102g, 1 starbox DVB-S Cards. Evo network QAM encoder. 1.2TB storage 6.x server + MTSAGE for DVB
Client 1/Master BR - MediaMVP running a 30" Olevia LCD TV.
Client 2/Front Room - Shuttle ST61G4 XPC 1gig ram, 60gb HD, BTC9019 wireless keyboard/mouse & Harmony 880. 6.x client. GF6600GT driving a Sony WEGA 55" rear projection tv.
Reply With Quote
  #116  
Old 04-30-2006, 11:22 AM
hotwire hotwire is offline
Sage User
 
Join Date: Apr 2006
Posts: 45
Add me to the list of people who are interested in having the MyHD card work with SageTV. I am thinking about building a new machine for recording OTA HD and HD satellite using the R500 mod, and would like to use the MyHD card I already have.


Kenny
Reply With Quote
  #117  
Old 05-01-2006, 02:46 PM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
I'm working on it again. That's all I can say at the moment, but I in the next week or so I might have some sort of information.
Reply With Quote
  #118  
Old 05-01-2006, 06:54 PM
hotwire hotwire is offline
Sage User
 
Join Date: Apr 2006
Posts: 45
Awesome, thanks for the update. Hope everything goes well.

Kenny
Reply With Quote
  #119  
Old 05-22-2006, 03:17 PM
AndyS AndyS is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 383
Quick bump on this thread just to show we're still (very) interested....

Andy.
Reply With Quote
  #120  
Old 05-23-2006, 11:33 AM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
The bad news

a) Our old bedroom TV broke, and in the process of integrating the a new TV into our lives, I either wrecked the laptop that was driving SageTV in the bedroom or discovered that its display adapter driver never worked properly over DVI in VMR to begin with. BSODs were involved. In any case, starting from scratch on this machine's config is my top priority right now.

b) My attempts to develop this on the DirectX/driver level have been foiled due to lack of access to the APIs and lack of support from MIT.

c) I've decided that I won't be the one to actually implement the version that doesn't require terminal services

The good news

a) Our old bedroom TV broke, so I now have an HDTV in the bedroom which makes me more anxious than before to have the MyHD encoder working

b) I've partially completed a refactoring of my code that serves a couple purposes;
i) gives me (or others) a code base on top of which to develop other encoders for SageTV without worrying about the threading and I/O issues on the SageTV side. [My next encoder will be a "line in/MP3" encoder implementation, one that is meant to support FM radio recording.]
ii) makes it easier to swap out different implementations of the MyHD encoder to suit different people (e.g. whether or not to use the Terminal Services approach to running as a service).

c) I'll be releasing my code under the MIT (Mass. Inst. of Tech., not MacroImage Technology) open source license. Combine this with (b)(ii) and you can conclude that a reasonably talented .Net developer should be able to implement and support a non-terminal services implementation relatively easily. If nobody takes this up, I may get around to it eventually, but it won't be my top priority for some time.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.