|
Algorithm 1. Serial connection, RSSI request, message construction and logfile update. |
Input: serial object
while continuous loop until exception or program interruption do
Serial connection to mobile station
RRSI request
Response read and parse result in variable (result)
Close serial connection
if result is not valid then
Exception handling
else (program continuation)
Conversion of result according to a RSSI lookup table
Increment the message counter (msg_count++)
SDS message construction (contains result and msg_count)
Serial connection to mobile station
Send SDS message to the destination
Close serial connection
Write content of SDS message in local logfile
end
end
|