3 #include <Poco/Mutex.h>
4 #include <Poco/SharedPtr.h>
5 #include <Poco/Timer.h>
6 #include <Poco/Timestamp.h>
10 #include "core/DeviceManager.h"
11 #include "core/GatewayInfo.h"
12 #include "fitp/FitpDevice.h"
13 #include "model/DeviceID.h"
53 typedef Poco::SharedPtr<FitpDeviceManager> Ptr;
54 typedef uint32_t EDID;
158 void setGatewayInfo(Poco::SharedPtr<GatewayInfo> info);
183 EDID
parseEDID(
const std::vector<uint8_t> &
id);
196 void handleGeneric(
const Command::Ptr cmd, Result::Ptr result)
override;
224 void stopListen(Poco::Timer &timer);
228 std::map<DeviceID, FitpDevice::Ptr> m_devices;
229 std::string m_configFile;
230 PHY_init_t m_phyParams;
231 LINK_init_t m_linkParams;
233 Poco::TimerCallback<FitpDeviceManager> m_listenCallback;
234 Poco::Timer m_listenTimer;
235 Poco::FastMutex m_lock;
236 Poco::SharedPtr<GatewayInfo> m_gatewayInfo;
void setPower(int power)
Definition: FitpDeviceManager.cpp:273
void setTxRetries(int retries)
Definition: FitpDeviceManager.cpp:282
static EDID deriveEDID(const DeviceID &id)
Definition: FitpDeviceManager.cpp:335
void setChannel(int channel)
Definition: FitpDeviceManager.cpp:263
void loadDeviceList()
Definition: FitpDeviceManager.cpp:319
void setBand(int band)
Definition: FitpDeviceManager.cpp:246
void processJoinMsg(const std::vector< uint8_t > &data)
Definition: FitpDeviceManager.cpp:387
void setNoiseMin(int min)
Definition: FitpDeviceManager.cpp:219
void initFitp()
Definition: FitpDeviceManager.cpp:291
void setConfigPath(const std::string &configPath)
Definition: FitpDeviceManager.cpp:214
void setNoiseMax(int max)
Definition: FitpDeviceManager.cpp:228
void doListenCommand(const GatewayListenCommand::Ptr cmd)
Definition: FitpDeviceManager.cpp:81
Definition: FitpDeviceManager.h:51
EDID parseEDID(const std::vector< uint8_t > &id)
Definition: FitpDeviceManager.cpp:340
Definition: DeviceManager.h:48
void stop() override
Definition: FitpDeviceManager.cpp:496
void doUnpairCommand(const DeviceUnpairCommand::Ptr cmd)
Definition: FitpDeviceManager.cpp:153
void setBitrate(int bitrate)
Definition: FitpDeviceManager.cpp:237
static DeviceID buildID(EDID edid)
Definition: FitpDeviceManager.cpp:330
void dispatchNewDevice(FitpDevice::Ptr device)
Definition: FitpDeviceManager.cpp:197
void processDataMsg(const std::vector< uint8_t > &data)
Definition: FitpDeviceManager.cpp:353
void handleGeneric(const Command::Ptr cmd, Result::Ptr result) override
Definition: FitpDeviceManager.cpp:185
Definition: DeviceID.h:17
void doDeviceAcceptCommand(const DeviceAcceptCommand::Ptr cmd)
Definition: FitpDeviceManager.cpp:121