ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How do I know when the PR2 switches from wireless to wired networking

asked 2011-03-07 08:27:07 -0600

Wim gravatar image

updated 2014-11-22 17:05:32 -0600

ngrennan gravatar image

When I plug in a network cable into the back of the PR2, who do I know it is actually using the wired network and not the wireless network?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-03-07 11:08:02 -0600

leibs gravatar image

Network-switching is controlled by the utility "multi_interface_roam." This utility produces useful information in the log file: "/var/log/roam/console-output.log"

To monitor it, run:

tail -f /var/log/roam/console-output.log

You will see a description of the 3 possible networking interfaces. lan1 (the service port), wan0, or the ddwrt. The active interface will show up in the far right column.

For example, if you are on wireless, you will see:

2011-03-07 16:38:33,918 - INFO -    bs@lan1   inf  Wired    0.000 100
2011-03-07 16:38:33,918 - INFO -       wan0  15.0  NoLink  -2.000  -2
2011-03-07 16:38:33,919 - INFO -      ddwrt   inf  Wired   56.976 100 active

Note: "ddwrt" shows up as a wired interface because it is wired from the computer to the ddwrt router

If you are on wired, you should see:

2011-03-07 17:01:35,952 - INFO -    bs@lan1   inf  Wired   0.000 100
2011-03-07 17:01:35,952 - INFO -       wan0   inf  Wired 100.000 100 active
2011-03-07 17:01:35,953 - INFO -      ddwrt   inf  Wired  99.990 100 #2
edit flag offensive delete link more

Comments

Perhaps this is something to add on the PR2 dashboard, as the connection influences the performance of the PR2.
KoenBuys gravatar image KoenBuys  ( 2011-03-07 17:59:18 -0600 )edit
0

answered 2011-03-07 09:28:02 -0600

Wim gravatar image

When you plug in the network cable, you should hear two 'beeps': one when the network cable is detected, and one when the PR2 switches to use the wired network.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-07 08:27:07 -0600

Seen: 432 times

Last updated: Mar 07 '11