P1LOT Nano manual

P1LOT Nano manual

Connections, protocol, console and settings. What the board drives, what it reads and how it is configured.

Connections

A USB socket to the computer, which also powers the board, and a six-way terminal block for the parts. The parts run from the 12 V power supply through terminal 1.

  • One CAN connectionInstrument clusters, gear selectors and rotary controllers, up to two at a time, a cluster counting as one. Both parts share the bus, so they must run at the same speed and use the same message set, for example a BMW F- or G-series cluster with an F- or G-series selector or iDrive. The board configures the bus, termination included, from the selected parts.
  • Switched 12 V outTerminal 1 carries 12 V from the supplied power supply to the parts, switched by the board. On with telemetry, off after it, as on P1LOT One.
  • USB to the computerPowers the board and carries all data. The PC sees a serial port and two game controllers of its own, so their buttons never collide with those of a wheel.
  • Two open-drain PWM outputsTerminals 6 and 5. The duty cycle of each follows a telemetry value, and an RC filter converts it to a steady level for a gauge input, such as a fuel level. The outputs switch to ground and supply no power. They take up to 12 V and 500 mA each, behind a 2 Ω protective resistor. Servo motors and servo gauges require P1LOT One.
Specifications
Processor
STM32G0B1KET6N, 512 K flashUpdated over USB from a signed file. A file that fails its check is refused before anything is written, and an interrupted copy brings the update drive back.
Board power
USBThe board runs from the USB port. The parts on the terminal block run from the 12 V power supply, never from USB.
USB
Full speedEnumerates as one virtual COM port and two controllers, a game pad and a second one for the automotive controls.
CAN
1 × classic CAN, built-in terminationRuns at the rate of the parts on it. The 120 Ω termination is set automatically from the selected parts.
Parts
2 at a time, cluster countedA third part is refused, and the board names the two fitted parts. P1LOT Link stops offering parts at two.
Switched 12 V
Terminal 1Switched by the board, from a reverse-polarity-protected 12 V input. No current sense on this model, so the status line's current column is always empty.
Internal measurements
Supply and die temperatureThe 3.3 V supply and the chip's temperature, read continuously from its own sensors, in P1LOT Link.
Signal outputs
2 × open-drain PWMTerminals 6 and 5, each with its own timer and frame. Both are open drain, so each pulls the line to ground and the far end supplies the pull-up. The duty cycle follows the mapped telemetry value. No servo outputs and no 5 V supply.

Terminal block

Six terminals, numbered on the board. Strip each wire, push it in and tighten the screw. Both parts share terminals 1 to 4. The pinout of each supported part is on the product page.

P1LOT Nano from above, logo upright, with each screw of the terminal block ringed in its lead colour and named. From the top, 1 +12 V red, 2 ground black, 3 CAN high orange, 4 CAN low green, 5 PWM out 2 yellow, 6 PWM out 1 purple.
TerminalCarriesGoes to
1+12 V switchedFrom the supplied 12 V power supply, switched by the board. To each part's 12 V pins, and its wake-up pin where it has one
2GroundTo each part's ground pins
3CAN highTo CAN high on both parts
4CAN lowTo CAN low on both parts
5PWM out 2Open-drain PWM that switches to ground. Takes up to 12 V and 500 mA, behind a 2 Ω protective resistor. For a level input such as a fuel gauge, through an RC filter
6PWM out 1Open-drain PWM that switches to ground. Takes up to 12 V and 500 mA, behind a 2 Ω protective resistor. For a level input such as a fuel gauge, through an RC filter

Before wiring

Terminal 1 is a switched rail under firmware control. It is on with telemetry and off 30 seconds after it stops, or after five minutes with the ignition off, whatever is fitted. 12 V on a part's CAN pin can permanently damage the part. Check every wire against the pinout before connecting the power supply.

The status word

The status bits are hex, 0 to 17, one event per bit. P1 column 8 carries b0 and b1, P3 column 11 every other bit. Each cluster shows an event as a warning light or as a message on its display. Several lights can be lit at once, and messages rotate.

  • b00x00001Handbrake
  • b10x00002Traction control intervening
  • b20x00004Check engine
  • b30x00008Stability control off
  • b40x00010Low tyre pressure
  • b50x00020Seat belt
  • b60x00040Steering malfunction
  • b70x00080Transmission malfunction
  • b80x00100Brake malfunction
  • b90x00200ABS malfunction
  • b100x00400Speed warning
  • b110x00800Damage to the car
  • b120x01000Engine overheating
  • b130x02000Oil pressure low
  • b140x04000Launch control
  • b150x08000Gearbox over temperature
  • b160x10000Clutch
  • b170x20000Warning chime. A sound, held for as long as the bit is set

