Monday, March 2, 2015

Tech Tip: Troubleshooting RS-232 command strings to TOA products.

One issue we hear from time to time is that “My Brand X” controller cannot control a TOA product by sending RS-232 commands.

For this example I will refer to a 9000M2 series Matrix / Mixer Amplifier. For you references download this document “9000M2 RS232C Protocol Manual” from:
http://www.toaelectronics.com/products/9000m2-literature.html


I’m going to skip the low level detail and get to the point on how make your control surface work for you.


The 9000M2 is looking for a hexadecimal string that it will read then react to the instructions sent.


Here is an excerpt from the “9000M2 RS232C Protocol Manual”:


  • 5.5 Power ON/OFF
  • This command performs ON/OFF setting of the power switch of the 9000M2 Series
  • Amplifier. 9000M2 Series Amplifier responds with the same data as that received.
  • F4H, 01H, <ON/OFF>
  • Example 1: Setting the power switch to OFF
    • F4H, 01H, 00H
  • Example 2: Setting the power switch to ON.
    • F4H, 01H, 01H
 A common misconception is that the H is required in the command string. However is this case it just noting that F4 is going to be a hexadecimal number. There is not a standard on how to format a HEX string for different control manufactures or terminal programs. So the first step to understand how the device you are working with is going want this string formatted.

All of these examples could be valid to power the 9000M2 off depending on the serial tool you are using.


\xF4\x01\x00


#F4#01#00


[F4][01][00]


And so forth.


My recommendation would be to have the ability to cross check a string with a Terminal Program. This way if the hardware controller does not work but the software terminal does, then you have isolated the issue most likely to how the device in question wants the string formatted.


A key word search on the internet for “RS-232 terminal emulator” will turn up several programs that provide you the ability to send RS-232 to you TOA product.


You may want to try the Hercules Setup Utility from HW Group www.HW-group.com
Download from http://www.hw-group.com/products/hercules/index_en.html

The first information you need is your PC COM Port settings. From the Windows start menu enter “devmgmt.msc” and enter, this will open the Device Manager.

Click on the arrow to expand Ports (COM & LPT), select your Serial cable, right click and select Properties.
Click on the Port Settings tab and note your settings. Once you have the information, click Cancel to close the window.
Start Hercules SETUP Utility and enter COM port information in the Serial menu. NOTE: use default these 2 defaults:
  • HandShake = OFF
  • Mode = Free
Click the Open button to start the session. Note the screen will now display that your serial port is open.
NOTE: This requires you already have a valid RS-232 connection to the 9000M2 or other equipment you are working with.

Now select the Hex check box, in the Send field you would enter the command you would like to send.
For this example enter F4 01 00 including spaces as seen below. Press the Send button; this will result in your 9000M2 turning off.


Now if you were now send F4 01 00 the 9000M2 would turn back on.
We hope you will find this tutorial useful.

Tuesday, February 3, 2015

Tech Tip: How to have an N-8000AF Time Sync to NTP Server

NTP stands for Network Time Protocol, and it is an Internet protocol used to synchronize the clocks of computers to a time reference.
For this to work requires that the N-8000AF can reach the NTP Server on the Internet.
There will different ways of doing this but it is important to note the N-8000 system does require static IP addressing.  In this example, a request was made to the IT administrator to provide a range of static IP address that could get through a networks gateway to the Internet.
By using these static IP addresses the computer programming the N-8000 system and the N-8000AF would be able to reach the NTP time server.


In the N-8000 Programming Software, open to the General > System Settings Tab.
Set the N-8000AF as the Clock Master and NTP Client.
In the NPT Settings enter the NTP Server address, server port and sync time in hundred hours.
If you now saved and uploaded your program file, the N-8000AF would be ready to send and receive time adjustment.

How does NTP handle the daylight savings time switchovers?


The Ability to synchronize to an NTP Time Server is now possible with the latest N-8000 Programming software ver. 4.1.0 and N-8000AF firmware ver. 4.10. This feature will keep a schools bell schedule on time year after year without ever drifting.
Because NTP is based on UTC which does not have a daylight savings time period, a switchover is not necessary inside the NTP system. The operation systems of servers and clients are solely responsible for switching from/to DST.

You will need to enable DST settings in the N-8000 to keep Bell Schedules on time in the US with only a few exceptions.
 
Trouble shooting NTP

Here is are a couple examples of when there was a successful and a not so  successful NTP time adjustment.
At 09:45:30 you see the NTP start and then 09:45:30 NTP Complete. Time adjustment was made and system is working as expected. Now see 14:30:34 and you can that there is an NTP error. Let’s explore how to troubleshoot an NTP error.

  • Check to see if the NTP server is sending a Time Adjustment back. There a number way to test an NTP server, here is a simple to use web site
In this result the NASA server at 198.123.30.132 is not sending back command “adjust time server” as it does for the UCLA server at 164.67.62.194.

NASA NTP Server
29 Jan 20:50:43 ntpdate[16444]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1) server 198.123.30.132, stratum 0, offset 0.000000, delay 0.00000

UCLA NTP Server
29 Jan 20:52:17 ntpdate[16889]: ntpdate 4.2.6p5@1.2349-o Mon May 20 14:24:36 UTC 2013 (1) server 164.67.62.194, stratum 1, offset 0.005516, delay 0.19301
29 an 20:52:32 ntpdate[16889]: adjust time server 164.67.62.194 offset 0.005516 sec

Tech Tip: First test to see if the NTP server is sending back a time adjust. If it is and you are still getting an error proceed with these instructions.  Test the NTP Server using the same PC that is programming the N-8000 System. For example if your N-8000AF is set to 10.10.1.10 you should be able to set a PC to that same static IP address and see it get a valid return. Also disconnect the N-8000AF when doing this test so there is not an IP conflict.

  • Check the N-800AF firmware version
    • On the N-8000AF open the browser page to System Management and verify the firmware version is 4.10 or later.
NTP Server Resource
This link will provide a database of possible NTP servers worldwide.
http://support.ntp.org/bin/view/Servers/WebHome

As of this writing these two servers have been tried with success:
UCLA NTP server in UCLA (164.67.62.194)
NTP Server Port 123

Internet Multifeed (MFEED) –Japan (210.173.160.57)
NTP Server Port 123

NOTE: The NTP Server Port will always be 123 for all NTP servers.