Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ECP Protocol changes with Roku 2?

We developed an ECP driver for use with Control4 and it has been working great. Unfortunately, our first client with a Roku 2 is seeing issues with the driver that we've not seen before on v1 hardware. Has there been any changes to the way ECP works on the new hardware or has the legacy port/codes on 8080 been deactivated or altered in any way?
Again these errors are only occurring on v2 hardware.
0 Kudos
17 REPLIES 17
Anonymous
Visitor

Re: ECP Protocol changes with Roku 2?

What are the issues you're seeing? I don't believe the Roku2 should operate any differently via ECP than the legacy products.
0 Kudos
gonzotek
Visitor

Re: ECP Protocol changes with Roku 2?

"diamonddesign" wrote:
We developed an ECP driver for use with Control4 and it has been working great. Unfortunately, our first client with a Roku 2 is seeing issues with the driver that we've not seen before on v1 hardware. Has there been any changes to the way ECP works on the new hardware or has the legacy port/codes on 8080 been deactivated or altered in any way?
Again these errors are only occurring on v2 hardware.
Are you using ECP (as described in the ExternalControlGuide.pdf of the SDK), or the older telnet codes (port 8080)? With ECP, I haven't run into any problems on the Roku 2. I haven't ever tried the telnet codes, however.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
pirey4
Visitor

Re: ECP Protocol changes with Roku 2?

"RokuPatrick" wrote:
What are the issues you're seeing? I don't believe the Roku2 should operate any differently via ECP than the legacy products.

The problem is that they keypress commands were broken for the Netflix channel and Channel Store prior to the Roku 2. As a workaround, you could use the legacy telnet commands on the Roku 1 to navigate reliably but the telnet commands don't appear to be work (or work the same) on the Roku 2.

I reported the problem with the ECP keypress commands in the Netflix channel a while back (last September) and it was further discussed in this thread http://forums.roku.com/viewtopic.php?f=34&t=33713.

The problem that the follwing commands don't work on the Netflix Channel, the channel store, and probably other places as well:

/keypress/Left
/keypress/Right
/keypress/Fwd
/keypress/Rew (not even with Rev instead of Rew)

The commands work on the main screen though.

An easy way to see the problem is to do the following from a unix command line: echo -e 'POST /keypress/Right HTTP/1.1\r\n\r\n' | ncat 192.168.1.148 8060

In the Netflix channel and in the channel store, when you execute the command above, you hear the sound like the command was received but the cursor doesn't move off the current selection.

If you execute the same command above on the main springboard, you hear the sound and the cursor moves right as you would expect.

Without support for these commands, some things are very hard to do since keydown/keyup timing isn't reliable.

Are there plans to fix this?

Thanks,

phil
0 Kudos
pirey4
Visitor

Re: ECP Protocol changes with Roku 2?

I did some additional investigation with the telnet commands and they definitely work differently on the Roku 1 and Roku 2.

If I telnet to a Roku 1 on port 8080 and type "press left", the Roku 1 will move the cursor 1 poster to the left. If in the same session, I type "press left" again the Roku 1 will move the cursor 1 poster to the left. This pattern will continue as many times as I wish to repeat it.

If I telnet to a Roku 2 (XS) on port 8080 and type "press left", the Roku 2 (XS) will move the cursor either 1 or 2 posters to the left. I can't find a pattern for whether it will be 1 or 2 posters but so far it seems to move that amount each time. This is clearly much different than the Roku 1.

If just telneted to the Roku 2 (XS) on port 8080 and typed "press right". The Roku 2 (XS) moved the cursor one poster to the right (with the tick sound) and then made the "OK" button sound but did not select the poster was on. When I typed "press right" again in the same telnet session, it brought up the "Options Screen" (change channel position, show channel description, etc.).

I know the telnet commands aren't technically supported but they are the only workaround I could come up with for commands in the published API which do not work on some of the main channels.

Any thoughts on a way ahead would be appreciated.

Thanks,

phil
0 Kudos

Re: ECP Protocol changes with Roku 2?

Phil is correct.

We first developed a driver for Control4 based 100% on the ECP. However, we quickly found that 4 channels were "broken" and one of those was Netflix which happens to be the primary channel that most people use. The navigation buttons (up down left right) were the ones that wouldn't work and act as Phil stated. The only reliable work around was using the old codes on 8080 for up/down/left/right and using the new commands on 8060 for everything else. Fortunately, this worked like a charm and lots of Rokus have been sold to Control4 customers since this development (I can track the driver downloads easily).
Phil had actually mentioned a few months ago to me by email that if they ever kill legacy support his app and our driver would stop working reliably. Now it appears that this has been done without a fix for the new commands, i.e., they've killed support for the old commands without a fix for netflix and a few other grid based channels.
0 Kudos
gonzotek
Visitor

Re: ECP Protocol changes with Roku 2?

I should have said any *new* problems on the roku 2. My experience has been the same. Sorry for the confusion.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
pirey4
Visitor

Re: ECP Protocol changes with Roku 2?

"gonzotek" wrote:
I should have said any *new* problems on the roku 2. My experience has been the same. Sorry for the confusion.

For me the *new* problem is that the telnet commands on port 8080 seem to provide random results on the Roku 2. This is very different than the Roku 1 where the behavior was consistent. (I know you said you did not try the telnet commands yet...)
0 Kudos

Re: ECP Protocol changes with Roku 2?

Patrick or anyone else have any suggestions on this?
0 Kudos
pirey4
Visitor

Re: ECP Protocol changes with Roku 2?

Will either the /keypress commands that don't work in the Netflix channel on both the Roku 2 and Roku 1 be fixed or will the legacy telnet commands be fixed on the Roku 2?

I'd like to have my ECP application work uniformly on both the Roku 1 and Roku 2.

If you fix the /keypress commands the Netflix channel, will these fixes be rolled out to the Roku 1 and Roku 2 simultaneously? If the fixes aren't rolled out simultaneously, is there any way for an ECP app to tell what version of firmware a particular box is running? Without this, I won't be able to migrate until it is rolled out for both platforms since this would break Roku 1 users.

Thanks,

phil
0 Kudos