
2G HD over IP Dealer Support Manual –Page 6
©2011 Just Add Power Cardware Co, Inc. All rights reserved. Unauthorized use or disclosure prohibited. V1.2
Advanced Controls Overview:
This section of the Dealers Manual document describes the advanced commands which can be used with the
Just Add Power 2G processor console. The 2G processor uses Linux OS and the console is driven by a BusyBox
shell. The debug console is set to UART port 2 using baud rate at 115200-8n1 (requires a special cable to
connect to the PCB). Through console APIs, developers can control certain 2G firmware features and functions
Notation:
• Console commands starting with "$": Means they are global console commands. This kind of command is
executed under Linux shell console from any location.
• Console commands starting as "$./": Means they are exclusive console commands and must be executed
within the path "/usr/local/bin". These commands must be prefaced with “./” (dot-slash).
How to Access the Console:
There are two ways to access the console:
1. UART2 debug port on the 2G printed circuit board: It is a RS232 interface using 115200-8n1 baud rate
settings. Developers can attach to this debug port to access console. This RS232 Console port requires a special
cable.
2. Use telnet: Every 2G Transmitter/Receiver has Telnetd and a telnet client built in (port 24 is the open port,
„root‟ is the userid, and there is no password). Developers can use one 2G telnet client to connect to any other 2G
board on the same VLAN or write their own program using telnet protocol to connect to any 2G board through an
Ethernet network.
How to determine the 2G board's IP address:
The 2G firmware default setting is for "autoip" mode and uses the 169.254.xxx.xxx private IP domain range. The
IP of target 2G boards is resolved by its hostname using mDNS protocol. If you have access to the InstallerPro
software utilities (licensed separately) It is possible to use “static IP” or “DHCP” instead of “autoip”, but it is not
recommended for most users. If a developer chooses “static IP” or “DHCP”, they must be responsible to maintain
their own IP mapping to know which 2G board is using which IP address. When using the recommended “autoip”
mode there are several supported methods available to resolve the IP addresses:
1. 2G Receiver‟s HDMI GUI: The 2G Receiver‟s HDMI GUI will display the Receiver‟s IP address and the
connected Transmitter‟s IP address.
2. Console APIs: Two console APIs are provided:
a. astresname: use this command to resolve a target's IP address by providing target‟s hostname.
b. node_list: use this command to list all found 2G boards' hostname and IP address.
3. Use mDNS protocol tools. For example:
a. Bonjour: http://developer.apple.com/networking/bonjour/ or
http://www.science.uva.nl/research/air/wiki/mDNSResponderInstallation
b. pyZeroConfig: http://sourceforge.net/projects/pyzeroconf/files/