9 |
#include "serialport/SerialPort.h" |
#include "serialport/SerialPort.h" |
10 |
|
|
11 |
#include "DebugTransceiver.h" |
#include "DebugTransceiver.h" |
12 |
|
#include "SmsToolTransceiver.h" |
13 |
|
#include "plugins/HostStatusPlugin.h" |
14 |
#include "Sms.h" |
#include "Sms.h" |
15 |
#include "plugins/TogPlugin.h" |
#include "plugins/TogPlugin.h" |
16 |
#include "plugins/TrainInfo.h" |
#include "plugins/TrainInfo.h" |
17 |
#include "util.h" |
#include "Util.h" |
18 |
#include "plugins/StatusPlugin.h" |
#include "plugins/StatusPlugin.h" |
19 |
#include "SmsPdu.h" |
#include "SmsPdu.h" |
20 |
|
|
53 |
cout << end << endl; |
cout << end << endl; |
54 |
return 0; |
return 0; |
55 |
*/ |
*/ |
56 |
|
|
57 |
|
|
58 |
|
DebugTransceiver trans(true); |
59 |
|
HostStatusPlugin pl; |
60 |
|
|
61 |
|
SMS sms; |
62 |
|
|
63 |
|
pl.Execute(trans,sms); |
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
return 0; |
68 |
string start = "hej ������"; |
string start = "hej ������"; |
69 |
string mid = str_latin2gsm(start); |
string mid = str_latin2gsm(start); |
70 |
string final = str_gsm2latin(mid); |
string final = str_gsm2latin(mid); |
76 |
|
|
77 |
return 0; |
return 0; |
78 |
|
|
|
DebugTransceiver modem(true); |
|
|
SMS sms; |
|
|
sms.SetSender("1234"); |
|
|
sms.SetMessage("status"); |
|
|
StatusPlugin status; |
|
|
status.Execute(modem,sms); |
|
|
|
|
|
return 0; |
|
79 |
/* |
/* |
80 |
SerialPort port("/dev/ttyS1" ); |
SerialPort port("/dev/ttyS1" ); |
81 |
port.Open( SerialPort::BAUD_9600, |
port.Open( SerialPort::BAUD_9600, |