DUNE: Uniform Navigational Environment
2017.01.0
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
~Task (void) | |
void | onUpdateParameters (void) |
void | consume (const IMC::PowerChannelState *msg) |
void | onResourceAcquisition (void) |
void | onRequestActivation (void) |
void | onRequestDeactivation (void) |
void | controlPower (IMC::PowerChannelControl::OperationEnum op) |
void | turnPowerOn (void) |
void | turnPowerOff (void) |
bool | isPowered (void) |
bool | connect (void) |
bool | disconnect (void) |
bool | isConnected (Address *address=NULL) |
void | startNAT (void) |
void | stopNAT (void) |
void | updateStateMachine (void) |
void | onMain (void) |
Public Attributes | |
Arguments | m_args |
std::string | m_command_connect |
std::string | m_command_disconnect |
std::string | m_command_nat_start |
std::string | m_command_nat_stop |
bool | m_powered |
StateMachineStates | m_sm_state |
Address | m_address |
Time::Counter< double > | m_conn_watchdog |
|
inline |
References Transports::MobileInternet::Arguments::code_presentation_mode, Transports::MobileInternet::Arguments::gsm_apn, Transports::MobileInternet::Arguments::gsm_mode, Transports::MobileInternet::Arguments::gsm_pass, Transports::MobileInternet::Arguments::gsm_pin, Transports::MobileInternet::Arguments::gsm_user, Transports::MobileInternet::Arguments::ip_fwd, m_args, m_command_connect, m_command_disconnect, m_command_nat_start, m_command_nat_stop, m_conn_watchdog, Transports::MobileInternet::Arguments::power_channel, Transports::MobileInternet::Arguments::ppp_interface, and Transports::MobileInternet::Arguments::uart_dev.
|
inline |
References disconnect().
|
inline |
References Transports::MobileInternet::Arguments::code_presentation_mode, Transports::MobileInternet::Arguments::gsm_apn, Transports::MobileInternet::Arguments::gsm_mode, Transports::MobileInternet::Arguments::gsm_pass, Transports::MobileInternet::Arguments::gsm_pin, Transports::MobileInternet::Arguments::gsm_user, m_args, and m_command_connect.
Referenced by updateStateMachine().
|
inline |
References m_args, m_powered, and Transports::MobileInternet::Arguments::power_channel.
|
inline |
References m_args, and Transports::MobileInternet::Arguments::power_channel.
Referenced by turnPowerOff(), and turnPowerOn().
|
inline |
References m_command_disconnect.
Referenced by updateStateMachine(), and ~Task().
|
inline |
References m_args, and Transports::MobileInternet::Arguments::ppp_interface.
Referenced by updateStateMachine().
|
inline |
Test if power channel is on.
References m_powered.
Referenced by updateStateMachine().
|
inline |
References updateStateMachine().
|
inline |
References m_sm_state, Transports::MobileInternet::SM_ACT_BEGIN, and updateStateMachine().
|
inline |
References m_sm_state, Transports::MobileInternet::SM_DEACT_BEGIN, and updateStateMachine().
|
inline |
|
inline |
References m_args, m_powered, and Transports::MobileInternet::Arguments::power_channel.
|
inline |
References Transports::MobileInternet::Arguments::ip_fwd, m_args, and m_command_nat_start.
Referenced by updateStateMachine().
|
inline |
References Transports::MobileInternet::Arguments::ip_fwd, m_args, and m_command_nat_stop.
Referenced by updateStateMachine().
|
inline |
|
inline |
|
inline |
References connect(), disconnect(), isConnected(), isPowered(), m_address, m_args, m_conn_watchdog, m_sm_state, Transports::MobileInternet::Arguments::power_channel, Transports::MobileInternet::SM_ACT_BEGIN, Transports::MobileInternet::SM_ACT_CONNECT, Transports::MobileInternet::SM_ACT_CONNECTED, Transports::MobileInternet::SM_ACT_CONNECTING, Transports::MobileInternet::SM_ACT_DONE, Transports::MobileInternet::SM_ACT_MODEM_WAIT, Transports::MobileInternet::SM_ACT_POWER_ON, Transports::MobileInternet::SM_ACT_POWER_WAIT, Transports::MobileInternet::SM_DEACT_BEGIN, Transports::MobileInternet::SM_DEACT_DISCONNECT, Transports::MobileInternet::SM_DEACT_DONE, Transports::MobileInternet::SM_DEACT_POWER_OFF, Transports::MobileInternet::SM_DEACT_POWER_WAIT, Transports::MobileInternet::SM_IDLE, startNAT(), stopNAT(), turnPowerOff(), turnPowerOn(), and Transports::MobileInternet::Arguments::uart_dev.
Referenced by onMain(), onRequestActivation(), and onRequestDeactivation().
Address Transports::MobileInternet::Task::m_address |
Interface IPv4 address.
Referenced by updateStateMachine().
Arguments Transports::MobileInternet::Task::m_args |
Task arguments.
Referenced by connect(), consume(), controlPower(), isConnected(), onUpdateParameters(), startNAT(), stopNAT(), Task(), and updateStateMachine().
std::string Transports::MobileInternet::Task::m_command_connect |
std::string Transports::MobileInternet::Task::m_command_disconnect |
Stop command.
Referenced by disconnect(), and Task().
std::string Transports::MobileInternet::Task::m_command_nat_start |
Start NAT command.
Referenced by startNAT(), and Task().
std::string Transports::MobileInternet::Task::m_command_nat_stop |
Time::Counter<double> Transports::MobileInternet::Task::m_conn_watchdog |
Referenced by Task(), and updateStateMachine().
bool Transports::MobileInternet::Task::m_powered |
True if modem is powered on.
Referenced by consume(), isPowered(), and onUpdateParameters().
StateMachineStates Transports::MobileInternet::Task::m_sm_state |
Current state machine state.
Referenced by onRequestActivation(), onRequestDeactivation(), and updateStateMachine().