Go to the documentation of this file.
34 #ifndef GOBY_ACOMMS_MODEMDRIVER_POPOTO_DRIVER_H
35 #define GOBY_ACOMMS_MODEMDRIVER_POPOTO_DRIVER_H
71 void parse_in(
const std::string& in, std::map<std::string, std::string>* out);
72 void signal_and_write(
const std::string& raw);
86 static std::string binary_to_json(
const std::uint8_t* buf,
size_t num_bytes);
87 static std::string StripString(std::string in,
const std::string& p);
94 static constexpr
int DEFAULT_BAUD{115200};
95 static constexpr
int DEFAULT_MTU_BYTES{1024};
96 static constexpr
int POPOTO_BROADCAST_ID{255};
100 GOBY_HEADER_TYPE = 0,
101 GOBY_HEADER_ACK_REQUEST = 1
void send(protobuf::ModemTransmission &msg)
The global namespace for the Goby project.
void shutdown() override
Shuts down the modem driver.
extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, ::google::protobuf::internal::MessageTypeTraits< ::goby::GobyMessageOptions >, 11, false > msg
void do_work() override
Allows the modem driver to do its work.
void send_ping(protobuf::ModemTransmission &msg)
basic_json<> json
default specialization
void handle_initiate_transmission(const protobuf::ModemTransmission &m) override
Virtual initiate_transmission method. Typically connected to MACManager::signal_initiate_transmission...
provides an abstract base class for acoustic modem drivers. This is subclassed by the various drivers...
extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::google::protobuf::internal::MessageTypeTraits< ::goby::acomms::popoto::protobuf::Config >, 11, false > config
void play_file(protobuf::ModemTransmission &msg)
void send_range_request(int dest)
void startup(const protobuf::DriverConfig &cfg) override
Starts the modem driver. Must be called before poll().