The two fuel lamps, reserve and below reserve, are lit by the board from the fuel level in P3 column 8.

Which events a cluster can show depends on the cluster. A signal with no effect is either not yet decoded, which an update can add, or has no display on that cluster, which no update can add. Contact support for the details of a specific cluster.

The lights

P1 column 7 is a bitfield of the exterior lamps, indicators included, and the console's start-stop, Auto Hold, PDC and exhaust-flap lamps. Every lamp shows what the host sends. The board passes the switches to the game and lights nothing from a press. Both indicator bits together are a hazard flash.

  • b00x01Low beam
  • b10x02High beam
  • b20x04Front fog
  • b30x08Side lights
  • b40x10Automatic-light switch
  • b50x20Left indicator
  • b60x40Right indicator
  • b70x80Start-stop OFF lamp on the console
  • b80x100Auto Hold lamp on the console, and on the G30 panel
  • b90x200Parking assistant (PDC) lamp on the console
  • b100x400Exhaust flap lamp on the console
  • b110x800Rear fog

The dashboard's own buttons

P1 column 10 is an index and not a bitfield. One button at a time, the way a stalk can only be in one place. Send it on every P1 line, as a state, and send 0 when nothing is held.

ValueButtonWhat it is
0—Nothing held
1menuThe board-computer stalk press
2selectEnter
3up—
4down—
5left—
6right—
7back—
8prevAccepted, arrives as up
9nextAccepted, arrives as down

A host and a hand on the rotary controller press these together, and the board merges them. The hand wins while it is holding something. The host restates its field on every line, so a finger on the knob would otherwise be cancelled within 16 ms.

Only the buttons a fitted dashboard has a documented message for do anything. The rest are accepted and dropped rather than guessed at.

DashboardTakes from a host
BMW F30 (6WA), BMW G30 (6WB)menu
Porsche Panamera 970, Porsche Boxster (981)up, down, left, right, select, back
BMW E60, E90menu, from a host only

Service console

Everything a rig is made of and does is set up in P1LOT Link. The console is for service only: the build, the hardware revision, the updater. In P1LOT Link it is hidden. Five clicks on the version under the logo open it. From any terminal, send G1VE_ME_CLI on the port. Commands are lowercase.

G1VE_ME_CLI
help · uname [-a] · echo · clr
The commands, the build and identity of the board, and two shell helpers
save
Keep the whole configuration across a reset
dfu · reset
Reboot into the updater, or just reboot

The status light

Read by its rhythm as much as its colour. A fault lights at full brightness whatever the setting.

Orange, slow hard blink
The board passed its heat limit, 60 °C on P1LOT One and 55 °C on P1LOT Nano, and the rails are off, for at least five minutes and until it is 5 °C under the limit
Red, fast breath
A rail tripped, a bus is off, or a pair was left closed because the parts on it disagree
Slow rainbow
Telemetry is flowing
Pink, 2 s breath
A gap in the telemetry. The cluster holds its last picture
Cyan, 4 s breath
Powered and waiting, rails on
Green, 8 s breath
Asleep, rails off. The next telemetry line wakes it
Blue pulse
The firmware updater

Settings in P1LOT Link

Every value is a word from the list the setting shows, never a number. Settings that belong to a part, such as the three gearbox settings of the gear selector, are shown under that part. The CAN terminators are not settings, because the board switches them to suit the parts on each bus.

