Please enable JavaScript to view this site.

winIDEA Help

Version: 9.21.242

Navigation: FNet communication network > How-to guides

Scroll Prev Top Next More

Target power control using BlueBox & ADIO

In this topic:

Requirements

Configuration steps for ADIO Add-on module

Configuration steps for mDIO module

Python script example

 

 

Introduction

This topic explains how to utilize a solid state relay in combination with BlueBox and its accessories to gain control of the connected target's power source. The Python script can be used to control the power state of a connected embedded target. It is useful when the power-cycle of the target device is needed.

 

 

Requirements

winIDEA

BlueBox

SSR - Solid state relay

Power control pin which controls the SSR input side of the relay:

oOutput from ADIO Add-on module or

oBlueBox mDIO module

 

 

Applications

If you would like to toggle the target's power supply adapter which is powered from mains voltage, AC solid state relay should be used. If the solid state relay is not galvanically isolated, risk of damaging the power control pin by target is possible. Also, if the power control pin does not satisfy input specification of solid state relay, risk of damaging power control pin is still possible.

 

When the target is powered through a DC power supply (e.g. 3.3V, 5V, 12V, 24V), a DC solid state relay should be used. If the solid state relay is not galvanically isolated, risk of damaging the power control pin by target is possible. Also, if the power control pin does not satisfy input specification of solid state relay, risk of damaging power control pin is still possible.

 

Power control pin

To control the relay, a digital pin is required which will control the power of SSR. Usage of ADIO or mDIO module is suggested.

 

 

Configuration steps for ADIO Add-on module

Use the ADIO to control the power of a currently connected target.

 

number1

Connect...

ADIO to the BlueBox via the FNet cable;

Target to the SSR relay output according to following schemas:

 

acapplication1_zoom50

dcapplication_zoom50

AC Application

DC Application

 

number2

Connect one channel from ADIO (e.g. D0_0) to the solid state relay input side:

If a solid state relay supports 3.3V input drive, connect it to any ADIO bank.

In case, where a solid state relay needs a 5V input drive, make sure that it is connected to ADIO bank 2 or 3 (other banks support up to 3.3V levels).

 

Warning_orange

Make sure the Grounding wire is connected.

 

number3

Provide Network description and configure ADIO.

 

Number4

Configure fields according to your connected setup in the DIO page.

Make sure that Direction is set to OUT.

 

Target-power-control-dio-config

 

Number5

Open View / HIL Monitor / View.

 

number6

Start a Debug session.

 

number7

Toggle ADIO channel which is wired to the SSR by changing Value on HIGH / LOW.

Solid state relay should be turned on / off, depending on the value set. If you have the target connected to solid state relay output terminals, target should also be powered on / off, depending on the Value of ADIO output pin.

 

 

 

Configuration steps for mDIO module

Use the mDIO module (Active Probes, iC7mini, iC7pro and iC7max) to control the power of the currently connected embedded target.

 

number1

Connect...

ADIO to the BlueBox via the FNet cable;

Target to the SSR relay output according to following schemas:

 

acapplication1_zoom50

dcapplication_zoom50

AC Application

DC Application

 

number2

Connect one channel from ADIO (e.g. D0_0) to the solid state relay input side:

If a solid state relay supports 3.3V input drive, connect it to any ADIO bank.

In case, where a solid state relay needs a 5V input drive, make sure that it is connected to ADIO bank 2 or 3 (other banks support up to 3.3V levels).

 

Warning_orange

Make sure the Grounding wire is connected.

 

number3

Provide Network description and configure ADIO.

 

Number4

Configure fields according to your connected setup in the DIO page.

Make sure that Direction is set to OUT.

 

Target-power-control-dio-config

 

Number5

Open View / HIL Monitor / View.

 

number6

Start a Debug session.

 

number7

Toggle ADIO channel which is wired to the SSR by changing Value on HIGH / LOW.

Solid state relay should be turned on / off, depending on the value set. If you have the target connected to solid state relay output terminals, target should also be powered on / off, depending on the Value of ADIO output pin.

 

 

Python script example

Download and unzip the script example via the link: powerCycle.7z

Follow these steps to run the script in winIDEA:

 

number1

Modify the attached script according to the required configuration.

 

number2

Save it in the same folder as winIDEA workspace.

 

number3

Connect solid state relay to ADIO the same way as described in the Python script configuration.

 

Number4

Start a Debug session.

 

Number5

Select your Python script in Tools / External Scripts.

target-power-control-

 

i-icon

To see if your selected solid state relay is SSR used in this example with ADIO please refer to the User Manual. SSR used in this example:

AC Relay example 528-6210BXXTZB-DC3

DC Relay example 874-84137750

 

 

More resources

DIO

HIL Monitor

Copyright © 2024 TASKING Germany GmbH