Andrzej Zaborowski
557f4cdb16
stkutil: Alpha Id is optional for Select Item.
2010-06-23 14:45:46 -05:00
Andrzej Zaborowski
ab7f88233d
stkutil: Refactor command parser error handling
...
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found. We need the command details to be able to
even respond to the command.
This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Andrzej Zaborowski
b8f68a5ed3
stkutil: Remove obsolete comment.
2010-06-21 15:21:40 -05:00
Andrzej Zaborowski
1b4dd4cd83
stkutil: Add More Time terminal response builder
2010-06-18 14:04:54 -05:00
Denis Kenzior
3b5d3fe1ef
stkutil: USSD max len is 160
2010-06-18 13:59:15 -05:00
Yang Gu
6018d1fe82
stk: Add parser for timing advance objects
2010-06-18 13:57:55 -05:00
Yang Gu
31d29608e0
stk: Add parser for send ussd commands
2010-06-18 13:15:31 -05:00
Denis Kenzior
97e62dffde
stkutil: Make sure bc_repeat is used properly
...
The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.
2010-06-16 17:43:12 -05:00
Denis Kenzior
dc505be373
stkutil: Merge two versions of bcch_channel_list
2010-06-16 17:43:12 -05:00
Yang Gu
ea41f3851d
stk: Add parser for UTRAN meas qualifier objects
2010-06-16 17:43:12 -05:00
Yang Gu
521156c049
stk: Add parser for PDP activation param objects
2010-06-16 17:43:12 -05:00
Yang Gu
37afdf1ca5
stk: Add parser for bcch channel list objects
2010-06-16 17:43:11 -05:00
Yang Gu
db941ff556
stk: Add parser for cell broadcast page objects
2010-06-16 17:43:11 -05:00
Yang Gu
090c93fbdf
Add several proactive command parsers
2010-06-16 17:43:11 -05:00
Yang Gu
a2d7494e93
stk: Add parser for send ss commands
2010-06-16 17:43:11 -05:00
Denis Kenzior
3ba288c396
stkutil: Minor style cleanups in stkutil
2010-06-15 14:32:58 -05:00
Andrzej Zaborowski
d5ad48c661
stkutil: Add Terminal Applications envelope builder
...
This is not a terribly useful function as the user still needs to
split the list in separate envelopes. The .type field could be an
enum.
2010-06-15 14:27:35 -05:00
Andrzej Zaborowski
0baaf2ce5b
stkutil: Add MMS Notification DL envelope builder
2010-06-15 12:37:53 -05:00
Andrzej Zaborowski
6720f90e13
stkutil: Add MMS Transfer Status envelope builder
2010-06-15 12:36:31 -05:00
Andrzej Zaborowski
df8f6115ca
stkutil: Add the USSD Download envelope builder
2010-06-15 12:35:18 -05:00
Andrzej Zaborowski
dd9e095524
stkutil: Add the Timer Expiration envelope builder
2010-06-15 12:09:00 -05:00
Andrzej Zaborowski
2166be0bc9
stkutil: Add the Event Download envelope builder
2010-06-15 12:06:59 -05:00
Andrzej Zaborowski
fb39e0efed
stkutil: Refactor struct stk_frames_info
2010-06-15 12:06:52 -05:00
Andrzej Zaborowski
6e4277eef8
stkutil: Refactor struct stk_other_address
2010-06-15 12:06:47 -05:00
Andrzej Zaborowski
f74087d03e
stkutil: Add the Call Control envelope builder
2010-06-15 12:06:30 -05:00
Andrzej Zaborowski
b95ef22f61
stkutil: Refactor stk_location_info
...
In some cases an empty stk_location_info means that no object should be
emitted (e.g. it is optional) and in other cases an empty object should
be emitted. This is context specific to the terminal response /
envelope and thus we break this up into two separate functions.
2010-06-09 19:29:15 -05:00
Andrzej Zaborowski
5684577171
stkutil: Add MO SMS Control envelope builder
2010-06-09 18:03:00 -05:00
Andrzej Zaborowski
b2dfa2321f
stkutil: Add the Menu Selection envelope builder
2010-06-09 12:30:19 -05:00
Andrzej Zaborowski
f989541161
stkutil: Add CBS-PP Data Download envelope builder
2010-06-09 12:25:25 -05:00
Andrzej Zaborowski
8be222d46e
stkutil: Add SMS-PP Data Download envelope builder
2010-06-09 12:23:13 -05:00
Andrzej Zaborowski
ef408ae1a6
stkutil: Use static buf in stk_pdu_from_response
2010-06-09 12:19:52 -05:00
Yang Gu
52ddd8c283
stk: Constraint the appearance of empty item
...
If empty item turns out, it must be the only item in the list.
So the following situations are deemed as invalid:
1. Two empty items
2. Valid item + empty item
3. empty + valid item
2010-06-01 14:02:32 -05:00
Andrzej Zaborowski
4f2a371a9f
stkutil: Add Launch Browser response builder
2010-05-28 11:41:34 -05:00
Andrzej Zaborowski
ac222a5512
stkutil: Add Language Notification response builder
2010-05-28 11:38:19 -05:00
Andrzej Zaborowski
4c4e2e9f03
stkutil: Add Send DTMF response builder support
2010-05-28 11:37:39 -05:00
Denis Kenzior
b1e3579417
stkutil: Fix comment style
2010-05-28 11:36:48 -05:00
Andrzej Zaborowski
27a9d785c4
stkutil: Add the Run AT Command response builder
2010-05-28 11:35:17 -05:00
Andrzej Zaborowski
e608568d79
stkutil: Add Set Up Idle Mode Text response builder
2010-05-28 11:33:25 -05:00
Denis Kenzior
3dc3f69b86
stkutil: Fix style in build_dataobj_timer_value
2010-05-28 11:32:04 -05:00
Denis Kenzior
88e4f807f8
stkutil: Fix style
2010-05-28 11:30:35 -05:00
Andrzej Zaborowski
268ac562eb
stkutil: Add the Timer Management response builder
2010-05-28 11:29:48 -05:00
Denis Kenzior
8d863b6250
stkutil: Use more understandable syntax
2010-05-28 11:29:35 -05:00
Denis Kenzior
5ed7962765
stkutil: Fix style
2010-05-28 11:29:35 -05:00
Denis Kenzior
5588433ad4
stkutil: Fix style in build_dataobj_location_info
2010-05-28 11:29:35 -05:00
Denis Kenzior
a597318b78
stkutil: Fix some style issues with setup_call
2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
139294c588
stkutil: Add Set Up Event List response builder
2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
8868becca1
stkutil: Add the Provide Local Info response builder
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
970250be0c
stkutil: Add Polling Off response builder support
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
8e0484d1d5
stkutil: Add Set Up Call response builder
2010-05-28 10:40:03 -05:00
Denis Kenzior
603ff15e6b
stkutil: Refactor parsing of data object lists
...
The old way wasn't working out for lists that are optional. This was
only a problem with the launch browser proactive command.
2010-05-27 12:42:59 -05:00
Yang Gu
31b65ef8ab
Move destructor prior to return
2010-05-27 12:21:05 -05:00
Yang Gu
3b71390b51
stk: Add parser for launch browser commands
2010-05-27 10:24:39 -05:00
Denis Kenzior
e7570ef1d5
stkutil: Refactor SMS pdu parser
2010-05-27 09:26:45 -05:00
Yang Gu
4d69a5cd86
stk: Fix the parser of send sms
2010-05-27 07:56:09 -05:00
Yang Gu
ea01533cd6
stk: Use sim bcd version
2010-05-27 07:04:55 -05:00
Yang Gu
5129bb2998
stk: Add parser for language notification commands
2010-05-25 17:36:52 -05:00
Yang Gu
0e983e965e
stk: Add parser for send dtmf commands
2010-05-25 17:34:29 -05:00
Yang Gu
f21e69c7a8
stk: Add parser for run at command commands
2010-05-25 17:19:38 -05:00
Yang Gu
525bf96a1b
stk: Add parser for setup idle mode text commands
2010-05-25 17:13:43 -05:00
Denis Kenzior
9cd477fb7a
stkutil: Fix warning
2010-05-25 16:52:54 -05:00
Denis Kenzior
ce449d0929
stkutil: More style issues
...
- Make stk_tlv_builder usage consistent (builder was missing)
- Various style issues
2010-05-25 16:52:54 -05:00
Denis Kenzior
3fc7a54a69
stkutil: small style issue
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
429d03c965
stkutil: Add Select Item response builder
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
d566fe2796
stkutil: Add Set Up Menu response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
0a3324f8b6
test-stkutil: Add Refresh response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
516fdec557
stkutil: Add Refresh response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
5854e2262b
stkutil: Add Poll Interval response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
a732863c87
stkutil: Add Play Tone response builder support
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
93bd75441c
stkutil: Add Send SMS response builder
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
22561c26f1
stkutil: Add Get Input response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
7eda56a6b4
stkutil: Various code style issues
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
eacb4395fc
stkutil: Add Get Inkey response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
60cab4354c
stkutil: Make the code more readable
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
5953762a7b
stkutil: Add Display Text response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
706c5aa994
stkutil: Simplify append_text
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
6831adfa74
Add STK-specific CTLV encoding utilities
2010-05-25 16:52:51 -05:00
Yang Gu
a1e3cb43ec
stkutil: Add timer management command parser
2010-05-13 15:33:26 -05:00
Yang Gu
1a5d9bc8d5
stkutil: Add get reader status command parser
2010-05-13 15:32:49 -05:00
Yang Gu
d6e1718a82
stkutil: Add power on card command parser
2010-05-13 15:32:18 -05:00
Yang Gu
ee12e0fd50
stkutil: Add power off card command parser
2010-05-13 15:31:59 -05:00
Yang Gu
5330612d28
stkutil: Add perform card apdu command parser
2010-05-13 15:25:59 -05:00
Yang Gu
beb01428b7
stkutil: Add event list command parser
2010-05-13 13:57:11 -05:00
Denis Kenzior
c02ae417f4
style: Whitespace errors
2010-05-13 13:55:35 -05:00
Yang Gu
2f1bb15dcf
stkutil: Add provide local info command parser
2010-05-13 13:53:08 -05:00
Yang Gu
0dc5c5df6f
stkutil: Add polling off proactive command parser
2010-05-13 13:52:20 -05:00
Denis Kenzior
57925606c0
stkutil: file_list instead of fl is better
2010-05-13 13:51:38 -05:00
Yang Gu
7e96402cc0
stkutil: Add refresh proactive command parser
2010-05-13 13:49:28 -05:00
Yang Gu
783bb70599
stkutil: Add setup call proactive command parser
2010-05-13 13:47:22 -05:00
Denis Kenzior
1ddc7ebf19
stkutil: Refactor parse_list into parse_item_list
...
Makes the code much easier to follow
2010-05-13 13:43:16 -05:00
Yang Gu
352a03d537
stkutil: Add select item proactive command parser
2010-05-13 12:29:59 -05:00
Yang Gu
d45219e049
stkutil: Add setup menu proactive command parse
2010-05-13 11:07:07 -05:00
Yang Gu
2cc037e136
style: remove extra whitespace
2010-05-13 11:05:33 -05:00
Yang Gu
9f3b2de6f0
stkutil: item objects can be NULL
...
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:05:06 -05:00
Yang Gu
edcd03e570
stkutil: alpha id objects can be NULL
...
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:04:04 -05:00
Yang Gu
5b030c4a19
stk: Add poll interval proactive command parser
2010-05-13 10:53:40 -05:00
Yang Gu
8a33071cd0
stkutil: Parse cdma tpdu in send sms parser
2010-05-11 14:36:37 -05:00
Yang Gu
4374123324
stkutil: Refactor parser for tone objects
2010-05-11 12:24:02 -05:00
Yang Gu
37c2bc8cf2
stkutil: Add play tone proactive command parser
2010-05-11 12:21:51 -05:00
Yang Gu
6e4f5c5122
stk: Unify variable names to use abbreviation
2010-05-11 12:19:09 -05:00
Yang Gu
2eff407957
stkutil: Free default text for get input parser
2010-05-11 12:15:36 -05:00