cluster units metric · imperial
Speed and temperature units on the cluster. Imperial also gives the F30 and G30 panels a 12-hour clock. Offered while a cluster with the option is fitted
cluster backlight off · on
Backlight from the dashboard's knob in P1LOT Link. On: the dimmer knob on the dashboard sets the brightness of the cluster and every lit part, in place of the game's value. Off: the game sets it. If the dashboard stops reporting the knob, the game has it back. Offered while the Porsche Boxster cluster is fitted
controls mode default · game
Default assigns each control to the first function that can use it: cluster menus, volume, mute, track, play/pause. Remaining controls reach the game. Game sends every control to the game, for binding. Switched from the rotary controller: a press of MEDIA enters game, MEDIA held 2 s returns. This is the stored value
led brightness off · low · medium · high · full
Status light in P1LOT Link. Brightness of the status light on the board. Faults always light at full brightness, so a fault is never hidden
power fixed, not a setting
The rails follow telemetry only and switch off 30 seconds after the last line, whatever is fitted and whether or not a computer is connected. A game left running with the ignition off also switches them off after five minutes, and the next telemetry with the ignition on brings them back. P1LOT Nano does not measure the current it supplies, so it never stays on unattended, and P1LOT Link offers no power setting for it. The rails come up with the first telemetry line
link report off · 1hz · 5hz · 10hz · 20hz · 50hz
The board's own readings sent back as status lines while a game drives it, for a tool of your own. Off by default. P1LOT Link reads the board without it
gearbox mode hold · pulse
Gear buttons in P1LOT Link. Whether an emulated gear is sent as a held button or a single press. Hold suits games that read button state. Pulse suits games that read presses only. Offered while a gear selector is fitted
gearbox sync none · neutral · all
Gear sync in P1LOT Link. Which gears the game may take from the emulated gearbox. None: the selector alone. Neutral: a Neutral the game reports without a break for the timeout. All: any gear the game reports without a break for the timeout, while the selector's own shifts stand at once. Drive always starts in first, as in the car. Offered while a gear selector is fitted
gearbox timeout 1s · 2s · 3s · 5s
Gear sync delay in P1LOT Link. How long the game must report a different gear, counted from the last shift, before it is accepted. One delay for both modes: Neutral under sync neutral, any gear under sync all. Offered while a gear selector is fitted

save, and what survives

Changes take effect at once and last until the next reset. save writes the complete configuration: parts, gauge mappings, control settings, and the rails.

Each store reports its result on its own line, so a failed write is visible. Saved settings live in flash the updater does not touch and survive power cycles and firmware updates, apart from the move from firmware 1 to 2, which starts them fresh. A saved change to the fitted parts applies after a restart.

The two PWM outputs

Terminal 6 is Signal out 1 and terminal 5 is Signal out 2. Both are open drain. They switch the line to ground and supply no power, so they are for signal inputs only. Servo motors and servo gauges require P1LOT One.

Each channel can follow a telemetry value on the board. The value sets the duty cycle, and an RC filter at the gauge converts it to a steady level, for a level input such as fuel. The filter and the pull-up are fitted at the gauge.

Each output has its own timer and frame, from 25 µs (40 kHz) to 65 500 µs. A mapping, set in P1LOT Link, reads the source between two values and sets the duty between two percentages. Fuel from 0 to 100 onto 0 % to 90 % follows the tank from empty to full. A gauge that does not move in proportion takes a table of points, set in Calibrate against the needle. Swap the ends to reverse the direction. Going offline returns every mapped output to its first duty. The sources:

rpm
Defaults to 0…7000rev/min
speed
Defaults to 0…300km/h
gear
Defaults to −3…9P −3, R −2, N −1, then 1 to 9
boost
Defaults to −100…300hundredths of a bar, negative is vacuum
coolant
Defaults to 40…130°C
oil
Defaults to 40…150°C
oilp
Defaults to 0…50tenths of a bar
fuel
Defaults to 0…100%
fuelrate
Defaults to 0…600tenths of a litre per hour
cruise
Defaults to 0…250km/h
limit
Defaults to 0…250km/h
tyre_lf · tyre_rf · tyre_lr · tyre_rr
Defaults to 0…40tenths of a bar, one corner each
bright
Defaults to 0…255the backlight value
ignition
Defaults to 0…100% lit, 100 while the engine runs, a slow 2 s breath in every other state, with no game too. For a lit start button
off
Defaults to —nothing drives the channel

Beyond games

Capabilities of every unit, running the standard P1LOT firmware.

  • On every unit

    Hardware test from P1LOT Link

    The Test bench in P1LOT Link sends the same telemetry as a game and moves every needle and lamp with no game running. A cluster that responds confirms the board and wiring, and places any fault on the PC side.

  • On every unit

    Two parts at once

    A cluster with a gear selector, a cluster with a rotary controller, or the two controls alone, on the one bus. Parts are chosen in P1LOT Link, which stops offering them at two.

  • On every unit

    Driven by any program

    The board takes two short lines of plain text, from any program that can open a serial port: a test rig, a replayed log, a custom script or an automated test.

Integration rules

Rules for any program that drives the board.

  • Keep sendingAt least 2 Hz. After 0.6 s without a line the cluster holds its last values. After 5 s it shuts down and every output parks.
  • Rails follow telemetryOn with telemetry, off 30 seconds after it stops, and switched off on a fault. On P1LOT One with Power set to Auto, a fitted control keeps them on. Read the state back from the status line.
  • Ignore columns you do not knowBoth lines grow to the right only. Split on the semicolon and read the columns needed, without expecting an exact count.
  • Nothing saves itselfA change takes effect at once and lasts until the next reset unless saved with save. P1LOT Link saves for you. Saved settings survive power cycles and firmware updates.

Questions

Why does the board refuse a third part?

P1LOT Nano runs two parts at a time, a cluster counting as one. P1LOT Link stops offering parts at two. The board refuses a third and names the two fitted parts. The protocol answers err;limit. Replacing the fitted cluster with another is not a third part. To fit a rotary controller in place of a gear selector, remove the selector first.

Why is there only one COM port?

One port avoids two identical ports that cannot be told apart. The console is a mode of that port. Send G1VE_ME_CLI on its own line to open the shell. Any line starting with P1 returns the port to telemetry. SimHub sends one with every update, so the link recovers automatically. Closing the port also ends the session.

Can I use the console and stream telemetry at the same time?

No. The console takes the raw byte stream, which makes it a full terminal: characters echo as typed, backspace works, the arrow keys recall history and Tab completes commands. Telemetry resumes when the session closes.

I set the 12 V rail on and it turned itself off. Why?

The rails follow telemetry. They switch on with the first telemetry line and off 30 seconds after the last, once the cluster has shut down, and in power saving also after five minutes of telemetry with the ignition off. On P1LOT One, in the auto power mode a fitted control, such as a rotary controller or gear selector, keeps them on while a computer is connected, for up to a day and no longer than 12 hours after a control was last touched, and in the always mode they never switch off. On P1LOT One, P1LOT Link also holds them on for as long as it is connected. P1LOT Nano is always in power saving. Their state is in the status line’s flags, sent while the link report setting is on.

What happens if the board gets too hot?

Both boards read their own temperature. P1LOT One switches the rails off at 60 °C held for two seconds, P1LOT Nano at 55 °C. They stay off for at least five minutes and until the board is 5 °C under its limit, and the status light blinks orange.

Why does the fuel gauge move slowly when everything else is instant?

A real cluster rejects a fuel level that changes in one jump. The board ramps the level in steps the cluster accepts, so a full sweep takes about two seconds. The level is held when telemetry stops, as in a parked car. Until a host sends a level, the gauge shows half.

Do my settings survive a firmware update?

Yes, and power cycles. Parts, gauge mappings, control settings and rail defaults are stored in flash the updater does not touch. P1LOT Link keeps every change on the board as it is made. A program driving the protocol saves with save, and until then a change lasts until the next reset. The one exception is the move from firmware 1 to firmware 2, which starts the settings fresh apart from the board revision. Set the rig up again in P1LOT Link 2.

How much do I have to send, and how often?

P1 at least five times a second and P3 at least once a second. SimHub sends them 60 and 10 times a second. After 0.6 s without a line the board holds the last values. After 5 s it goes offline, so the cluster shuts down and the needles park. Send every field each time or only those that changed. An empty column keeps the last value.

Can I add support for a part you do not drive?

New parts are added by BrainIOStream. The firmware holds clusters, selectors, consoles, controllers, steering wheels and light switches in one registry, so a new part is one driver and one entry, picked up by the conflict rules, P1LOT Link and the saved setup. The work is in decoding the frames, counters and checksums each part requires. Requests for new parts are welcome through the contact page.

Integration support

The SimHub template is on the downloads page, and the protocol reference is supplied with the board. P1LOT Link is a working implementation of it. Integration questions are answered by the engineers who wrote the firmware.