PicoTuner Ethernet Interface

From BATC Wiki
Revision as of 09:26, 23 July 2024 by G4EWJ (talk | contribs)
Jump to navigation Jump to search

In progress . . .

PicoTunerWH (PicoTuner in WinterHill mode)

PicoTuneWH is software for the BATC PicoTUner.

When the standard USB connected PicoTuner is replaced by a WIZnet W5100S-EVB-Pico or W5500-EVB-Pico module, this provides two receivers which can be controlled over the Ethernet connection and can send the received transport streams via the Ethernet connection, similar to a WinterHill.

W5100s-evb-pico-2.png

Quick Start

In case of problems, or to find the PicoTunerWH IP address, see the section on the broadcast packet below.

The LNB voltage is turned on automatically at power up. If LNB voltage is not required, remove the LNB voltage jumpers on the PicoTuner pcb.

If the software loaded is not the correct version for the type of Pico board, the Pico and activity LEDs will repeatedly flash NO in morse (-. ---)

Connect an Ethernet cable.

Load the W5100S or W5500 .uf2 file, depending on the type of Pico board.

QuickTune Setup and VLC reception

Send tuning commands to ports 9921 and 9922.

Receive transport streams on ports 9941 and 9942.

Info streams are available on ports 9901 and 9902 (duplicated on 9903 and 9904).

Add 4 to these port numbers if the base IP address has been changed by grounding GP28.

whpcviewer (on the BATC WinterHill Wiki) is a multi TS viewer for the WinterHill.

whpcrxcom (on the BATC WinterHill wiki) can be used to send receive commands.


Overview

There is no transport sream transfer by USB. A USB connection is not required.

There are different .uf2 files for W5100S-EVB-Pico and W5500-EVB-Pico modules.

There is a debug facility over the USB serial port.

This software is compatible with OpenTuner (0.B).

Network multicast is not supported.

A broadcast packet with device and receive info is transmitted every second on port 9997, even if DHCP is unsuccessful.

If you do not have a WinterHill, see the BATC Wiki, particularly the Documentation and PC Software sections.

Finding the IP Address

See the section on the broadcast packet below.

LNB PSU Output

The LNB PSU is turned on by default at startup. If you do not want LNB voltage, make sure the LNB PSU jumpers are not fitted on the PicoTuner board.

Software Loading

Connect the USB port to a PC.

Apply power to the PicoTuner while holding down the BOOTSEL button on the Pico board.

On a Pico with two buttons, this is the button nearer the USB socket. The other button is RESET, which can be pressed while holding down the BOOSEL button.

A virtual disk drive window will open on the PC. Copy the appropriate .uf2 file to it. The PicoTuner will restart.

Required Equipment

BATC PicoTuner board or BATC MK2 MiniTiouner with FT2232H replacement board.

WIZnet W5100S-EVB-Pico or W5500-EVB-Pico module.

The Pico + WIZnet Ethernet hat combination should not be used because of voltage regulator issues and the hat is too short to reach the end panel in the BATC PicoTuner.

Basic Operation

Connect an Ethernet cable.

Load the W5100S or W5500 .uf2 file, depending on the type of Pico module.

At power up, the Pico and activity LEDs flash HI in morse as a confidence check.

It is possible to connect to the USB serial port to see debugging and receiver information - see below.

An IP address must be obtained by DHCP at startup. After this, the Ethernet cable can be unplugged and plugged.

Each receiver activity LED is steady on when no stations are being received, otherwise it flashes at a speed relative to the TS data rate.

This can be changed by sending a remote command - see below.

If the software loaded is not the correct version for the type of Pico module, the Pico and activity LEDs will repeatedly flash NO in morse (-. ---)

Parameters

The maximum symbol rate of a single channel is about 10M.

The maximum network throughput is about 16M bits/s. Note that 10MS, FEC 3/4 gives 15M bits/s.

Network multicast mode is not possible.

The Base IP Port is 9900.

If you already have a WinterHill, the Base IP Port can be changed to 9904. This provides receivers 5 and 6.

To do this, on a PicoTuner board, on the 10 pin GPIO header, connect pin 8 counting from the right (GP28) marked 28, to pin 10 (GND) marked G. Alternatively, put a jumper on Pico pins 33-34 (grounding GP28). Reboot.

The Base IP Port can also be changed to other values by sending a command over Ethernet. See below.

Working with a WinterHill

If you already have a WinterHill, the PicoTunerWH can be set to emulate a second one.

Apply the jumper as descibed in the Parameters section above to make the PicoTunerWH receivers 5 and 6.

Add receivers 5 and 6 to the QuickTune configuration, with the PicoTunerWH IP address.

On whpcrxcom, CTRL-R will expand it to 8 receivers. Set the second IP address for the PicoTunerWH.

Contact G4EWJ for a 16 screen version of whpcviewer.

The Pico and activity LEDs will flash HI in morse (.... ..)

There is a three second pause for initialisation.

The Pico then attempts to get an IP address via DHCP.

The Pico and PicoTuner activity LEDs do a single blink every second when waiting for a physical Ethernet link.

The LEDs do a double blink every second when waiting for a DHCP address.

The Pico LED is steady on when DHCP is successful.

If the LNB LO is 9750MHz and powered by the PicoTuner or otherwise, the activity LEDs will start flashing after a few seconds, indicating double reception of the beacon.

The received transport stream (TS) data will not be sent anywhere, until a command is received.

QO-100 Frequency Self Calibration

After startup, the first receiver is set to the QO-100 beacon and does the calibration. Two seconds later, the second receiver is set to the beacon. If the LNB has an LO other than 9750MHz, put the beacon on receiver 1 manually.

Ethernet MAC and Host Name

The WIZnet chip does not contain a MAC number (network hardware ID).

A MAC is formed at startup using the 3 byte WIZnet manufacturer prefix and the lower three bytes of the Pico serial number.

E.g. 28:CD:C1:41:97:2E

The lower three bytes of the Pico serial number are also used to form the host name.

E.g. PicoTunerWH-41972E

The host name will be shown in 'attached devices' in the router and possibly when using IP scanners.

DHCP

==

The DHCP flow can be viewed by connecting to the USB serial port just after power up.

An IP address must be obtained at startup. After this, the Ethernet cable can be unplugged and plugged.

The Pico and activity LEDs do a single blink every second when waiting for a physical Ethernet link.

The Pico and activity LEDs do a double blink every second when waiting for a DHCP address.

The Pico LED is steady on when DHCP is successful.

The DHCP status is displayed over the USB serial port and in the broadcast packet.

If the Ethernet link is lost, the Pico and activity LEDs will display the DHCP status, as above.