Blue Heat/Net Software Installation Guide for QNX4.2X

Intro:

Welcome to the Blue Heat/Net QNX4.2X Quick Install Guide.

This document will guide you through the steps needed to install and test your Blue Heat/Net under QNX4.2X.

Last updated: March 16, 2007

Blue Heat/Net Hardware Configuration:

  • Connect your Blue Heat/Net to your standard serial port
  • Configure your serial port: stty 9600 -ihflow -ohflow </dev/ser1
  • Open the serial port: qtalk -m /dev/ser1
  • Connect power to your Blue Heat/Net unit. The port LEDs should cycle
  • Immediately type “password” into your qtalk window

You should now be in the Serial Configuration Manager (SCM).

Network Configuration:

Set the IP you would like the unit to use.

By default it uses 192.168.42.1.
You can change it with the following command:

net mip=XXX.XXX.XXX.XXX

We recommend placing the unit on the same network as the host PC.
If you wish to communicate with the unit from a different network, set the IP address in SCM and consult your system administrator to make any required network changes.

If you wish to use DHCP then use the following command:>/br>

net dhcp=yes

We recommend setting your Gateway IP and DNS IP when using DHCP to ensure proper operation.

Port Configuration:

By default the Blue Heat/Net unit ships with no selected port Line modes.

You should manually configure each port to a known value to ensure proper operation. You can do this with the following command:

port <Port #> lmode=<line mode>

i.e. port 1 lmode=232

When you open a port on the Blue Heat/Net the settings saved on the unit, including line mode, will be used. These can be overridden by the host driver using stty and bhnconfig but it is best practice to set the values and save them on the unit for consistency.

Boot Configuration:

By default you will be given a 30 second boot delay in order to access the SCM. After you have configured the unit you can reduce this delay, if desired, by using the boot command. boot delay=3 is recommended.

Save Configuration:

At this point you should have configured the Blue Heat/Net for basic serial communications. Save the changes and exit by using the save followed by the exit command.

QNX4.2X Host Driver Install:

If you haven’t done so already, extract the driver files to the desired location on your local disk:

tar -xvf BHN-Q4-v425X.tar

Copy the install package ‘qnx4bhnv425x.F’ (where ‘x’ is the version) to a temporary directory. Use the following command to begin installation: Install -u /path/qnx4bhnv425x.F Follow the installation prompt and all the required files should exist on your system to run the host driver. The following files will be updated or installed:

  • /usr/bin/Dev.bhn – driver
  • /usr/bin/bhnconfig – ‘bhnconfig’ RS-485 support utility
  • /usr/bin/bhnautod – ‘bhnautod’ Blue Heat/Net auto-detection utility
  • /usr/cti/bhn/readme.txt – readme.txt describing any necessary driver information

QNX4.2X Host Driver Configuration:

The Blue Heat/Net comes with an auto configuration utility. It can detect units installed on your network and map the settings over to serial port devices on your QNX4.2X system. If you have already set the IP of your unit (recommended) then do the following to configure the system:

  • Check for network connection: ping <BHN IP Address>
  • If successful run: bhnautod -a <BHN IP Address> -p 49152 2 > /etc/bhn.conf
    e.g:   # bhnautod -a 10.10.10.99 -p 49152 8 > /etc/bhn.conf

This will setup an 8 port BHN that has the IP 10.10.10.99

  • Look at the contents of the /etc/bhn.conf file to ensure the unit was detected properly. You should see a Blue Heat/Net unit and each port displayed.

If you run into problems and are unable to reach the unit via ping then consult your manual for network configuration or the steps mentioned at the start of this guide. You may also want to contact your system administrator for network assistance.  Also make sure that all appropriate TCPIP services are running on your QNX system.

QNX4.2X Host Driver Initialization:

Your system should now be configured to launch the Blue Heat/Net host driver. You can do so with the following command:

Dev.bhn -F -S -b 9600 &

This will start the driver with no flow control enabled and a baud rate of 9600. See the driver usage for more options. If you look in your /dev directory you should see a list of /dev/bhnX ports now available.Using the ‘-N’ argument will allow you rename the /dev/bhnX ports to a prefix of your choice, you can also number them from a starting value.
Dev.bhn -N ser5 &

This will begin the port numbering at /dev/ser5, /dev/ser6 etc…

Once Dev.bhn is running, you can also link ports to other names for use:
ln -P -s /dev/bhnX /dev/myserX

This will link the existing device (/dev/bhnX) to a new “device” (/dev/myserX)

With a loopback connector or Null modem cable you can now test the ports with qtalk to ensure proper communications.

Go to Top