Reply
Kilobyte
hexcide
Posts: 28
Registered: ‎02-10-2011

Re: iphone remote app?


bodhi78 wrote:

 

@hexcide,

 

Can you write a command using "busybox-mipsel nc" to send a volume-up inside the FAT+? we could have a cron job executing this command every 55 minutes. Would this prevent the FAT+ going to auto-sleep mode?


Yes I can. Yes we could. Yes it does. Unusually brief answers from me :smileyhappy:

 

Alas, it's not without it's quirks - see, you weren't getting rid of me that quickly :smileyhappy:

 

The standard key behaviour is different depending on whether the screensaver is active or not. If the screensaver is active, the first key press (via the real remote or via netcat) simply deactivates the screensaver. But if the screensaver is not active (as in when there has been some recent user interaction or the unit is playing a movie) then the key's action is actually performed.

 

In your proposed scenario, when watching a movie, the volume would increase every 55 minutes. Maybe you, like me, use the TV's volume control instead and leave the FAT's volume at max. Still the volume up causes the volume display to flash up briefly even if it is already at max. That certainly annoyed my family :-(

 

The best solution I found was to send the Zoom Out command instead. Who zooms in anyway? :smileyhappy: If a movie is playing and you Zoom Out (when, presumably it is not zoomed in), NOTHING happens on-screen. Happy family :smileyhappy:

 

So, use something like this to keep the unit awake and your family calm:

 

#!/bin/sh
while (`sleep 3300`)
do
echo -e "\x48\x12\x08\x00" | /usr/local/etc/bin/busybox-mipsel nc 127.0.0.1 9999
done

 

Yottabyte
bodhi78
Posts: 1,038
Registered: ‎06-04-2009
0

Re: iphone remote app?

 


hexcide wrote:

bodhi78 wrote:

 

@hexcide,

 

Can you write a command using "busybox-mipsel nc" to send a volume-up inside the FAT+? we could have a cron job executing this command every 55 minutes. Would this prevent the FAT+ going to auto-sleep mode?


Yes I can. Yes we could. Yes it does. Unusually brief answers from me :smileyhappy:

 

Alas, it's not without it's quirks - see, you weren't getting rid of me that quickly :smileyhappy:

 

The standard key behaviour is different depending on whether the screensaver is active or not. If the screensaver is active, the first key press (via the real remote or via netcat) simply deactivates the screensaver. But if the screensaver is not active (as in when there has been some recent user interaction or the unit is playing a movie) then the key's action is actually performed.

 

In your proposed scenario, when watching a movie, the volume would increase every 55 minutes. Maybe you, like me, use the TV's volume control instead and leave the FAT's volume at max. Still the volume up causes the volume display to flash up briefly even if it is already at max. That certainly annoyed my family :-(

 

The best solution I found was to send the Zoom Out command instead. Who zooms in anyway? :smileyhappy: If a movie is playing and you Zoom Out (when, presumably it is not zoomed in), NOTHING happens on-screen. Happy family :smileyhappy:

 

So, use something like this to keep the unit awake and your family calm:

 

#!/bin/sh
while (`sleep 3300`)
do
echo -e "\x48\x12\x08\x00" | /usr/local/etc/bin/busybox-mipsel nc 127.0.0.1 9999
done

 


Awesome! that's a great idea :smileyhappy: Zoom-Out is way better than Volume-Up. I looked at the list of commands and thought of Volume-Up precisely because, as you said, I always have the FAT+ at max volume for the AV Receiver. I will try this tonight. And that's a very nice script too :-)

 

-------------
Feedback! when asking for help, please remember to let others know whether the suggested solution has solved the problem or not.

Need FAT+/GoFlex TV help? see this thread: http://forums.seagate.com/t5/FreeAgent-Theater-and-GoFlexTV/FreeAgent-Theater-product-page-and-other-information/td-p/76254
Byte
mus
Posts: 5
Registered: ‎05-06-2010
0

Re: iphone remote app?

[ Edited ]

Has anyone come up with an Android version of this? Otherwise I was thinking of having a go.

 

Couple of questions for people who own the Iphone version ...

  • Does anybody know how the search feature works?
  • Has/Can anyone with an iphone find out what command it sends to get the movie list?
  • Also what it sends for key presses on the keyboard would also be nice. :smileyhappy:
Kilobyte
hexcide
Posts: 28
Registered: ‎02-10-2011
0

Re: iphone remote app?


mus wrote:

Couple of questions for people who own the Iphone version ...

  • Does anybody know how the search feature works?
  • Has/Can anyone with an iphone find out what command it sends to get the movie list?
  • Also what it sends for key presses on the keyboard would also be nice. :smileyhappy:

  • No idea. Haven't been able to test this.
  • 48 12 fe 00 (though no idea what gets sent back as all my testing was with 2.20 which doesn't support this feature)
  • 48 12 f9 41 is 'A' - replace the last byte with the ASCII code for the character you want. My tests with sending Japanese Unicode characters have been a total failure. So far I have successfully tested only the characters in the Anglo-centric 7-bit ASCII set, though the Euro-centric 8-bit Latin character set, probably works. Es tut mir leid. 

 

Yottabyte
bodhi78
Posts: 1,038
Registered: ‎06-04-2009
0

Re: iphone remote app?

 


hexcide wrote:

Yes I can. Yes we could. Yes it does. Unusually brief answers from me :smileyhappy:

 

Alas, it's not without it's quirks - see, you weren't getting rid of me that quickly :smileyhappy:

 

The standard key behaviour is different depending on whether the screensaver is active or not. If the screensaver is active, the first key press (via the real remote or via netcat) simply deactivates the screensaver. But if the screensaver is not active (as in when there has been some recent user interaction or the unit is playing a movie) then the key's action is actually performed.

 

In your proposed scenario, when watching a movie, the volume would increase every 55 minutes. Maybe you, like me, use the TV's volume control instead and leave the FAT's volume at max. Still the volume up causes the volume display to flash up briefly even if it is already at max. That certainly annoyed my family :-(

 

The best solution I found was to send the Zoom Out command instead. Who zooms in anyway? :smileyhappy: If a movie is playing and you Zoom Out (when, presumably it is not zoomed in), NOTHING happens on-screen. Happy family :smileyhappy:

 

So, use something like this to keep the unit awake and your family calm:

 

#!/bin/sh
while (`sleep 3300`)
do
echo -e "\x48\x12\x08\x00" | /usr/local/etc/bin/busybox-mipsel nc 127.0.0.1 9999
done

 


 

This works great :smileyhappy: you've solved the biggest problem that I think we all have.

 

One caveat, the IP address must be the FAT+ real IP address. It did not work just leave it as local host 127.0.0.1 (at least not for me). I use the real IP address and it stays up for 3 hours so far :smileyhappy:

-------------
Feedback! when asking for help, please remember to let others know whether the suggested solution has solved the problem or not.

Need FAT+/GoFlex TV help? see this thread: http://forums.seagate.com/t5/FreeAgent-Theater-and-GoFlexTV/FreeAgent-Theater-product-page-and-other-information/td-p/76254
Kilobyte
hexcide
Posts: 28
Registered: ‎02-10-2011
0

Re: iphone remote app?


bodhi78 wrote:

  

This works great :smileyhappy: you've solved the biggest problem that I think we all have.

 

One caveat, the IP address must be the FAT+ real IP address. It did not work just leave it as local host 127.0.0.1 (at least not for me). I use the real IP address and it stays up for 3 hours so far :smileyhappy:


Odd! 127.0.0.1 has worked fine for sending commands for me since February (though still on 2.20)

 

Byte
mus
Posts: 5
Registered: ‎05-06-2010
0

Re: iphone remote app?


hexcide wrote:
  • No idea. Haven't been able to test this.
  • 48 12 fe 00 (though no idea what gets sent back as all my testing was with 2.20 which doesn't support this feature)
  • 48 12 f9 41 is 'A' - replace the last byte with the ASCII code for the character you want. My tests with sending Japanese Unicode characters have been a total failure. So far I have successfully tested only the characters in the Anglo-centric 7-bit ASCII set, though the Euro-centric 8-bit Latin character set, probably works. Es tut mir leid. 

 


 

Cheers hexcide. I actually got a (really crude looking) version working last night with the keycodes you posted earlier. I'll add these ones tonight.

 

I'll try to have a play with netcat to check how the movie list works. I also had to revert to the 2.20 firmware. 2.23 is completely useless with network shares. Took at least 10 minutes (possibly up to half an hour - I got bored and left the room) to load a folder of movies in a share. I'll install it again to have a quick play-around with the movie list.

 

Also, in the web interface that comes with the mod firmware, there are buttons that jump forward/back 10 or 30 seconds (I think). Any clue if those features exist using the port 9999 tcp method? That would be awesome! Love those keys - esp. for movies on the share.

 

Byte
mus
Posts: 5
Registered: ‎05-06-2010

Re: iphone remote app?

[ Edited ]

I didn't really have any luck with the movie list. It's returned as a sqlite3 database which seems to be encrypted. Also no luck with the +30/-10 timeskip keys - ANY HELP WITH THIS ONE WOULD BE REALLY APPRECIATED! Those who've used the mod firmwares know that these buttons are far more useful than the ffwd/rewind buttons. The device search is just an SSDP search I think.

 

Anyway, if anyone wants to try out the remote, its at http://code.google.com/p/fat-remote/downloads/list. It's an unsigned package, so you'll need the "unknown sources" app setting enabled in your phone/tablet. If you do use it, let me know what you think.

Byte
questmaster
Posts: 7
Registered: ‎11-11-2010
0

Re: iphone remote app?

[ Edited ]

 


mus wrote:

I didn't really have any luck with the movie list. It's returned as a sqlite3 database which seems to be encrypted.


 

Hi mus,

it is not encrypted, it has just a 4 byte value before the sqlite database. If you remove them 'SQLite Database Viewer' can read the database without problems...

 

I also started an android app some time ago, but had not enough time to finish it for public release.

I put it on github, you can have a look at it if you want: http://github.com/questmaster/FATpRemote

 

Edit:

I took some time yesterday, cleaned my app from not-working code and put it into the market. You can find it here: https://market.android.com/details?id=de.questmaster.fatremote

 

Byte
questmaster
Posts: 7
Registered: ‎11-11-2010
0

Re: iphone remote app?

For 48 12 fe 00 I get 00 00 00 00 as return value if no drive is connected and 00 78 14 00 + sqliteDB of all known files, if a drive is connected

 

I found some other codes:

 

48 12 fd 00 - waits for input

48 12 fc 00 - returns "Venus" on FAT+ 2.23

48 12 fa 00 - waits for input, aft connection closed returns 8byte 03 00 00 00 00 00 00 00

 

So, it would be interesting to get a network trace (e.g. via wireshark) of an iphone and the FAT+ doing a search, selecting a movie for playback and sending a picture to reverseengineer these functions. I would guess that it uses some of the codes above, but as we have to send something back, it would be nice to have something to rely on... :smileyhappy:

 

Another thing is to verify what a goflex tv returns for the 48 12 fc 00 command. Also 'Venus' or something else... This can be used to automate the device discovery...

 

CU