Pioneer 2 / PeopleBot Configuring P2OS Operating Parameters, Run p2oscf, Argument Description

Page 54

Updating and Reconfiguring P2OS

Configuring P2OS Operating Parameters

The program p2oscf(.exe) is the way you view and change your Pioneer 2’s identity and operating parameters.

Limited reconfigurations.

FLASH ROM in the controller is guaranteed for only 100 erase cycles.

Steps 1–3: Preparing for Configuration

Prepare for changing your robot’s configuration parameters identically to Steps 1, 2 and 3 for updating P2OS described above.

Step 4: Run p2oscf

As with p2osdl, you will find p2oscf(.exe) in the p2os/ directory of your PSOS distribution. The program accepts optional arguments (Table 12); the argument-less default startup is to connect with your robot’s P2OS microcontroller through your PC’s serial port /dev/ttyS0 in Linux/UNIX systems or COM1 with Win32. With the default, you may double-click to launch psoscf.exe directly from your desktop, rather than executing the program from the MS-DOS Prompt window.

Table 13. p2oscf startup options

Argument

Description

-h

List p2oscf argument options and quit

-b

Batch mode; series configuration command must follow.

 

Configuration changes made to FLASH parameters

-n

Operate p2oscf without connecting with the microcontroller.

 

Useful for editing parameter files saved to disk.

-p

Set serial port; serial port name must follow immediately

 

after argument; /dev/ttyS1 or COM3, for example.

-s

Automatically save changes to disk file named in path

 

immediately following argument.

Step 5: Changing Configuration Parameters

On start up (after power cycle or RESET), P2OS reads a set of operating parameters from its FLASH memory and uses these values if and until you override them with explicit P2OS commands. For instance, a default maximum velocity is stored in the TransVelMax parameter. After establishing a client-server connection, you may send a SETVEL command which changes that default maximum velocity.

Normally when it starts, p2oscf automatically retrieves the current identifying and operating parameters from your Pioneer 2 or PeopleBot robot. Some of the parameters, "Constants", are not to be changed. The others, "Variables", are the identifying and operating parameters that you may edit with p2oscf.

With p2oscf, you edit a temporary copy of the parameters list. Your changes are not changed in your robot’s FLASH memory until you choose to explicitly "save" them. Even then, p2oscf will write to FLASH only if you have changed some parameter value. Writes to the C166 FLASH are guaranteed for only 100 cycles, so we caution that you reconfigure/update your P2OS microcontroller only when necessary.

48

Image 54
Contents Pioneer 2 / PeopleBot TM Page Important Safety Instructions Table of Contents Pioneer 2 Operating System Appendix C Basic Components all shipments IntroductionRobot Package Optional Components and Attachments partial listSoftware Additional ResourcesUser-Supplied Components / System Requirements NewsgroupsSupport Support@activmedia.comWhat Is Pioneer? Client SoftwareHttp//robots.activmedia.com ActivMedia Robotics Basic SuiteAria SaphiraPioneer Legacy PioneerPioneer 2 and PeopleBot Page Modes of Operation Specifications & Controls Physical CharacteristicsMain Components Decks and Console Pioneer 2-AT Console and hinged DeckBody, Nose, and Accessory Panels Sonar Arrays with Gain Adjustment Batteries and Power ElectronicsMotors and Position Encoders Controls, Ports, and Indicators Liquid-Crystal Display & Contrast Adjustment Reset and MotorsSerial Safety Watchdogs and Configuration Pioneer 2 Arm-related SIPs and CommandsPeopleBot Sensors and Emergency Stop Quick Start Preparative AssemblySaphira Client Installation Http//robots.activmedia.comSET SAPHIRA=C\Saphira\ver62 Saphira Client Start-UpRobot Cold Start-Up Export DISPLAY=remotecomputer0Starting Client-Server Communications Successful ConnectionOperating the Saphira Demonstration Client ConnectedQuickstart Troubleshooting Quick Start Joydrive and Self-Tests Joystick ConnectionJoydrive Operation Press again to begin tests Engaging Self-TestsMotors Test Left forward 13.2Gripper Sonar TestBumpers CompassUser PWMs Digin and Digout TestAnalog Tests Digin DigoutPioneer 2 Operating System Communication Packet ProtocolPacket Errors Packet Data TypesPacket Checksum Name Data Type Description Client Commands Server Information PacketsBefore Client Connection Client Command Argument Types PtuposProgramming P2OS Saphira Client Command SupportAutoconfiguration Establishing a Client-Server Connection-SYNCMovement Commands Keeping the Beat-PULSEClosing the Connection-CLOSE Pioneer in Motion PID ControlsSonar Position IntegrationEstop and Estall SfRobotComInt44,1CONFIGpac and Config Command Extended PacketsPacket Processing SERAUXpac and Getaux GRIPPERpac and Griprequest ENCODERpac and Encoder CommandPLAYLISTpac and Playlist Command Checksum Integer Computed checksumInput / Output I/O TCM2pac and TCM2 CommandDIGIN, TIMER, and Adsel SfSMessageDigin is %i,sfRobot.diginDigout and Psupos IOpac and Iorequest Performance PeopleBot IRs Installing the P2OS Utilities Updating & Reconfiguring P2OSWhere to Get P2OS Software Updating P2OSDownload Troubleshooting Enable FlashPut Microcontroller into Download Mode Run p2osdlChanging Configuration Parameters Configuring P2OS Operating ParametersSteps 1-3 Preparing for Configuration Run p2oscfEditing P2OS Parameters Saving and Restoring Arm ParametersSave C\p2os\myP2DX Keyword PID Parameters Encoder and RevcountCalibration Tools revcountcal and compasscal Parameter DXe Performance PBCompasscal /dev/ttyS3 Maintenance & Repair Drive LubricationBatteries Alternative Battery Chargers Getting InsideRemoving the Nose Opening the Deck Remove indicated screws to remove Original Pioneer 2-AT DeckFactory Repairs Support@activmedia.com 603 924-2184 fax 603 924-9100 voiceAppendix a C166 Controller Ports & ConnectionsInternal Serial Connectors User I/O Expansion PortPerformance PeopleBot I/O Pin Label UseGeneral I/O Bus Appendix B User Power ConnectionsPower Switch J7 and Delayed Shutdown Logic Onboard Computer OptionPower-State Logic Computer PowerJoystick Connector Appendix CSpecifications Appendix DControls and Ports Index ControlsSpecifications Warranty & Liabilities Page Concord Street Peterborough, NH 603