Skip to content

Network Provisioning

Sid Price edited this page Aug 21, 2019 · 7 revisions

ctxLink provides two methods of configuring its connection to the wireless network; Wi-Fi Protected Setup (WPS) and HTTP Provisioning. The type of configuration is selected with the Mode button and is indicated by the Mode LED.

Wi-Fi Protected Setup

To enter WPS mode press and hold the user button for between 3 and 5 seconds. When the button is released the Mode indicator LED will flash 3 times quickly followed by a longer off period. This pattern is repeated until there is a mode change.

While ctxLink is in WPS mode, press the WPS button on the Wi-Fi access point. Once ctxLink is configured and connected to the access point the Mode LED will flash 2 times quickly followed by a longer off period. This pattern is repeated until there is a mode change.

HTTP Provisioning

To configure ctxLink with this mode a wireless device such as a phone or tablet is required.

To enter HTTP Provisioning mode press and hold the user button for between 5 and 7 seconds. When the button is released the Mode LED will flash 4 times quickly followed by a longer off period. This pattern is repeated until there is a mode change.

While ctxLink is in this mode, go to the wireless settings of the phone or tablet and connect to ctxLink, which is now acting as an access point. The network name of the ctxLink access point is ctxLink-AP. If you are prompted to log in to the access point click on the prompt.

A web page should appear that looks like this:

Enter the name of the wireless network you wish ctxLink to use in the "Network Name" field. If the network requires a pass-phrase enter it into the "Pass phrase" field.

If you cannot remember the name of the network press the "Detect Device" button to see a list of available networks:

Tap on the network you wish WDBP to use and enter any required pass phrase into the "Pass phrase" field.

Once the network Name and any required pass phrase are entered tap on the "Connect" button. ctxLink will then provision itself on the selected network.

IP Address Discovery

Once ctxLink is provisioned the assigned IP address must be discovered and noted for use with the debugger of choice.

Each ctxLink has the Hardware MAC ID printed on the label of the wireless module. Note the last four digits of the address for later reference.

Using ARP

Most host computers have a command "arp" that may be executed to display a list of IP addresses in the arp-cache. THis command may be used to discover the IP address allocated to ctxLink.

On Windows open a command prompt and enter the command "arp -a." This will display the list of IP addresses for know hardware IDs:

In the above example the last four digits of the ctxLink are "46-B0" and the IP address is "192.168.0.34."

Note: If the hardware ID of ctxLink does not appear after the "arp -a" command the following command may be used to refresh the ARP cache, substitute the first three octets with those of your computer's IP address. For example, if your computer is 192.168.0.10, use 192.168.0.255 :

ping xxx.xxx.xxx.255

Using a phone

An app is available for both iOS and Android named "Net Analyzer" that may be used to discover the IP address of ctxLink. The vendor name of the wireless module MAC address is "Newport Media" (Microchip purchased this company). Confirm the IP address by search for the last four digits of the MAC address and/or the vendor name "Newport Media."

Link to iOS app.

Link to Android app.