Pipe the following uhd message types to standard warning
levels (INFO, WARN, ERROR) respectively. Ignore fastpath
logging messages and, instead, catch them from the
asynchronous device interface.
enum type_t{
status = 's',
warning = 'w',
error = 'e',
fastpath= 'f'
};
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
Unused and causes the follwing errors on certain UHD versions.
"ValueError: unhandled clock configuration reference source: _external_"
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
If the master clock rate fails to set - this basically only happens
when the wrong transceiver is choosen for the particular device -
the error is fatal and the transceiver should exit. The clock rate
setting was previously never verified.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
This patch fixes some confusion in gain vs. attenuation
setting. The UHD device is controlled through gain
settings but OpenBTS represents gain in terms of
attenuation relative to maximum - 0 dB attenuation.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
UHD recently modified the E100 type name from 'usrp-e' to
'e100' causing the device make to fail. Remove device type
checking to keep things working with the older and newer
names.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
Commit e161523c (transceiver: simplify transmit power control)
changed transmit gain control to RF setting only. This was
appropriate for a WBX board with 25 dB of gain control, but
inappropriate for an RFX with fixed transmit gain.
RFX boards will regain the ability to set transmit
attenuation. Since gain is set on the RF side first,
reintroducing digital gain settings should have limited
overall effect on non-RFX daughterboards.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
* remote-cli: (22 commits)
Throw exception if usrp is not found. Don't crash transceiver.
Update OpenBTS init script
Correctly exit OpenBTS even if console is not started yet.
Add option to run OpenBTS in a failsafe loop.
Shutdown without core dump on a usual SocketError.
Remove Transceiver PID file on OpenBTS exit.
Save transceiver PID to a file and use it to kill old transceivers.
Correct comment for Server.WritePID.
Set FD_CLOEXEC flag on all sockets.
Stupid bug fixed - can't move stack variables initialization to a separate function.
Gracefully shutdown OpenBTS on transceiver timeout/error.
Make functions and variables in OpenBTS.cpp static to avoid their use outside of the file.
Remove PID file on program exit.
Implemented daemon mode, configured from config.
Better default name for OpenBTS control UNIX socket.
Initialize logger right after loading config file.
Use normal cout and cerr while we have only one thread.
Better comments for previous commit.
Catch SIGINT, SIGTERM and SIGHUP and shutdown the server gracefully.
Uncomment real BTS start/stop.
...
* sms-split:
smqueue: Add SMSC short code to smqueue.config.example
Checking in forgotten smsc.cpp and smsc.h files.
Ignore User-Data-Header in SMS TPDU when decoding text in TLUserData::encode7bit().
Transparently pass TP-UHDI (User-Data-Header-Indicator) from SMS-SUBMIT to SMS-DELIVER.
Slightly cleaner output in TLUserData::write().
Log contents of a message instead of its memory addresss in SMS::parseTPDU().
Use decoded text from original message in bounce and e-mail messages.
More readable bounce message.
Maximum SMS length is 160 symbols in default alphabet.
Avoid duplication of "IMSI" in SC.Register.Msg.
Set Log.Alarms.* values in smqueue config.
Make "from" address for bounce messages configurable.
Move most of the SMS processing to smqueue (initial check-in).
Better documentation and error reporting for ThreadSemaphore.
Implementation of Semaphore.
Implemented "trans" CLI command to list all active transacions.
We don't want them to be inherited on exec(). We use exec() to run Transceiver and it OpenBTS process crashes, transceiver becomes owner of all LISTEN sockets.
I have to do a weird thing - forking during initialization of static variables. I turns out main() is too late for that, because we bind sockets in static variables and when we run second instance, it fails in bind and not in our lockfile checking code. Some other ramifications come out because of our heavy use of global variables. Don't do that in your next project - use global variables only when strictly necessary.
This patch adds ability to connect to OpenBTS CLI with TCP socket and UNIX socket. This is configurable in the config file. To connect to the CLI use apps/OpenBTScli executable, which reads configuration from the same config file.