Languages

Menu
Sites
Language
[Gear S3] TCP connection using nodejs

I am trying to make TCP connection using nodejs through watch. Please tell me how to push file in samsung s3 watch and how to run it?

I have used this link:
https://developer.tizen.org/blogs/stewartchristie/2013/running-node.js-on-tizen-2.0

node is running successfully in emulator but not in actual device. Getting error when running a node file in shell, because watch doesn't allow me to switch user to root. 

Please tell me steps to run a node file in shell and in which folder should I push this file?
Also share TCP connection code, I want to make server to server connection using watch.

Edited by: John Ixion on 08 Jul, 2017

Responses

8 Replies
André Reus

hi, 
You may try to push your file through Connection Explorer of Tizen Studio. In Emulator or in Simulator many Hosted Web app features work. But in mobile/gear device some features of Web may not work due to hardware limitations. Have a try and let us know! 

Alisha gupta

hi, I am able to run node.rpm in emulator using below commands:

sdb commands: sdb root on

shell commands:

su -

then push the file 

and rpm - i nodejs.rpm

it installs the node globally in my emulator successfully.

but when I am doing the same in watch " sdb root on" -it shows error Permisssion denied. and when I try to run node.rpm file in shell it shows this error: 

error: cannot open Packages database in /var/lib/rpm

rpm is not present at this location in watch but in case of emulator rpm is present at this location.

what should I do to run rpm file? Do I need to root the device?

Alisha gupta

hi, I am able to run node.rpm in emulator using below commands:

sdb commands: sdb root on

shell commands:

su -

then push the file 

and rpm - i nodejs.rpm

it installs the node globally in my emulator successfully.

but when I am doing the same in watch " sdb root on" -it shows error Permisssion denied. and when I try to run node.rpm file in shell it shows this error: 

error: cannot open Packages database in /var/lib/rpm

rpm is not present at this location in watch but in case of emulator rpm is present at this location.

what should I do to run rpm file? Do I need to root the device?

Peter Wegner

No idea if this helps you...

 

ALL commercial available Tizen Devices have NO root access...

If you mean something like SM-R760 or SM-R770 or SM-R765...

Then all these Gear S3 Wearables are NOT rooted by default...

 

In other words.

sdb root on...

... not work because no su Binary in bin folder...

 

Simple test...

sdb shell

cd bin

ls

 

If you can not find su, then no su inside...

:)

 

Best Regards

Alisha gupta

So is there any way to run node.rpm file without switching user(su) ?

Peter Wegner

IMHO *.rpm files are "system" stuff and require ROOT...

 

No ROOT no RPM...

 

Best Regards

Sehen Gratis

When I am doing the same in watch " sdb root on" -it shows error Permisssion denied. and when I try to run node.rpm file in shell it shows this error: 

error: cannot open Packages database in /var/lib/rpm. Any response?

Alisha gupta

I am facing same  issue, but not able run. Root access is not granted on commercial device.