DUNE: Uniform Navigational Environment
2019.02.1
|
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 | onDeactivation (void) |
void | requestReactivation (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 | updateDynDNS () |
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 |
std::string | m_command_dyndns_update |
bool | m_powered |
StateMachineStates | m_sm_state |
Address | m_address |
Time::Counter< double > | m_conn_watchdog |
Time::Counter< double > | m_dyndns_watchdog |
bool | m_reactivating |
int | m_conn_timeout |
|
inline |
References Transports::MobileInternet::Arguments::code_presentation_mode, Transports::MobileInternet::Arguments::dyn_dns, Transports::MobileInternet::Arguments::dyn_dns_period, Transports::MobileInternet::Arguments::dyn_dns_url, 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, Transports::MobileInternet::Arguments::power_channel, Transports::MobileInternet::Arguments::ppp_interface, and Transports::MobileInternet::Arguments::uart_dev.
|
inline |
|
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, and Transports::MobileInternet::Arguments::gsm_user.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Test if power channel is on.
|
inline |
|
inline |
References Transports::MobileInternet::Arguments::dyn_dns.
|
inline |
References Transports::MobileInternet::SM_ACT_BEGIN.
|
inline |
References Transports::MobileInternet::SM_DEACT_BEGIN.
|
inline |
|
inline |
|
inline |
|
inline |
References Transports::MobileInternet::Arguments::ip_fwd.
|
inline |
References Transports::MobileInternet::Arguments::ip_fwd.
|
inline |
Turn power channel off.
|
inline |
Turn power channel on.
|
inline |
|
inline |
References 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, and Transports::MobileInternet::Arguments::uart_dev.
Address Transports::MobileInternet::Task::m_address |
Interface IPv4 address.
std::string Transports::MobileInternet::Task::m_command_connect |
Start command.
std::string Transports::MobileInternet::Task::m_command_disconnect |
Stop command.
std::string Transports::MobileInternet::Task::m_command_dyndns_update |
Update dynamic DNS command.
std::string Transports::MobileInternet::Task::m_command_nat_start |
Start NAT command.
std::string Transports::MobileInternet::Task::m_command_nat_stop |
Stop NAT command.
int Transports::MobileInternet::Task::m_conn_timeout |
Connection timeout time in seconds.
Time::Counter<double> Transports::MobileInternet::Task::m_conn_watchdog |
Time::Counter<double> Transports::MobileInternet::Task::m_dyndns_watchdog |
bool Transports::MobileInternet::Task::m_powered |
True if modem is powered on.
bool Transports::MobileInternet::Task::m_reactivating |
Are we reactivating the task?
StateMachineStates Transports::MobileInternet::Task::m_sm_state |
Current state machine state.