logo logo
Home arrow Forums...
Tuesday, 22 May 2012
 
 
 
Conscious-Robots.com Forum  


Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
P3 DX Serial Port Configuration in Robotics Studio - 2007/06/28 19:33 Interfacing with the Pioneer 3 DX hardware via Microsoft Robotics Studio requires some configuration. For instance, the first problem I faced was to setup the correct serial port. Some P3 DX setups include an embedded computer; however that is not my case. Instead, I am using a regular laptop connected to the serial port of the robot (actually using a USB to RS232 adaptor). This means that the laptop will communicate with the robot through com3, com4 or whatever comX that Windows driver assigns to the USB to RS232 adaptor. For initial testing I was using the Robotics Tutorial 5 included in the Robotics Studio distribution.

In my case, the port was COM4, so how could I tell MSRS to use laptop’s COM4 port to communicate with the robot? I asked that question and this is the answer from Microsoft:

You will want to check the DriverState section and adjust the connection settings...

<ArcosCoreState xmlns: xsd="http://www.w3.org/2001/XMLSchema" xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xw/2005/12/arcoscore.html">
<DriverState>
<ComPort>COM4</ComPort>
<BaudRate>0</BaudRate>
</DriverState>
</ArcosCoreState>

You can create it as follows:
1. Run VPL
2. Drag the "Arcos Core" service on to the pallette
3. In the properties tab, change Configuration to "Set initial configuration"
4. Update the DriverState section with the appropriate config
5. Save the diagram
6. Find the ArcosCore.Config.xml in the directory where you saved the diagram and copy it to [1], making sure to change the name to "ArcosCoreService.xml".
7. Run your service again.


Take into account that this applies to Microsot Robotics Studio 1.5 CTP May 2007. I don’t know whether or not this will work for future releases.

The ArcosCoreService.xml file contains more configuration settings that can be altered either using the VPL or editing the XML file directly.
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:P3 DX Serial Port Configuration in Robotics Studio - 2007/07/04 14:57 By the way, [1] is:

[1] C:Microsoft Robotics Studio 1.5 (CTP May 2007)storeArcosCoreService.xml
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:P3 DX Serial Port Configuration in Robotics Studio - 2008/02/22 12:33 The above worked for MSRS 1.5 CTP May 2007. But when I upgraded to the final MSRS 1.5 official release, I had to move the ArcosCoreService.xml file to the MSRS home directory:

C:Microsoft Robotics Studio (1.5)
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.
balamithraselvan
Visitor

Fresh Boarder
Posts: 0
graphgraph
Karma: 0  
Re:P3 DX Serial Port Configuration in Robotics Studio - 2010/03/31 20:56 help in MSRS

how to send data received at serial port to Microsoft robotics?


studio, i want to trasnfer ultrasound sensor data from microcontroller to msrs
i managed to bring it upto serial port
but i dont know how to sned it to MSRS
  The administrator has disabled public write access. Please, register to participate in the forum.
Raúl
Moderator

Moderator
Posts: 591
graph
Karma: 10  
Re:P3 DX Serial Port Configuration in Robotics Studio - 2010/04/05 10:46 Hi,

You could have a look to the source code of the ArcosCore service. This service communicates with ARCOS firmware over the serial port. Although you are working with a different robot and different firmware, I think you could see the basics of using CCR to read data from a serial port from this example. The thing is that you need to read data using a RDS service, therefore you have to use .NET and be familiar with DSS and CCR.

I think you should look at the file SerialIOManager.cs. It is located under your Robotics Developer Studio installation folder (look for samples/Platforms/MobileRobots/Arcos/ArcosCore).

Best,
Raúl.
Raúl Arrabales Moreno. conscious-robots.com/raul
  The administrator has disabled public write access. Please, register to participate in the forum.





Lost Password?
No account yet? Register
 Conscious Robots RSS FeedConscious Robots RSS Feed

Find us on Facebook

Follow us on TwitterFollow us on twitter
Spotlight

Machine Consciousness Bibliography Database

 

ConsScale
The Cognitive Machine Consciousness Scale

 
Last Posts in Forum
 
CR
miel continental