RHD change configuration

From Rsewiki
Jump to: navigation, search

The SMR's serial connection to PC-board use either one or two serial connections (as of 18 june 2010):

  • SMR0 : ?
  • SMR1 : two serial (ttyS0 and ttyS1)
  • SMR2 : two serial (ttyS0 and ttyS1)
  • SMR3 : two serial (ttyS0 and ttyS1)
  • SMR4 : two serial (ttyS0 and ttyS1)
  • SMR5 : two serial (ttyS0 and ttyS1)
  • SMR6 : ?
  • SMR7 : ?
  • SMR8 : ?
  • SMR9 : two serial (ttyS0 and ttyS1)
  • SMR10 : one serial (ttyS1)
  • SMR11 : one serial (ttyS1)
  • SMR12 : one serial (ttyS0)
  • SMR16 (mmr) : uses rhdconfig.mmr.xml

If the serial connector on the board goes to the small rs485 board inside the bag of the PC bay, then it uses one serial port. If the serial connector goes to the line sensor, then it uses two serial ports.


This is configured in the start command for the RHD in the file

/etc/rc.d/rc.local

Edit the file using nano, e.g.:

$ su -
$ <password>
$ nano -w /etc/rc.d/rc.local

Two serial ports

The configuration file is rhdconfig.smr232.xml.

In /etc/rc.d/rc.local the RHD start line should be:

/usr/local/smr/bin/rhd /usr/local/smr/bin/rhdconfig/rhdconfig.smr232.xml &

One serial port

The configuration file is rhdconfig.smrS0.xml (using ttyS0) or rhdconfig.smrS1.xml (using ttyS1).

In /etc/rc.d/rc.local the RHD start line should be one of:

/usr/local/smr/bin/rhd /usr/local/smr/bin/rhdconfig/rhdconfig.smrS0.xml &
/usr/local/smr/bin/rhd /usr/local/smr/bin/rhdconfig/rhdconfig.smrS1.xml &
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox