Documentation

/NGOS

/Signals

/Shells

/Cmds

/Ctrl

/HALs

/Conf

/Params

/Behaviors

/DSL

/GPS

Next Chapter

The NG DSL Receiver Support

Introduction

ACT produces great cheap and expensive PPM, PCM, SPCM and 2.4GHz receivers with and without Telemetry support and most of them have a DSL interface.

Example of an ACT receiver port for the DSL protocol.

dsl pinout

The connections have to be wired straigth (not crossed).

Besides the above the NG allows you to connect an ordinary receiver with sum-signal output or an ACT 4+2XS 2.4GHz sum-signal receiver from ACT.

How to use ACT DSL or ACT S3D DSL

DSL is a simple serial protocol. To support DSL on an UART you simply switch the UART's baud rate to 38400 baud with the command set HW.uart1.baud 38400. After that, be sure to store the configuration with conf store .

Now reset your NG using the reset button, by power-cycling it or by issuing the reboot shell command.

Having configured UART1 to 38400 baud you are now able to connect your DSL receiver to that UART. The NGOS should automatically detect the DSL receiver and it should start to show up when issuing the command show devices similar to this:

You should be able to check the DSL receiver's status with the command print dsl status:

You should also be able to see the received with the command print dsl channels:

{i} This is not always the signal that the closed-loop controllers will receive! What they receive depends on the configuration of the global variables RC.dev.mix, RC.dev.primary and RC.dev.secondary.

How to handle RC devices

Primary and Seconday RC Devices

To to be able to define the different mix-modes, a primary and secondary RC device need to be defined. The global variable RC.dev.primary and RC.dev.secondary define the devices used. Both of them can have the values rcsum, uart0 and uart1. Here uart0 and uart1 represent DSL receivers connected to UART0 or UART1.

RC Mix Mode

The global variable RC.dev.mix defines the RC device mix-mode used. It has thee possible values primary, secondary, ts-mix, ts-switch and diversity.

Mix Mode: primary / secondary

In mix-mode primary the primary RC device defined by RC.dev.primary gets used for control. In mix-mode seconday the secondary RC device defined by RC.dev.secondary gets used for control.

Mix Mode: ts-switch

In mix-mode ts-switch the primary device defined by RC.dev.primary gets used first which is the teacher control. As soon as the behavior action rc.trainer.mode(0) gets triggered by a behavior condition, control gets switched to the secondary device defined by RC.dev.secondary. Now the student has control. As soon as the behavior action rc.trainer.mode(1) gets triggered by a behavior condition on the teacher's control, control gets switched back to the the teacher and his primary device defined by RC.dev.primary.

Mix Mode: ts-mix

In mix-mode ts-mix the primary device defined by RC.dev.primary and the secondary device defined by RC.dev.secondary get mixed continuously together to one control signal when gets used.

Mix Mode: diversity

Mix-mode diversity is possible when using two DSL receivers only. Only DSL receivers allow to know the signal quality of each received signal, which makes diversity possible. The control signal gets built from the cumulative signal of the two DSL receivers.

see Signals section

How to use ACT M-Bus Telemetry

Introduction

M-Bus/MSB/M-Link is a bus system. This means that you can attach several different sensor devices to the same bus. In the case when an NG is used in a M-Bus/MSB/M-Link bus system, NGOS can be configured which M-Bus/MSB/M-Link addresses to use and which to leave free.

Should an external sensor be used alongside the NG on the same bus, then the address of that external sensor has to be left free in NGOS, or the two will collide while trying to answer the same address!

Full NGOS support for M-Bus/MSB/M-Link is available since NGOS-0.64.

The NG/M-Bus Cable

To attach your receivers M-Bus/MSB/M-Link to your NG you need to build a cable. The cable connects the TX/RX lines of an UART to to single wire needed for the M-Bus/MSB/M-Link.

Such a NG/M-Bus Cable is built like this:

Preparing NGOS for M-Bus Telemetry

NGOS can not automatically detect baud rate and M-Bus activity. Because of that you need to configure your UART you want to use for 38400 baud and for M-Bus usage. This is done like this:

When your NGOS has finished rebooting, attach the receiver using the above NG/M-Bus cable to the choosen UART (UART1 in the above example). Eventually your NG will reboot a second time when attaching the receiver as they sometime use too much power while powering up which reboots the FC.

Afterwards you can check if your NGOS correctly sees and uses the M-Bus/MSB/M-Link interface. You should see the M-Bus/MSB/M-Link parser as running task and you see the M-Bus/MSB/M-Link in the device table.

Configuring the available M-Bus Sensor Slots

Next you need to configure what sensor data you want to see in which sensor slot. By default all slots are free.

You can configure each M-Bus/MSB/M-Link sensor slot to contain an arbitrary data value. To see all available data values issue a set command:

You can then configure the available slots as you like:

Afterwards check your M-Bus/MSB/M-Link sensor slot definitions and store them:

Reveiving M-Bus Telemetry on the ground

To receive M-Bus/MSB/M-Link telemetry on the ground you need telemetry hardware.

Multiplex Telemetry

In the case of Multiplex senders, the sender itself can display the received sensor data.

ACT Telemetry

In the case of ACT senders, you can attach a device called UPD to the sender's S-Bus which will display the received data.

Documentation/DSL (last edited 2012-01-25 22:38:45 by AmirGuindehi)