1#ifndef FIRMWAREUPDATERCORE_H
2#define FIRMWAREUPDATERCORE_H
6#include <yarp/os/all.h>
10#include <yarp/dev/all.h>
13using namespace yarp::os;
15#define DEFAULT_IP_ADDRESS "10.0.1.104"
16#define DEFAULT_IP_PORT 3333
24 bool init(Searchable& config,
int port, QString address,
int VerbositY);
28 int connectTo(QString device, QString
id);
34 void setSelectedCanBoard(
int index,
bool selected, QString ethAddress =
"",
int deviceId = -1);
43 void setCanBoardInfo(
int bus,
int id, QString newInfo, QString ethAddress =
"",
int deviceId = -1, QString *resultString = NULL);
45 bool setCanBoardAddress(
int bus,
int id,
int canType, QString newAddress, QString ethAddress =
"",
int deviceId = -1, QString *resultString = NULL);
50 bool uploadCanApplication(QString filename, QString *resultString,
bool ee, QString address =
"",
int deviceId = -1, QList<sBoard> *resultCanBoards = NULL);
51 bool uploadLoader(QString filename, QString *resultString);
65 bool compile_ip_addresses(
const char* addr,
unsigned int *
remoteAddr,
unsigned int *
localAddr);
66 bool isValidIpAddress(QString addr);
69 QList < QPair<QString,QVariant> > devices;
74 QString currentAddress;
75 QString currentDriver;
77 QList <sBoard> canBoards;
79 eOipv4addr_t hostIPaddress;
static const eOipv4addr_t ipv4OfAllSelected
QList< sBoard > getCanBoardsFromDriver(QString driver, int networkId, QString *retString, bool force=false)
int connectTo(QString device, QString id)
void setSelectedCanBoards(QList< sBoard > selectedBoards, QString address, int deviceId=-1)
bool setEthBoardAddress(int index, QString newAddress)
bool uploadCanApplication(QString filename, QString *resultString, bool ee, QString address="", int deviceId=-1, QList< sBoard > *resultCanBoards=NULL)
QString getProcessFromUint(uint8_t id, bool isMultiCore=false)
QString getEthBoardInfo(int index)
QList< sBoard > getCanBoardsFromEth(QString address, QString *retString, int canID=CanPacket::everyCANbus, bool force=false)
void setSelectedEthBoard(int index, bool selected)
void disconnectFrom(QString device, QString id)
void setSelectedCanBoard(int index, bool selected, QString ethAddress="", int deviceId=-1)
QString getEthBoardAddress(int index)
boardInfo2_t getMoreDetails(int boardNum=EthMaintainer::ipv4OfAllSelected, QString *infoString=NULL, eOipv4addr_t *address=NULL)
EthBoardList getEthBoardList()
QList< QPair< QString, QVariant > > getDevices()
void updateProgress(float)
void bootFromApplication()
bool setEthBoardInfo(int index, QString newInfo)
bool uploadUpdater(QString filename, QString *resultString)
bool isBoardInMaintenanceMode(QString ip)
void setCanBoardInfo(int bus, int id, QString newInfo, QString ethAddress="", int deviceId=-1, QString *resultString=NULL)
bool setCanBoardAddress(int bus, int id, int canType, QString newAddress, QString ethAddress="", int deviceId=-1, QString *resultString=NULL)
QStringList getDevicesName()
bool uploadEthApplication(QString filename, QString *resultString)
bool uploadLoader(QString filename, QString *resultString)
bool init(Searchable &config, int port, QString address, int VerbositY)
cDownloader * getDownloader()
bool setVerbosity(int verb)