Welcome, Guest
Username Password: Remember me

Reeti as Windows7 "Peripheral Device"
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Reeti as Windows7 "Peripheral Device"

Reeti as Windows7 "Peripheral Device" 8 years, 8 months ago #72

Hi, I was wondering if anyone has experience with controlling Reeti from a Windows7 machine _without_ relying on a LAN, e.g., with Reeti connected directly via USB. Is there already example code for doing this in the Reeti code base? Does anyone have any experience or code to share?

Tx, -Chuck

Re: Reeti as Windows7 "Peripheral Device" 8 years, 8 months ago #73


As far as I know it is not possible to connect two PC in peer to peer usb with a simple cable. I think you will need a special cable. Let's look at www.hardwaresecrets.com/article/Connecti...-a-USB-USB-Cable/248

However I think it is much easier to connect in peer to peer ethernet.

You have two solutions for that :
* Solution 1 (wireless) : power you reeti without any RJ45 ethernet connexion. It will automatically start running a wiFi AdHoc network. Its name id ReetiAdHoc-XXXXXX (XXXXX is your Reeti serial number. You can find it on the bottom of your Reeti). Then just browse wiFi neetwork from your win7 PC and connect to ReetiAdHoc network
* Solution 2 (wired) : connect your Reeti and your PC with a RJ45 cable. In this configuration there is no server to give DHCP adresses to Reeti and to your computer. You need to set both machine with static adresses on the same sub network mask ( and for example). For your computer go in windows network manager. For Reeti use "sudo ifconfig eth0". Once you change manually Reeti address, you need to relaunch Reeti server and reeti Application (just use the icon relaunch, upper icon top of configuration pannel).

To confirm that Reeti server is launched on the wanted address, check it on the main page of Reeti application : "Info" icon in the top icon bar.

Once Reeti and your win7 PC can ping each other, you can send any Reeti command (refer to Reeti API to have a complete list of Reeti commands)to Reeti Urbi server :
- connect in TC/PIP to Urbi server : address is Reeti Address, port is 54001
- send the command. Try with : Global.tts.say("Hello"); (don't forget the ";" at the end of each command)

To connect to Urbi server you can use any kind of TC/PIP client.
Here are a few way to do it :
* manually : use a windows TC/PIP client like putty (www.putty.org/)
* in C++ : use lib uclient from urbi for windows (www.gostai.com/download/urbi_2_7_bin/). You can find an example in /home/reeti/reetiDocuments/DevelopmentDoc/Samples/Urbi/StandAloneCPP. You also have some more complex examples using ROS in /home/reeti/reetiDocuments/DevelopmentDoc/Samples/ROS/...
* in java : use java lib uclient from urbi. Examples in /home/reeti/reetiDocuments/DevelopmentDoc/Samples/Java/
* in any other language or environmnet just use your prefered TC/PIP Client. On our side we use boost.asio for linux C++ embedded application or QTNetwork for HMI.

Please note that Reeti documentation has been recently (6th march 2013) reorganized. You should connect your Reeti on the web and do an update (update icon on Reeti application main page)

Re: Reeti as Windows7 "Peripheral Device" 8 years, 8 months ago #74

Thanks for your quick reply! I didn't realize you cculd just plug Reeti into the PC with an RJ45 and no router involved. That achieves what I need.

  • Page:
  • 1
Time to create page: 0.25 seconds