You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run python script on Tizen Z3 mobile device but facing some connection issue. I am posting the details below. Kindly guide and share your opinion.
$sdb root on
$which sdb
/usr/bin/sdb
$sdb version
Smart Development Bridge version 2.2.80
$python -c 'import fmbttizen; print fmbttizen.Device(pythonCommand="/opt/python/bin/python")'
// The above command gives a traceback with following error:
fmbttizen.TizenConnectionError: Connecting to a Tizen device/emulator failed. Error : Agent connection
sh-3.2# /opt/python/bin/python /tmp/fmbttizen-agent.py ; exit
sh: /opt/python/bin/python" No such file or directory
exit
Try "sdb -s 0000c24f00007200 shell /opt/python/bin/python /tmp/fmbttizen-agent.py --debug".
Note: Somehow it did not show earlier connection error.
Moreover when i run fmbt-scripter, it shows the tizen mobile screen also....after File---> New Tizen
It sounds like the connection is established and things work fine as you are able to get the screenshot. Just use fmbttizen.Device() to create a device object through which you can communicate with the real device. (Forget the pythonCommand - it is a workaround for the case if python is not in PATH on the device.)
For instance, in fmbt-scripter, click down the Control button and click the screenshot that you are see on the left. It should synthesize a touch screen tap even to corresponding location on the real device.
You can get started with the scripting by clicking down the Rec button. Now fmbt-scripter should write you script as you click on the screenshot.
Hi Antti,
I am trying to run python script on Tizen Z3 mobile device but facing some connection issue. I am posting the details below. Kindly guide and share your opinion.
$sdb root on
$which sdb
/usr/bin/sdb
$sdb version
Smart Development Bridge version 2.2.80
$python -c 'import fmbttizen; print fmbttizen.Device(pythonCommand="/opt/python/bin/python")'
// The above command gives a traceback with following error:
fmbttizen.TizenConnectionError: Connecting to a Tizen device/emulator failed. Error : Agent connection
sh-3.2# /opt/python/bin/python /tmp/fmbttizen-agent.py ; exit
sh: /opt/python/bin/python" No such file or directory
exit
Try "sdb -s 0000c24f00007200 shell /opt/python/bin/python /tmp/fmbttizen-agent.py --debug".
$ sdb -s 0000c24f00007200 shell
closed
sh-3.2# python -c 'print "hello"
hello
sh-3.2# /opt/python/bin/python -c 'print "hello"
$
$
I have already followed the discussion at:
#27
Could you please check what is getting wrong. thank you~!
The text was updated successfully, but these errors were encountered: