06.01.2015 Views

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

INfinity 510 Protocol Reference Guide - Sirit

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11 - Com Namespace<br />

com.serial.baudrate<br />

This variable contains the baud rate for serial communication.<br />

The following example returns the serial port’s baud rate. To set the baud<br />

rate, use the com.serial.set() function.<br />

>>> com.serial.baudrate<br />

ok 115200<br />

Type<br />

Permissions<br />

Data Type<br />

var<br />

guest=r,admin=r<br />

enum<br />

Default 115200<br />

Enum 115200 57600 38400 19200 9600 4800 2400 1200<br />

com.serial.console<br />

This function sets the program that will run on the serial console.<br />

Call this function with the NONE parameter to disable running a program on<br />

the serial console. Note that if the console is diabled by this command, an<br />

ok response is not issued on the serial console.<br />

The following example disables running a program on the serial port<br />

>>> com.serial.console(program=none)<br />

Type<br />

Permissions<br />

Parameters<br />

function<br />

guest=-,admin=x<br />

program (enum definitions.enum.console.program)<br />

100 <strong>INfinity</strong> <strong>510</strong> <strong>Protocol</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!