Welcome to the BlueHeat/Net QNX 6 Quick Install Guide.
This document will guide you through the steps needed to install and test out your BlueHeat/Net under QNX 6.3.0
BlueHeat/Net Hardware Configuration:
- Connect your BlueHeat/Net to your standard serial port
- Configure your serial port: “stty 9600 -ihflow -ohflow
- Open the serial port: qtalk -m /dev/ser1
- Connect Power to your BlueHeat/Net unit. The port LEDs should cycle
- type “password” into your qtalk window.
You should now be in the Serial Configuration Manager(SCM)
Network Configuration:
- Setup 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 admistrator to make the proper changes required for this in your network. - If you wish to use DHCP then set type: “net dhcp=yes”. We recommend setting your Gateway IP and DNS IP when using DHCP to ensure proper operation.
Port Configuration:
By default the BlueHeat/Net unit ships with no selected Line modes for ports.
You should manually configure each port to a known value to ensure proper operations. You can do this with the following command:
“port lmode=”
i.e. port 1 lmode=232
When you open a port on the BlueHeat/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. “boot delay=3” is recommended
Save Configuration:
– At this point you should have configured the BlueHeat/Net for basic serial communications. Save the changes and exit: “save” “exit”
QNX6 Host Driver Install:
- Copy the install package to a tmp directory.
- Unzip the package: “gunzip bhnq6*.gz”
- Move to the root directory: “cd /”
- Untar the package: “tar -xvf /bhnq6*.tar
At this point all the required files should exist on your system to run the host driver.
QNX6 Host Driver Configuration:
The BlueHeat/Net comes with an auto configuration utility. It can detect units installed on your network and map the settings over to serial portsdevices on your QNX6 system. If you have already set the IP of your unit(recommended) then to configure the system you simply run the following:
Check for network connection: “ping ” If successful run: “bhnautod 49152 2 > /etc/bhn.conf”
look a the contents of the /etc/bhn.conf file to ensure the unit was detected properly. You should see a BlueHeat/Net unit and each port displayed.
If you run into problems with not being able to reach the unit via ping then consult your manual for network configuration and the steps mentioned in the start of this guide. You may also want to contact your system administrator for network assistance.
QNX6 Host Driver Initialization:
Your system should now be configured to launch the BlueHeat/Net host driver.
You can do so with the following command:
“devc-serbhn -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/serbhn0-X ports now available.
With a loopback connector or Null modem cable you can now test the ports with qtalk to ensure proper communications.
Renaming devices:
The device notation for the BlueHeat/Net is intended to allow you to differentiate between different units on your network. If you wish to use a different device name for a BlueHeat/Net port device you can create an alias (to /dev/serN for example). Here’s how:
ln -P -s /dev/serbhnX-Y /dev/serN
A new device named /dev/serN will link to /dev/serbhnX-Y and should work as normal. In this way you can allow existing programs using specific device names to now use the BlueHeat/Net ports.
More information on various operational modes and configurations is available in the BlueHeat/Net manual available online in our download section of the knowledgebase or on the CD which came with the product.