38 if (static_cast<string>(
"ic9100") == argv[3])
45 else if (static_cast<string>(
"astrodev") == argv[3])
50 else if (static_cast<string>(
"usrp") == argv[3])
57 if (static_cast<string>(
"txr") == argv[4])
61 else if (static_cast<string>(
"rxr") == argv[4])
65 else if (static_cast<string>(
"tcv") == argv[4])
71 if (static_cast<string>(
"am") == argv[7])
75 else if (static_cast<string>(
"amd") == argv[7])
79 else if (static_cast<string>(
"fm") == argv[7])
83 else if (static_cast<string>(
"fmd") == argv[7])
87 else if (static_cast<string>(
"lsb") == argv[7])
91 else if (static_cast<string>(
"lsbd") == argv[7])
95 else if (static_cast<string>(
"usb") == argv[7])
99 else if (static_cast<string>(
"usbd") == argv[7])
103 else if (static_cast<string>(
"dv") == argv[7])
107 else if (static_cast<string>(
"dvd") == argv[7])
111 else if (static_cast<string>(
"cw") == argv[7])
115 else if (static_cast<string>(
"cwr") == argv[7])
119 else if (static_cast<string>(
"rtty") == argv[7])
123 else if (static_cast<string>(
"rttyr") == argv[7])
141 printf(
"Usage: agent->radio radioname [nodename [ic9100/astrodev txr/rxr/tcv frequency bandwidth mode device:addr]]\n");
254 std::cout<<
"Exiting " <<
radioname <<
" for Node: " <<
nodename <<
" no radio found." << std::endl;
Radio Receiver.
Definition: jsondef.h:508
Definition: jsondef.h:575
Definition: jsondef.h:561
vector< portstruc > port
Vector of all ports known to node.
Definition: jsondef.h:4244
string command
Definition: ic9100.cpp:28
uint8_t rfpower
Definition: ic9100_lib.h:80
FILE * get_debug_fd(double mjd=0.)
Definition: agentclass.cpp:2645
Definition: jsondef.h:585
static uint16_t radioaddr
Definition: ic9100.cpp:14
int32_t ic9100_set_frequency(ic9100_handle &handle, double frequency)
Definition: ic9100_lib.cpp:868
int32_t ic9100_set_channel(ic9100_handle &handle, uint8_t channelnum)
Definition: ic9100_lib.cpp:1089
Definition: jsondef.h:584
static std::string radiodevice
Definition: ic9100.cpp:13
vector< uint16_t > rxr
Definition: jsondef.h:3914
static float freq
Definition: ic9100.cpp:22
static size_t radioindex
Definition: ic9100.cpp:12
int i
Definition: rw_test.cpp:37
string getNode()
Listen for heartbeat.
Definition: agentclass.cpp:2607
Definition: jsondef.h:581
static usrp_handle usrp
Definition: ic9100.cpp:7
int32_t usrp_set_frequency(usrp_handle &handle, double frequency)
Definition: usrp_lib.cpp:226
double value1
Definition: ic9100.cpp:26
Not a Component.
Definition: jsondef.h:556
Definition: jsondef.h:574
int iretn
Definition: rw_test.cpp:37
Definition: jsondef.h:576
int32_t wait(State state=State::RUN, double waitsec=10.)
Definition: agentclass.cpp:398
uint16_t tcv_cnt
Definition: jsondef.h:3888
Definition: jsondef.h:567
Definition: jsondef.h:579
int32_t json_dump_node(cosmosstruc *cinfo)
Save Node entries to disk.
Definition: jsonlib.cpp:7233
vector< uint16_t > txr
Definition: jsondef.h:3925
vector< devicestruc > device
Vector of all general (common) information for devices (components) in node.
Definition: jsondef.h:4238
string cosmos_error_string(int32_t cosmos_errno)
Definition: cosmos-errno.cpp:45
int32_t ic9100_get_frequency(ic9100_handle &handle)
Definition: ic9100_lib.cpp:778
Definition: jsondef.h:651
Definition: jsondef.h:572
int32_t ic9100_connect(string device, uint8_t address, ic9100_handle &handle)
Definition: ic9100_lib.cpp:33
static std::string radioname
Definition: ic9100.cpp:10
Radio Transceiver.
Definition: jsondef.h:512
Definition: jsondef.h:583
uint16_t txr_cnt
Definition: jsondef.h:3893
static size_t deviceindex
Definition: ic9100.cpp:11
string getAgent()
Definition: agentclass.cpp:2609
vector< uint16_t > tcv
Definition: jsondef.h:3920
Definition: agentclass.h:139
int32_t usrp_get_frequency(usrp_handle &handle)
Definition: usrp_lib.cpp:148
Definition: jsondef.h:580
int32_t shutdown()
Shutdown agent gracefully.
Definition: agentclass.cpp:366
static ic9100_handle ic9100
Definition: ic9100.cpp:6
double data_ctime(string path)
Definition: datalib.cpp:1910
double frequency
Definition: usrp_lib.h:93
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
Definition: jsondef.h:582
static uint16_t radiotype
Definition: ic9100.cpp:21
int32_t usrp_connect(string device, uint16_t port, usrp_handle &handle)
Definition: usrp_lib.cpp:33
static Agent * agent
Definition: ic9100.cpp:8
string utc2iso8601(double utc)
ISO 8601 version of time.
Definition: timelib.cpp:1286
static uint8_t opmode
Definition: ic9100.cpp:24
Definition: jsondef.h:573
int32_t ic9100_get_rfpower(ic9100_handle &handle)
Definition: ic9100_lib.cpp:1162
static std::string nodename
Definition: ic9100.cpp:9
vector< piecestruc > pieces
Vector of all pieces in node.
Definition: jsondef.h:4232
uint16_t rxr_cnt
Definition: jsondef.h:3881
Definition: jsondef.h:645
int32_t json_createpiece(cosmosstruc *cinfo, string name, DeviceType ctype, double emi, double abs, double hcap, double hcon, double density)
Create new piece.
Definition: jsonlib.cpp:722
cosmosstruc * cinfo
Definition: agentclass.h:346
double value2
Definition: ic9100.cpp:27
static float band
Definition: ic9100.cpp:23
devspecstruc devspec
Structure for devices (components) special data in node, by type.
Definition: jsondef.h:4241
double frequency
Definition: ic9100_lib.h:92
Definition: jsondef.h:560
string mjd2iso8601(double mjd)
Definition: timelib.cpp:1316
Radio Transmitter.
Definition: jsondef.h:510
Definition: jsondef.h:578
Definition: jsondef.h:562
static uint16_t model
Definition: ic9100.cpp:20
Definition: jsondef.h:577
int32_t json_createport(cosmosstruc *cinfo, string name, PORT_TYPE type)
Definition: jsonlib.cpp:1086