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.
Idea is to make OpenBTS as dumb as possible. It should forward all received SMS messages' RPDU to SMSC (smqueue) and vice versa. All actual message decoding and processing is to be done in smqueue.
This reverts commit acdb4969d5.
The example log level was dropped down ERROR in order
to be extra nice to embedded devices, but NOTICE level
is still a more useful default setting for broader
issues.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
Receive buffer flush should continue to read until
either the desired number of packets has been read or
timeout, which means that the buffer has been emptied.
These are expected behaviours and should return true.
Ignore errors at this stage as the data and associated
metadata can be considered garbage and not worth
reporting. Actual error conditions will be caught
further downstream when useful data comes in.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
Transmit tuning was primarily setup for side A only. Some boards
- WBX - would still tune with improper channel arguments, though
receiver performance was disrupted.
Previous testing was primarily with single board on side A only
or dual configuration with side A transmit, so this bug largely
went undetected. Patch tested with RFX and WBX daughterboards
in single and dual configurations sides A and B.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>
Bump abnormal asynchronous events - basically send errors -
up to ERROR level. These errors are dominated almost
entirely by underflow events, which should not be regularly
occuring.
Signed-off-by: Thomas Tsou <ttsou@vt.edu>