Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
import pykarbon.terminal as pkt
def callback_fn(arg):
if arg[3] == '0': #check if 3rd item from popdata() is 0
print("DI 3 --> LOW ", arg)
return True #return True to dev.set_do. sets output high
else: #if 3rd item from popdat() is anything other than 0
print("DI 3 --> HIGH", arg)
return False #return Flase to set_do. sets output low
i = 0
with pkt.Session() as dev:
dev.update_info(print_info=True) # Update and print configuration info
dev.set_do(0, False) # Set digital output zero low
while True: #create loop that runs forever
line = dev.popdata() #popdata will print out data in the queue
if line:
dev.set_do(0, callback_fn(line)) #returns data from queue as argument for use by callback_fn




Installation Guide for Cincoze URM01 rackmount adapter kit (8.4" to 21.5" Panel PCs)
This guide outlines the steps for returning your OnLogic system for warranty repair.






dmidecode -s system-serial-numbercat /sys/devices/virtual/dmi/id/product_serial
Deploying the OnLogic Axial Edge Server with Intel 13th Gen Core i Processors and Intel Arc dGPU for video streaming to AWS Kinesis Video Streams
Applicable to: K300 / K700 series systems
Set up, test, and establish serial communication between devices on Windows and Linux, including loopback testing and pinout verification.



pip install pykarbonpythonimport pykarbon.pykarbon as pkdev = pk.Karbon()dev.show_info()dev.close()version
Description:
Reports the firmware version number and build date.
Uses the format: < version | date >
Parameters:
-
Example:
versionstatus
Description:
Reports the firmware version number and system dependent status
information.
Parameters:
-
Example:
statusget-voltage
Description:
Reports the current system input voltage.
This command is currently only available on the K700.
Parameters:
-
Example:
get-voltageconfig
Description:
Reports the current microcontroller configuration settings.
Parameters:
-
Example:
configsave-config
Description:
Saves any changes made.
This is a required step or any changes will revert after reboot. user-config [config-number]
Description:
Sets the currently active user configuration.
Parameters:
config-number --> The configuration number: 1 - 4
Example:
user-config 2set ignition-sense [enable]
Description:
Enables or disables ignition sensing. The system will turn on when
the ignition pin goes high, and power off if the pin falls for more
than the specified shutdown-timer.
This is achieved by emulating a front power button press, and can be
interrupt by the OS. Therefore, after the hard-off timer has expired,
the system will force a power down.
Parameters:
enable --> Enable or disable: 'on' or 'off'
Example:
set ignition-sense offset startup-timer [time]
Description:
Sets the delay before the system powers on after detecting ignition.
Parameters:
time --> Time delay in seconds: 0 - 9999 (s)
Example:
set startup-timer 15set shutdown-voltage [volts]
Description:
Designed to protect automotive systems from battery drain, the system
will turn off the input voltage drops below this level for more than
the specified shutdown-timer.
This is achieved by emulating a front power button press, and can be
interrupt by the OS. Therefore, after the hard-off timer has expired,
the system will force a power down.
Setting this voltage to a value of '6' or less disables the feature.
Parameters:
volts --> The low voltage shutdown level: 0 - Max System Voltage (V)
On the K700 this value may be a float (12.5, 19.2) but is
required to be an int (12, 19) on the K300.
Floating point shutdown voltages will be added to the K300 as
part of a future firmware update.
Example:
set shutdown-voltage 12set hotplug [enable]
Description:
Enables or disables display port hotplug detection.
Disabling hotplug detection will keep displays from re-arranging if a
monitor goes down. When disabled, the host will assume that all
displays are always connected.
Parameters:
enable --> Enable or disable: 'on' or 'off'
Example:
set hotplug onset shutdown-timer [time]
Description:
Sets the delay before the system powers off after ignition falls or
the system voltage drops below the safe level.
Parameters:
time --> Time delay in seconds: 0 - 9999 (s)
Example:
set shutdown-timer 20set hard-off-timer [time]
Description:
Sets the delay until the system forces a power off after ignition
falls or the system voltage drops below a safe level.
Parameters:
time --> Time delay in seconds: 0 - 9999 (s)
Example:
set hard-off-timer 150set boot-config [true | false]
Description:
Determines which user configuration is loaded when the system is
first connected to AC power. Only one configuration may have this
value set as true.
By default, user configuration one is loaded at boot.
Parameters:
true | false: If the config is loaded at boot: 'true' or 'false'
Example:
set boot-config trueset low-power-mode [on | off]
Description:
Enable or disable entering low power mode (ERP mode), after the system has been shutdown. On K700 systems, when both this feature and ignition-sense are enabled, the system will enter a 'very low power mode' and will only wake via ignition events.
Parameters:
on | off: If the system will enter low power mode: 'on' or 'off'
Example:
set low-power-mode oncan-message [id] [data]
Description:
Formats and sends a standard can data frame.
Parameters:
id --> The message id. A three character hex string (1 - 7FF)
data --> Data to transmit: A sixteen character hex string.
Example:
can-message 123 1122334455667788can-autobaud
Description:
Attempts to detect the baudrate and propagation delay of the bus.
This is achieved by sending messages with the id 7FF, and may not
work in every possible configuration.
To maintain a detected baudrate across hard power cycles, please see
the 'save-config' terminal command.
Parameters:
-
Example:
can-autobaudset can-baudrate [baud]
Description:
Sets the baudrate for CAN bus communication.
To maintain a set baudrate across hard power cycles, please see the
'save-config' terminal command.
Parameters:
baud --> The system baudrate, in thousands: 100 - 1000 (k)
Example:
set can-baudrate 1000dio-state
Description:
Reports the current logical states of the digital inputs/outputs.
This is represented by eight characters, each a '1' or '0'.
The bit order is: I0 - I1 - I2 - I3 - O0 - O1 - O2 - O3
Where 'I' is a digital input and 'O' is a digital output.
For example: 10010110
Parameters:
-
Example:
dio-stateset-do [value]
Description:
Sets the output state of the four digital outputs.
Parameters:
value --> A four character string of '1', '-' or '0'.
A '1' or '0' will set the output to the corresponding state,
while a '-' will not change the sate of the matching output pin.
Example:
set-do 0--1set dio-power-switch [enable]
Description:
When enabled, any of the front digital inputs can be used to power
the system on. Once the system is powered on, they will behave as a
typical digital input.
Parameters:
enable --> Enable or disable: 'on' or 'off'
Example:
set dio-power-switch on
Applicable to: Karbon 700 & Helix Series





















































