Samsung TV control in Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
ptijo
Posts: 3
Joined: Saturday 18 March 2017 12:24
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby ptijo » Sunday 19 March 2017 0:33

Hi,
i have try :
/usr/local/iSamsungTV/bin$ ./iSamsungTV C 192.168.1.10 -KEY KEY_MUTE
-sh: ./iSamsungTV: cannot execute binary file: Exec format error
and with root

/usr/local/iSamsungTV/bin$ ./iSamsungTV C 192.168.1.10 -KEY KEY_MUTE
-ash: /usr/local/iSamsungTV/bin$: No such file or directory

User avatar
jumbotroll
Posts: 469
Joined: Tuesday 13 January 2015 15:36
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Oslo,Norway
Contact:

Re: Samsung TV control in Domoticz

Postby jumbotroll » Sunday 19 March 2017 0:40

@ptijo
I am using this without any problem, on DS712+, but maybe my build not working on your NAS.
If my packages not work I'm going to delete them from my server.
Edit: packages deleted!
Last edited by jumbotroll on Sunday 19 March 2017 1:46, edited 1 time in total.
Regards
Jumbotroll
http://www.jadahl.com

Rodio
Posts: 24
Joined: Thursday 16 April 2015 10:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby Rodio » Sunday 19 March 2017 1:38

tontze wrote:
Correct sudo usage :

Code: Select all

sudo /usr/local/iSamsungTV/bin/iSamsungTV E 192.168.1.36 -KEY KEY_POWEROFF


Still the same error:
[email protected]:~# sudo /usr/local/iSamsungTV/bin/iSamsungTV E 192.168.1.36 -KEY KEY_POWEROFF
/usr/local/iSamsungTV/bin/iSamsungTV: /usr/local/iSamsungTV/bin/iSamsungTV: cannot execute binary file

I tried:
Delete and reinstall package.
Install it on my 916 (running latest stable version)
Install it on my 916 running Domoticz V3.6749
Tried the C, D, F TV setting.
All give the same error

ptijo
Posts: 3
Joined: Saturday 18 March 2017 12:24
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby ptijo » Sunday 19 March 2017 10:06

jumbotroll wrote:@ptijo
I am using this without any problem, on DS712+, but maybe my build not working on your NAS.
If my packages not work I'm going to delete them from my server.
Edit: packages deleted!


I see that there are lot of issue with version of NAS
uname r :2.6.32.12
'm sorry, but I'm resigning myself.
thanks
Regards

tontze
Posts: 116
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby tontze » Sunday 19 March 2017 13:45

Rodio wrote:
tontze wrote:
Correct sudo usage :

Code: Select all

sudo /usr/local/iSamsungTV/bin/iSamsungTV E 192.168.1.36 -KEY KEY_POWEROFF


Still the same error:
[email protected]:~# sudo /usr/local/iSamsungTV/bin/iSamsungTV E 192.168.1.36 -KEY KEY_POWEROFF
/usr/local/iSamsungTV/bin/iSamsungTV: /usr/local/iSamsungTV/bin/iSamsungTV: cannot execute binary file

I tried:
Delete and reinstall package.
Install it on my 916 (running latest stable version)
Install it on my 916 running Domoticz V3.6749
Tried the C, D, F TV setting.
All give the same error


Not the same error, last time it didnt find sudo since wrong path was provided to it. go to

Code: Select all

/usr/local/iSamsungTV/bin/
and try

Code: Select all

./iSamsungTV

or

Code: Select all

sudo ./iSamsungTV


If it cannot be xecuted, you have wrong architecture for the binary or perhaps permission problem ? You can try giving more execution permissions

Code: Select all

chmod a+x /usr/local/iSamsungTV/bin/iSamsungTV
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz
Mi Light

Rodio
Posts: 24
Joined: Thursday 16 April 2015 10:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby Rodio » Sunday 19 March 2017 20:11

Hi Tontze,

Thx for the replies.

did the chmod a+x thing

[email protected]:/usr/local/iSamsungTV/bin# iSamsungTV
-ash: /bin/iSamsungTV: cannot execute binary file: Exec format error

[email protected]:/usr/local/iSamsungTV/bin# iSamsungTV E 192.168.1.36 -KEY KEY_POWERON
-ash: /bin/iSamsungTV: cannot execute binary file: Exec format error

[email protected]:/usr/local/iSamsungTV/bin# sudo iSamsungTV
/bin/iSamsungTV: /bin/iSamsungTV: cannot execute binary file

[email protected]:/usr/local/iSamsungTV/bin# sudo ./iSamsungTV
./iSamsungTV: ./iSamsungTV: cannot execute binary file

Regards
R

tontze
Posts: 116
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby tontze » Sunday 19 March 2017 20:16

Check that your binary file matches with your systems architecture, is it ARM and your system is X86 or vice versa :) Or is it 32bit program and your system is 64bit, or vice versa.
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz
Mi Light

Rodio
Posts: 24
Joined: Thursday 16 April 2015 10:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Samsung TV control in Domoticz

Postby Rodio » Monday 20 March 2017 12:26

Hi,

No idea how to check for which architecture the binary file is.
I've downloaded it form the site of Jumbotroll, but he's deleted them (they're not there anymore).

I'm gonna stop for now with this 'project'.

Thx for the help Tontze, really appreciate it :D

User avatar
bueno79
Posts: 8
Joined: Wednesday 08 March 2017 11:26
Target OS: NAS (Synology & others)
Domoticz version: 3.0
Location: France
Contact:

Re: Samsung TV control in Domoticz

Postby bueno79 » Monday 20 March 2017 18:16

Hi,

your problem is : this file is NOT compile for your architecture. type :

file iSamsungTV

you will see the infos (you need file command of course). So I get the same issue and fix it with a 214play.

- I install a linux ubuntuu.
- I install the CORRECT tool chain from here on the ubuntuu ( https://sourceforge.net/projects/dsgpl/ ... edomCookie )
- I set some variables to compile on th ubuntuu (lines below are not for 214play, just example)

Code: Select all

export CFLAGS="-I/usr/local/arm-none-linux-gnueabi/include"
export LDFLAGS="-L/usr/local/arm-none-linux-gnueabi/lib"
export RANLIB=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib
export LD=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld
export CC=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
export LD_LIBRARY_PATH=/usr/local/arm-none-linux-gnueabi/lib
export ARCH=arm


- then compile the samsungTV code (I clone the project on the ubuntuu with git first) with the gcc (the path is in the variable CC you set before)
- move my new iSAmsungTV on my NAS

it woooorks !!!

:)

you can find all info in french here : http://benjamin-balet.info/multimedia/s ... -synology/
you can fin d info on google with "cross compilation synology"

regards
Bueno


Return to “Other questions and discussions”

Who is online

Users browsing this forum: No registered users and 4 guests