All the *.c *.h and *.cpp files that have a eurecom copyright at the head have been processed. All other files (ie. those with other extensions) have not been touched. Changes to be committed: modified: common/utils/asn1_conversions.h modified: common/utils/assertions.h modified: common/utils/collection/hashtable/hashtable.c modified: common/utils/collection/hashtable/hashtable.h modified: common/utils/collection/hashtable/obj_hashtable.c modified: common/utils/collection/hashtable/obj_hashtable.h modified: common/utils/itti/assertions.h modified: common/utils/itti/backtrace.c modified: common/utils/itti/backtrace.h modified: common/utils/itti/intertask_interface.c modified: common/utils/itti/intertask_interface.h modified: common/utils/itti/intertask_interface_dump.c modified: common/utils/itti/intertask_interface_dump.h modified: common/utils/itti/intertask_interface_init.h modified: common/utils/itti/intertask_interface_types.h modified: common/utils/itti/intertask_messages_def.h modified: common/utils/itti/intertask_messages_types.h modified: common/utils/itti/itti_types.h modified: common/utils/itti/memory_pools.c modified: common/utils/itti/memory_pools.h modified: common/utils/itti/messages_def.h modified: common/utils/itti/messages_types.h modified: common/utils/itti/signals.c modified: common/utils/itti/signals.h modified: common/utils/itti/tasks_def.h modified: common/utils/itti/timer.c modified: common/utils/itti/timer.h modified: common/utils/itti/timer_messages_def.h modified: common/utils/itti/timer_messages_types.h modified: common/utils/itti_analyzer/common/itti_types.h modified: common/utils/itti_analyzer/common/logs.h modified: common/utils/itti_analyzer/common/rc.h modified: common/utils/itti_analyzer/itti_analyzer.c modified: common/utils/itti_analyzer/libbuffers/buffers.c modified: common/utils/itti_analyzer/libbuffers/buffers.h modified: common/utils/itti_analyzer/libbuffers/file.c modified: common/utils/itti_analyzer/libbuffers/file.h modified: common/utils/itti_analyzer/libbuffers/socket.c modified: common/utils/itti_analyzer/libbuffers/socket.h modified: common/utils/itti_analyzer/libparser/array_type.c modified: common/utils/itti_analyzer/libparser/array_type.h modified: common/utils/itti_analyzer/libparser/enum_type.c modified: common/utils/itti_analyzer/libparser/enum_type.h modified: common/utils/itti_analyzer/libparser/enum_value_type.c modified: common/utils/itti_analyzer/libparser/enum_value_type.h modified: common/utils/itti_analyzer/libparser/field_type.c modified: common/utils/itti_analyzer/libparser/field_type.h modified: common/utils/itti_analyzer/libparser/file_type.c modified: common/utils/itti_analyzer/libparser/file_type.h modified: common/utils/itti_analyzer/libparser/fundamental_type.c modified: common/utils/itti_analyzer/libparser/fundamental_type.h modified: common/utils/itti_analyzer/libparser/intertask_contexts.h modified: common/utils/itti_analyzer/libparser/pointer_type.c modified: common/utils/itti_analyzer/libparser/pointer_type.h modified: common/utils/itti_analyzer/libparser/reference_type.c modified: common/utils/itti_analyzer/libparser/reference_type.h modified: common/utils/itti_analyzer/libparser/struct_type.c modified: common/utils/itti_analyzer/libparser/struct_type.h modified: common/utils/itti_analyzer/libparser/typedef_type.c modified: common/utils/itti_analyzer/libparser/typedef_type.h modified: common/utils/itti_analyzer/libparser/types.c modified: common/utils/itti_analyzer/libparser/types.h modified: common/utils/itti_analyzer/libparser/union_type.c modified: common/utils/itti_analyzer/libparser/union_type.h modified: common/utils/itti_analyzer/libparser/xml_parse.c modified: common/utils/itti_analyzer/libparser/xml_parse.h modified: common/utils/itti_analyzer/libresolver/locate_root.c modified: common/utils/itti_analyzer/libresolver/locate_root.h modified: common/utils/itti_analyzer/libresolver/resolvers.c modified: common/utils/itti_analyzer/libresolver/resolvers.h modified: common/utils/itti_analyzer/libui/ui_callbacks.c modified: common/utils/itti_analyzer/libui/ui_callbacks.h modified: common/utils/itti_analyzer/libui/ui_filters.c modified: common/utils/itti_analyzer/libui/ui_filters.h modified: common/utils/itti_analyzer/libui/ui_interface.c modified: common/utils/itti_analyzer/libui/ui_interface.h modified: common/utils/itti_analyzer/libui/ui_main_screen.c modified: common/utils/itti_analyzer/libui/ui_main_screen.h modified: common/utils/itti_analyzer/libui/ui_menu_bar.c modified: common/utils/itti_analyzer/libui/ui_menu_bar.h modified: common/utils/itti_analyzer/libui/ui_notebook.c modified: common/utils/itti_analyzer/libui/ui_notebook.h modified: common/utils/itti_analyzer/libui/ui_notif_dlg.c modified: common/utils/itti_analyzer/libui/ui_notif_dlg.h modified: common/utils/itti_analyzer/libui/ui_notifications.c modified: common/utils/itti_analyzer/libui/ui_notifications.h modified: common/utils/itti_analyzer/libui/ui_signal_dissect_view.c modified: common/utils/itti_analyzer/libui/ui_signal_dissect_view.h modified: common/utils/itti_analyzer/libui/ui_tree_view.c modified: common/utils/itti_analyzer/libui/ui_tree_view.h modified: common/utils/msc/msc.c modified: common/utils/msc/msc.h modified: openair1/PHY/CODING/3gpplte.c modified: openair1/PHY/CODING/3gpplte_sse.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_avx2_16bit.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse_16bit.c modified: openair1/PHY/CODING/3gpplte_turbo_decoder_sse_8bit.c modified: openair1/PHY/CODING/TESTBENCH/ltetest.c modified: openair1/PHY/CODING/TESTBENCH/pdcch_test.c modified: openair1/PHY/CODING/TESTBENCH/viterbi_test.c modified: openair1/PHY/CODING/ccoding_byte.c modified: openair1/PHY/CODING/ccoding_byte_lte.c modified: openair1/PHY/CODING/crc_byte.c modified: openair1/PHY/CODING/defs.h modified: openair1/PHY/CODING/extern.h modified: openair1/PHY/CODING/extern_3GPPinterleaver.h modified: openair1/PHY/CODING/lte_interleaver.h modified: openair1/PHY/CODING/lte_interleaver2.h modified: openair1/PHY/CODING/lte_interleaver_inline.h modified: openair1/PHY/CODING/lte_rate_matching.c modified: openair1/PHY/CODING/lte_segmentation.c modified: openair1/PHY/CODING/rate_matching.c modified: openair1/PHY/CODING/scrambler.h modified: openair1/PHY/CODING/vars.h modified: openair1/PHY/CODING/viterbi.c modified: openair1/PHY/CODING/viterbi_lte.c modified: openair1/PHY/INIT/defs.h modified: openair1/PHY/INIT/extern.h modified: openair1/PHY/INIT/init_top.c modified: openair1/PHY/INIT/lte_init.c modified: openair1/PHY/INIT/lte_parms.c modified: openair1/PHY/INIT/vars.h modified: openair1/PHY/LTE_ESTIMATION/adjust_gain.c modified: openair1/PHY/LTE_ESTIMATION/defs.h modified: openair1/PHY/LTE_ESTIMATION/extern.h modified: openair1/PHY/LTE_ESTIMATION/filt96_32.h modified: openair1/PHY/LTE_ESTIMATION/freq_equalization.c modified: openair1/PHY/LTE_ESTIMATION/lte_adjust_sync.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_channel_estimation_emos.c modified: openair1/PHY/LTE_ESTIMATION/lte_dl_mbsfn_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/lte_eNB_measurements.c modified: openair1/PHY/LTE_ESTIMATION/lte_est_freq_offset.c modified: openair1/PHY/LTE_ESTIMATION/lte_sync_time.c modified: openair1/PHY/LTE_ESTIMATION/lte_sync_timefreq.c modified: openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c modified: openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation.c modified: openair1/PHY/LTE_ESTIMATION/pss6144.h modified: openair1/PHY/LTE_ESTIMATION/vars.h modified: openair1/PHY/LTE_REFSIG/defs.h modified: openair1/PHY/LTE_REFSIG/lte_dl_cell_spec.c modified: openair1/PHY/LTE_REFSIG/lte_dl_mbsfn.c modified: openair1/PHY/LTE_REFSIG/lte_dl_uespec.c modified: openair1/PHY/LTE_REFSIG/lte_gold.c modified: openair1/PHY/LTE_REFSIG/lte_gold_mbsfn.c modified: openair1/PHY/LTE_REFSIG/lte_ul_ref.c modified: openair1/PHY/LTE_REFSIG/mod_table.h modified: openair1/PHY/LTE_TRANSPORT/dci.c modified: openair1/PHY/LTE_TRANSPORT/dci.h modified: openair1/PHY/LTE_TRANSPORT/dci_tools.c modified: openair1/PHY/LTE_TRANSPORT/defs.h modified: openair1/PHY/LTE_TRANSPORT/dlsch_coding.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_decoding.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_demodulation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_llr_computation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_scrambling.c modified: openair1/PHY/LTE_TRANSPORT/dlsch_tbs.h modified: openair1/PHY/LTE_TRANSPORT/dlsch_tbs_full.h modified: openair1/PHY/LTE_TRANSPORT/drs_modulation.c modified: openair1/PHY/LTE_TRANSPORT/extern.h modified: openair1/PHY/LTE_TRANSPORT/group_hopping.c modified: openair1/PHY/LTE_TRANSPORT/initial_sync.c modified: openair1/PHY/LTE_TRANSPORT/lte_mcs.c modified: openair1/PHY/LTE_TRANSPORT/mcs_tbs_tools.h modified: openair1/PHY/LTE_TRANSPORT/pbch.c modified: openair1/PHY/LTE_TRANSPORT/pcfich.c modified: openair1/PHY/LTE_TRANSPORT/phich.c modified: openair1/PHY/LTE_TRANSPORT/pilots.c modified: openair1/PHY/LTE_TRANSPORT/pilots_mbsfn.c modified: openair1/PHY/LTE_TRANSPORT/pmch.c modified: openair1/PHY/LTE_TRANSPORT/power_control.c modified: openair1/PHY/LTE_TRANSPORT/prach.c modified: openair1/PHY/LTE_TRANSPORT/prach.h modified: openair1/PHY/LTE_TRANSPORT/print_stats.c modified: openair1/PHY/LTE_TRANSPORT/proto.h modified: openair1/PHY/LTE_TRANSPORT/pss.c modified: openair1/PHY/LTE_TRANSPORT/pucch.c modified: openair1/PHY/LTE_TRANSPORT/rar_tools.c modified: openair1/PHY/LTE_TRANSPORT/srs_modulation.c modified: openair1/PHY/LTE_TRANSPORT/sss.c modified: openair1/PHY/LTE_TRANSPORT/sss.h modified: openair1/PHY/LTE_TRANSPORT/uci.h modified: openair1/PHY/LTE_TRANSPORT/uci_tools.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_coding.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_demodulation.c modified: openair1/PHY/LTE_TRANSPORT/ulsch_modulation.c modified: openair1/PHY/LTE_TRANSPORT/vars.h modified: openair1/PHY/MODULATION/defs.h modified: openair1/PHY/MODULATION/extern.h modified: openair1/PHY/MODULATION/kHz_7_5.h modified: openair1/PHY/MODULATION/ofdm_mod.c modified: openair1/PHY/MODULATION/prach625Hz.h modified: openair1/PHY/MODULATION/slot_fep.c modified: openair1/PHY/MODULATION/slot_fep_mbsfn.c modified: openair1/PHY/MODULATION/slot_fep_ul.c modified: openair1/PHY/MODULATION/ul_7_5_kHz.c modified: openair1/PHY/MODULATION/vars.h modified: openair1/PHY/TOOLS/8bit_rxdemux.c modified: openair1/PHY/TOOLS/8bit_txmux.c modified: openair1/PHY/TOOLS/angle.c modified: openair1/PHY/TOOLS/cadd_sv.c modified: openair1/PHY/TOOLS/cadd_vv.c modified: openair1/PHY/TOOLS/cdot_prod.c modified: openair1/PHY/TOOLS/cmult_sv.c modified: openair1/PHY/TOOLS/cmult_vv.c modified: openair1/PHY/TOOLS/costable.h modified: openair1/PHY/TOOLS/dB_routines.c modified: openair1/PHY/TOOLS/dB_routines.h modified: openair1/PHY/TOOLS/defs.h modified: openair1/PHY/TOOLS/extern.h modified: openair1/PHY/TOOLS/file_output.c modified: openair1/PHY/TOOLS/invSqrt.c modified: openair1/PHY/TOOLS/log2_approx.c modified: openair1/PHY/TOOLS/lte_dfts.c modified: openair1/PHY/TOOLS/lte_phy_scope.c modified: openair1/PHY/TOOLS/lte_phy_scope.h modified: openair1/PHY/TOOLS/lut.c modified: openair1/PHY/TOOLS/memory_routines.c modified: openair1/PHY/TOOLS/signal_energy.c modified: openair1/PHY/TOOLS/smbv.c modified: openair1/PHY/TOOLS/smbv.h modified: openair1/PHY/TOOLS/sqrt.c modified: openair1/PHY/TOOLS/time_meas.c modified: openair1/PHY/TOOLS/time_meas.h modified: openair1/PHY/TOOLS/twiddle12288.h modified: openair1/PHY/TOOLS/twiddle1536.h modified: openair1/PHY/TOOLS/twiddle24576.h modified: openair1/PHY/TOOLS/twiddle6144.h modified: openair1/PHY/TOOLS/vars.h modified: openair1/PHY/defs.h modified: openair1/PHY/extern.h modified: openair1/PHY/impl_defs_lte.h modified: openair1/PHY/impl_defs_top.h modified: openair1/PHY/sse_intrin.h modified: openair1/PHY/types.h modified: openair1/PHY/vars.h modified: openair1/SCHED/defs.h modified: openair1/SCHED/extern.h modified: openair1/SCHED/phy_mac_stub.c modified: openair1/SCHED/phy_procedures_emos.h modified: openair1/SCHED/phy_procedures_lte_common.c modified: openair1/SCHED/phy_procedures_lte_eNb.c modified: openair1/SCHED/phy_procedures_lte_ue.c modified: openair1/SCHED/pucch_pc.c modified: openair1/SCHED/pusch_pc.c modified: openair1/SCHED/rt_compat.h modified: openair1/SCHED/vars.h modified: openair1/SIMULATION/ETH_TRANSPORT/bypass_session_layer.c modified: openair1/SIMULATION/ETH_TRANSPORT/defs.h modified: openair1/SIMULATION/ETH_TRANSPORT/emu_transport.c modified: openair1/SIMULATION/ETH_TRANSPORT/extern.h modified: openair1/SIMULATION/ETH_TRANSPORT/multicast_link.c modified: openair1/SIMULATION/ETH_TRANSPORT/multicast_link.h modified: openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c modified: openair1/SIMULATION/ETH_TRANSPORT/pgm_link.c modified: openair1/SIMULATION/ETH_TRANSPORT/pgm_link.h modified: openair1/SIMULATION/ETH_TRANSPORT/proto.h modified: openair1/SIMULATION/ETH_TRANSPORT/socket.c modified: openair1/SIMULATION/ETH_TRANSPORT/socket.h modified: openair1/SIMULATION/ETH_TRANSPORT/vars.h modified: openair1/SIMULATION/LTE_PHY/LTE_Configuration.c modified: openair1/SIMULATION/LTE_PHY/LTE_Configuration.h modified: openair1/SIMULATION/LTE_PHY/dlsim.c modified: openair1/SIMULATION/LTE_PHY/framegen.c modified: openair1/SIMULATION/LTE_PHY/gpib_send.c modified: openair1/SIMULATION/LTE_PHY/gpib_send.h modified: openair1/SIMULATION/LTE_PHY/mbmssim.c modified: openair1/SIMULATION/LTE_PHY/pbchsim.c modified: openair1/SIMULATION/LTE_PHY/pdcchsim.c modified: openair1/SIMULATION/LTE_PHY/prachsim.c modified: openair1/SIMULATION/LTE_PHY/pucchsignalgegerator.h modified: openair1/SIMULATION/LTE_PHY/pucchsignalgenerator.c modified: openair1/SIMULATION/LTE_PHY/pucchsim.c modified: openair1/SIMULATION/LTE_PHY/scansim.c modified: openair1/SIMULATION/LTE_PHY/signalanalyzer.c modified: openair1/SIMULATION/LTE_PHY/signalanalyzer.h modified: openair1/SIMULATION/LTE_PHY/syncsim.c modified: openair1/SIMULATION/LTE_PHY/test.c modified: openair1/SIMULATION/LTE_PHY/ulsignalgenerator.c modified: openair1/SIMULATION/LTE_PHY/ulsignalgenerator.h modified: openair1/SIMULATION/LTE_PHY/ulsim.c modified: openair1/SIMULATION/LTE_PHY/ulsim2.c modified: openair1/SIMULATION/RF/adc.c modified: openair1/SIMULATION/RF/dac.c modified: openair1/SIMULATION/RF/defs.h modified: openair1/SIMULATION/RF/rf.c modified: openair1/SIMULATION/TOOLS/abstraction.c modified: openair1/SIMULATION/TOOLS/ch_desc_proto.c modified: openair1/SIMULATION/TOOLS/defs.h modified: openair1/SIMULATION/TOOLS/gauss.c modified: openair1/SIMULATION/TOOLS/llr_quantization.c modified: openair1/SIMULATION/TOOLS/multipath_channel.c modified: openair1/SIMULATION/TOOLS/multipath_tv_channel.c modified: openair1/SIMULATION/TOOLS/random_channel.c modified: openair1/SIMULATION/TOOLS/rangen_double.c modified: openair1/SIMULATION/TOOLS/scm_corrmat.h modified: openair1/SIMULATION/TOOLS/taus.c modified: openair2/COMMON/as_message.h modified: openair2/COMMON/commonDef.h modified: openair2/COMMON/gtpv1_u_messages_def.h modified: openair2/COMMON/gtpv1_u_messages_types.h modified: openair2/COMMON/intertask_interface_conf.h modified: openair2/COMMON/mac_messages_def.h modified: openair2/COMMON/mac_messages_types.h modified: openair2/COMMON/mac_primitives.h modified: openair2/COMMON/mac_rlc_primitives.h modified: openair2/COMMON/mac_rrc_primitives.h modified: openair2/COMMON/messages_def.h modified: openair2/COMMON/messages_types.h modified: openair2/COMMON/nas_messages_def.h modified: openair2/COMMON/nas_messages_types.h modified: openair2/COMMON/networkDef.h modified: openair2/COMMON/openair_defs.h modified: openair2/COMMON/openair_types.h modified: openair2/COMMON/pdcp_messages_def.h modified: openair2/COMMON/pdcp_messages_types.h modified: openair2/COMMON/phy_messages_def.h modified: openair2/COMMON/phy_messages_types.h modified: openair2/COMMON/platform_constants.h modified: openair2/COMMON/platform_types.h modified: openair2/COMMON/ral_messages_def.h modified: openair2/COMMON/ral_messages_types.h modified: openair2/COMMON/rlc_messages_def.h modified: openair2/COMMON/rlc_messages_types.h modified: openair2/COMMON/rrc_messages_def.h modified: openair2/COMMON/rrc_messages_types.h modified: openair2/COMMON/rrm_config_structs.h modified: openair2/COMMON/rrm_constants.h modified: openair2/COMMON/rtos_header.h modified: openair2/COMMON/s1ap_messages_def.h modified: openair2/COMMON/s1ap_messages_types.h modified: openair2/COMMON/sctp_messages_def.h modified: openair2/COMMON/sctp_messages_types.h modified: openair2/COMMON/tasks_def.h modified: openair2/COMMON/udp_messages_def.h modified: openair2/COMMON/udp_messages_types.h modified: openair2/COMMON/x2ap_messages_def.h modified: openair2/COMMON/x2ap_messages_types.h modified: openair2/DOCS/TEMPLATES/CODE/example_doxy.h modified: openair2/ENB_APP/enb_app.c modified: openair2/ENB_APP/enb_app.h modified: openair2/ENB_APP/enb_config.c modified: openair2/ENB_APP/enb_config.h modified: openair2/LAYER2/MAC/config.c modified: openair2/LAYER2/MAC/defs.h modified: openair2/LAYER2/MAC/eNB_scheduler.c modified: openair2/LAYER2/MAC/eNB_scheduler_RA.c modified: openair2/LAYER2/MAC/eNB_scheduler_bch.c modified: openair2/LAYER2/MAC/eNB_scheduler_dlsch.c modified: openair2/LAYER2/MAC/eNB_scheduler_mch.c modified: openair2/LAYER2/MAC/eNB_scheduler_primitives.c modified: openair2/LAYER2/MAC/eNB_scheduler_ulsch.c modified: openair2/LAYER2/MAC/extern.h modified: openair2/LAYER2/MAC/l1_helpers.c modified: openair2/LAYER2/MAC/lte_transport_init.c modified: openair2/LAYER2/MAC/main.c modified: openair2/LAYER2/MAC/openair2_proc.c modified: openair2/LAYER2/MAC/pre_processor.c modified: openair2/LAYER2/MAC/proto.h modified: openair2/LAYER2/MAC/ra_procedures.c modified: openair2/LAYER2/MAC/rar_tools.c modified: openair2/LAYER2/MAC/ue_procedures.c modified: openair2/LAYER2/MAC/vars.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_control_primitive.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_control_primitives_proto_extern.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_netlink.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_primitives.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_proto_extern.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_security.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_sequence_manager.h modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_thread.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_util.c modified: openair2/LAYER2/PDCP_v10.1.0/pdcp_util.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_constants.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_entity.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_in_sdu.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_in_sdu.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_init.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_init.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_proto_extern.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_reassembly.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_reassembly.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_receiver.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segment.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segments_holes.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_segments_holes.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_status_report.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_status_report.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_structs.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_test.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_test.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_poll_retransmit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_poll_retransmit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_reordering.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_reordering.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_status_prohibit.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_timer_status_prohibit.h modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_windows.c modified: openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_windows.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm.c modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_entity.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_init.c modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_init.h modified: openair2/LAYER2/RLC/TM_v9.3.0/rlc_tm_structs.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_constants.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_dar.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_entity.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_fsm.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_fsm.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_reassembly.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_reassembly.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_receiver.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_receiver.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_segment.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_structs.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_test.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_test.h modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_very_simple_test.c modified: openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_very_simple_test.h modified: openair2/LAYER2/RLC/rlc.c modified: openair2/LAYER2/RLC/rlc.h modified: openair2/LAYER2/RLC/rlc_def.h modified: openair2/LAYER2/RLC/rlc_def_lte.h modified: openair2/LAYER2/RLC/rlc_mac.c modified: openair2/LAYER2/RLC/rlc_mpls.c modified: openair2/LAYER2/RLC/rlc_primitives.h modified: openair2/LAYER2/RLC/rlc_rrc.c modified: openair2/LAYER2/layer2_top.c modified: openair2/LAYER2/openair2_proc.c modified: openair2/LAYER2/register.c modified: openair2/LAYER2/register.h modified: openair2/NAS/DRIVER/CELLULAR/CTL_TOOL/nascell_ioctl.c modified: openair2/NAS/DRIVER/CELLULAR/CTL_TOOL/nascell_ioctl.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_classifier.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_common.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_constant.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_device.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_iocontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_iocontrol.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_netlink.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_proto.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_sap.h modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_tool.c modified: openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_variables.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_ascontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_classifier.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_common.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_constant.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_device.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_iocontrol.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_iocontrol.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_netlink.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_proto.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_sap.h modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_tool.c modified: openair2/NAS/DRIVER/CELLULAR/NASRG/nasrg_variables.h modified: openair2/NAS/DRIVER/CELLULAR/NETLTEST/netltest.c modified: openair2/NAS/SIMU_CELLULAR/nas_simu_proto.h modified: openair2/NAS/SIMU_CELLULAR/nasrg_simu_meas.c modified: openair2/NAS/SIMU_CELLULAR/rrm_fifo_standalone.c modified: openair2/NAS/nas_ue_task.h modified: openair2/NETWORK_DRIVER/LITE/RB_TOOL/rb_tool.c modified: openair2/NETWORK_DRIVER/LITE/classifier.c modified: openair2/NETWORK_DRIVER/LITE/common.c modified: openair2/NETWORK_DRIVER/LITE/constant.h modified: openair2/NETWORK_DRIVER/LITE/device.c modified: openair2/NETWORK_DRIVER/LITE/ioctl.c modified: openair2/NETWORK_DRIVER/LITE/ioctl.h modified: openair2/NETWORK_DRIVER/LITE/local.h modified: openair2/NETWORK_DRIVER/LITE/netlink.c modified: openair2/NETWORK_DRIVER/LITE/proto_extern.h modified: openair2/NETWORK_DRIVER/LITE/sap.h modified: openair2/NETWORK_DRIVER/LITE/tool.c modified: openair2/NETWORK_DRIVER/MESH/RB_TOOL/rb_tool.c modified: openair2/NETWORK_DRIVER/MESH/classifier.c modified: openair2/NETWORK_DRIVER/MESH/common.c modified: openair2/NETWORK_DRIVER/MESH/constant.h modified: openair2/NETWORK_DRIVER/MESH/device.c modified: openair2/NETWORK_DRIVER/MESH/ioctl.c modified: openair2/NETWORK_DRIVER/MESH/ioctl.h modified: openair2/NETWORK_DRIVER/MESH/local.h modified: openair2/NETWORK_DRIVER/MESH/mesh.c modified: openair2/NETWORK_DRIVER/MESH/netlink.c modified: openair2/NETWORK_DRIVER/MESH/proto_extern.h modified: openair2/NETWORK_DRIVER/MESH/rrc_nas_primitives.h modified: openair2/NETWORK_DRIVER/MESH/sap.h modified: openair2/NETWORK_DRIVER/MESH/tool.c modified: openair2/NETWORK_DRIVER/UE_IP/common.c modified: openair2/NETWORK_DRIVER/UE_IP/constant.h modified: openair2/NETWORK_DRIVER/UE_IP/device.c modified: openair2/NETWORK_DRIVER/UE_IP/local.h modified: openair2/NETWORK_DRIVER/UE_IP/netlink.c modified: openair2/NETWORK_DRIVER/UE_IP/proto_extern.h modified: openair2/NETWORK_DRIVER/UE_IP/sap.h modified: openair2/PHY_INTERFACE/defs.h modified: openair2/PHY_INTERFACE/extern.h modified: openair2/PHY_INTERFACE/mac_phy_primitives.c modified: openair2/PHY_INTERFACE/mac_phy_primitives.h modified: openair2/PHY_INTERFACE/vars.h modified: openair2/RRC/L2_INTERFACE/openair_rrc_L2_interface.c modified: openair2/RRC/L2_INTERFACE/openair_rrc_L2_interface.h modified: openair2/RRC/LITE/L2_interface.c modified: openair2/RRC/LITE/MESSAGES/asn1_msg.c modified: openair2/RRC/LITE/MESSAGES/asn1_msg.h modified: openair2/RRC/LITE/defs.h modified: openair2/RRC/LITE/extern.h modified: openair2/RRC/LITE/proto.h modified: openair2/RRC/LITE/rrc_2_rrm_msg.c modified: openair2/RRC/LITE/rrc_UE.c modified: openair2/RRC/LITE/rrc_UE_ral.c modified: openair2/RRC/LITE/rrc_UE_ral.h modified: openair2/RRC/LITE/rrc_common.c modified: openair2/RRC/LITE/rrc_config.c modified: openair2/RRC/LITE/rrc_eNB.c modified: openair2/RRC/LITE/rrc_eNB_GTPV1U.c modified: openair2/RRC/LITE/rrc_eNB_GTPV1U.h modified: openair2/RRC/LITE/rrc_eNB_S1AP.c modified: openair2/RRC/LITE/rrc_eNB_S1AP.h modified: openair2/RRC/LITE/rrc_eNB_UE_context.c modified: openair2/RRC/LITE/rrc_eNB_UE_context.h modified: openair2/RRC/LITE/rrc_eNB_ral.c modified: openair2/RRC/LITE/rrc_eNB_ral.h modified: openair2/RRC/LITE/rrc_rrm_interface.c modified: openair2/RRC/LITE/rrc_rrm_interface.h modified: openair2/RRC/LITE/rrc_types.h modified: openair2/RRC/LITE/rrm_2_rrc_msg.c modified: openair2/RRC/LITE/utils.c modified: openair2/RRC/LITE/vars.h modified: openair2/RRC/NAS/nas_config.c modified: openair2/RRC/NAS/nas_config.h modified: openair2/RRC/NAS/rb_config.c modified: openair2/RRC/NAS/rb_config.h modified: openair2/RRM_4_RRC_LITE/src/platform.h modified: openair2/RRM_4_RRC_LITE/src/platform_constants.h modified: openair2/RRM_4_RRC_LITE/src/platform_defines.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Asn1Utils.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Asn1Utils.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Command.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Command.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/DataRadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/DataRadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/ENodeB.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/ENodeB.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Exceptions.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/LogicalChannel.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/LogicalChannel.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Mobile.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Mobile.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioResources.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/RadioResources.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/SignallingRadioBearer.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/SignallingRadioBearer.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transaction.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transaction.h modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transactions.cpp modified: openair2/RRM_4_RRC_LITE/src/radio_resources/Transactions.h modified: openair2/RRM_4_RRC_LITE/src/rrm.cpp modified: openair2/UTIL/AT_COMMANDS/parser.c modified: openair2/UTIL/AT_COMMANDS/parser.h modified: openair2/UTIL/BIGPHYS/bigphys.c modified: openair2/UTIL/BIGPHYS/defs.h modified: openair2/UTIL/CLI/cli.c modified: openair2/UTIL/CLI/cli.h modified: openair2/UTIL/CLI/cli_cmd.c modified: openair2/UTIL/CLI/cli_if.h modified: openair2/UTIL/CLI/cli_server.c modified: openair2/UTIL/FIFO/pad_list.c modified: openair2/UTIL/FIFO/pad_list.h modified: openair2/UTIL/FIFO/types.h modified: openair2/UTIL/LISTS/list.c modified: openair2/UTIL/LOG/log.c modified: openair2/UTIL/LOG/log.h modified: openair2/UTIL/LOG/log_extern.h modified: openair2/UTIL/LOG/log_if.h modified: openair2/UTIL/LOG/vcd_signal_dumper.c modified: openair2/UTIL/LOG/vcd_signal_dumper.h modified: openair2/UTIL/MATH/crc_byte.c modified: openair2/UTIL/MATH/oml.c modified: openair2/UTIL/MATH/oml.h modified: openair2/UTIL/MATH/random.c modified: openair2/UTIL/MATH/random_proto_extern.h modified: openair2/UTIL/MATH/taus.c modified: openair2/UTIL/MEM/mem_block.c modified: openair2/UTIL/MEM/mem_block.h modified: openair2/UTIL/MEM/mem_mngt.c modified: openair2/UTIL/MEM/mem_mngt_proto_extern.h modified: openair2/UTIL/MEM/mem_pool.h modified: openair2/UTIL/OCG/OCG.c modified: openair2/UTIL/OCG/OCG.h modified: openair2/UTIL/OCG/OCG_call_emu.h modified: openair2/UTIL/OCG/OCG_config_mobi.c modified: openair2/UTIL/OCG/OCG_config_mobi.h modified: openair2/UTIL/OCG/OCG_create_dir.c modified: openair2/UTIL/OCG/OCG_create_dir.h modified: openair2/UTIL/OCG/OCG_detect_file.c modified: openair2/UTIL/OCG/OCG_detect_file.h modified: openair2/UTIL/OCG/OCG_extern.h modified: openair2/UTIL/OCG/OCG_generate_report.c modified: openair2/UTIL/OCG/OCG_generate_report.h modified: openair2/UTIL/OCG/OCG_get_opt.c modified: openair2/UTIL/OCG/OCG_get_opt.h modified: openair2/UTIL/OCG/OCG_if.h modified: openair2/UTIL/OCG/OCG_parse_XML.c modified: openair2/UTIL/OCG/OCG_parse_XML.h modified: openair2/UTIL/OCG/OCG_parse_filename.c modified: openair2/UTIL/OCG/OCG_parse_filename.h modified: openair2/UTIL/OCG/OCG_save_XML.c modified: openair2/UTIL/OCG/OCG_save_XML.h modified: openair2/UTIL/OCG/OCG_vars.h modified: openair2/UTIL/OMG/TraCIConstants.h modified: openair2/UTIL/OMG/client_traci_OMG.c modified: openair2/UTIL/OMG/client_traci_OMG.h modified: openair2/UTIL/OMG/common.c modified: openair2/UTIL/OMG/defs.h modified: openair2/UTIL/OMG/grid.c modified: openair2/UTIL/OMG/grid.h modified: openair2/UTIL/OMG/id_manager.c modified: openair2/UTIL/OMG/id_manager.h modified: openair2/UTIL/OMG/job.c modified: openair2/UTIL/OMG/mobility_parser.c modified: openair2/UTIL/OMG/mobility_parser.h modified: openair2/UTIL/OMG/omg.c modified: openair2/UTIL/OMG/omg.h modified: openair2/UTIL/OMG/omg_constants.h modified: openair2/UTIL/OMG/omg_hashtable.c modified: openair2/UTIL/OMG/omg_hashtable.h modified: openair2/UTIL/OMG/omg_vars.h modified: openair2/UTIL/OMG/rwalk.c modified: openair2/UTIL/OMG/rwalk.h modified: openair2/UTIL/OMG/rwp.c modified: openair2/UTIL/OMG/rwp.h modified: openair2/UTIL/OMG/socket_traci_OMG.c modified: openair2/UTIL/OMG/socket_traci_OMG.h modified: openair2/UTIL/OMG/static.c modified: openair2/UTIL/OMG/static.h modified: openair2/UTIL/OMG/steadystaterwp.c modified: openair2/UTIL/OMG/steadystaterwp.h modified: openair2/UTIL/OMG/storage_traci_OMG.c modified: openair2/UTIL/OMG/storage_traci_OMG.h modified: openair2/UTIL/OMG/sumo.c modified: openair2/UTIL/OMG/sumo.h modified: openair2/UTIL/OMG/trace.c modified: openair2/UTIL/OMG/trace.h modified: openair2/UTIL/OMG/trace_hashtable.c modified: openair2/UTIL/OMG/trace_hashtable.h modified: openair2/UTIL/OMV/communicationthread.cpp modified: openair2/UTIL/OMV/communicationthread.h modified: openair2/UTIL/OMV/mywindow.cpp modified: openair2/UTIL/OMV/mywindow.h modified: openair2/UTIL/OMV/omv.cpp modified: openair2/UTIL/OMV/openglwidget.cpp modified: openair2/UTIL/OMV/openglwidget.h modified: openair2/UTIL/OMV/structures.h modified: openair2/UTIL/OPT/mac_pcap.h modified: openair2/UTIL/OPT/opt.h modified: openair2/UTIL/OPT/socket_sender.c modified: openair2/UTIL/OPT/vars.h modified: openair2/UTIL/OSA/osa_defs.h modified: openair2/UTIL/OSA/osa_internal.h modified: openair2/UTIL/OSA/osa_key_deriver.c modified: openair2/UTIL/OSA/osa_snow3g.h modified: openair2/UTIL/OSA/osa_stream_eea.c modified: openair2/UTIL/OSA/osa_stream_eia.c modified: openair2/UTIL/OTG/main.c modified: openair2/UTIL/OTG/otg.c modified: openair2/UTIL/OTG/otg.h modified: openair2/UTIL/OTG/otg_config.h modified: openair2/UTIL/OTG/otg_defs.h modified: openair2/UTIL/OTG/otg_externs.h modified: openair2/UTIL/OTG/otg_form.c modified: openair2/UTIL/OTG/otg_form.h modified: openair2/UTIL/OTG/otg_kpi.c modified: openair2/UTIL/OTG/otg_kpi.h modified: openair2/UTIL/OTG/otg_models.c modified: openair2/UTIL/OTG/otg_models.h modified: openair2/UTIL/OTG/otg_rx.c modified: openair2/UTIL/OTG/otg_rx.h modified: openair2/UTIL/OTG/otg_rx_socket.c modified: openair2/UTIL/OTG/otg_rx_socket.h modified: openair2/UTIL/OTG/otg_tx.c modified: openair2/UTIL/OTG/otg_tx.h modified: openair2/UTIL/OTG/otg_tx_socket.c modified: openair2/UTIL/OTG/otg_tx_socket.h modified: openair2/UTIL/OTG/otg_vars.h modified: openair2/UTIL/OTG/traffic_config.h modified: openair2/UTIL/TIMER/umts_timer.c modified: openair2/UTIL/TIMER/umts_timer.h modified: openair2/UTIL/TIMER/umts_timer_proto_extern.h modified: openair2/UTIL/TIMER/umts_timer_struct.h modified: openair2/UTIL/TRACE/fifo_printf.c modified: openair2/UTIL/TRACE/fifo_printf.h modified: openair2/UTIL/TRACE/fifo_printf_proto_extern.h modified: openair2/UTIL/TRACE/print.h modified: openair2/X2AP/x2ap.c modified: openair2/X2AP/x2ap.h modified: openair2/X2AP/x2ap_common.c modified: openair2/X2AP/x2ap_common.h modified: openair3/COMMON/common_types.h modified: openair3/COMMON/gtpv1_u_messages_def.h modified: openair3/COMMON/gtpv1_u_messages_types.h modified: openair3/COMMON/intertask_interface_conf.h modified: openair3/COMMON/messages_def.h modified: openair3/COMMON/messages_types.h modified: openair3/COMMON/nas_messages_def.h modified: openair3/COMMON/nas_messages_types.h modified: openair3/COMMON/s1ap_messages_def.h modified: openair3/COMMON/s1ap_messages_types.h modified: openair3/COMMON/sctp_messages_def.h modified: openair3/COMMON/sctp_messages_types.h modified: openair3/COMMON/security_types.h modified: openair3/COMMON/tasks_def.h modified: openair3/COMMON/udp_messages_def.h modified: openair3/COMMON/udp_messages_types.h modified: openair3/GTPV1-U/gtpv1u.h modified: openair3/GTPV1-U/gtpv1u_eNB.c modified: openair3/GTPV1-U/gtpv1u_eNB_defs.h modified: openair3/GTPV1-U/gtpv1u_eNB_task.h modified: openair3/GTPV1-U/gtpv1u_sgw_defs.h modified: openair3/GTPV1-U/gtpv1u_task.c modified: openair3/GTPV1-U/gtpv1u_teid_pool.c modified: openair3/NAS/COMMON/API/NETWORK/as_message.c modified: openair3/NAS/COMMON/API/NETWORK/l2_message.h modified: openair3/NAS/COMMON/API/NETWORK/nas_message.c modified: openair3/NAS/COMMON/API/NETWORK/nas_message.h modified: openair3/NAS/COMMON/API/NETWORK/network_api.c modified: openair3/NAS/COMMON/API/NETWORK/network_api.h modified: openair3/NAS/COMMON/EMM/MSG/AttachAccept.c modified: openair3/NAS/COMMON/EMM/MSG/AttachAccept.h modified: openair3/NAS/COMMON/EMM/MSG/AttachComplete.c modified: openair3/NAS/COMMON/EMM/MSG/AttachComplete.h modified: openair3/NAS/COMMON/EMM/MSG/AttachReject.c modified: openair3/NAS/COMMON/EMM/MSG/AttachReject.h modified: openair3/NAS/COMMON/EMM/MSG/AttachRequest.c modified: openair3/NAS/COMMON/EMM/MSG/AttachRequest.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationFailure.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationFailure.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationReject.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationReject.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationRequest.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationRequest.h modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationResponse.c modified: openair3/NAS/COMMON/EMM/MSG/AuthenticationResponse.h modified: openair3/NAS/COMMON/EMM/MSG/CsServiceNotification.c modified: openair3/NAS/COMMON/EMM/MSG/CsServiceNotification.h modified: openair3/NAS/COMMON/EMM/MSG/DetachAccept.c modified: openair3/NAS/COMMON/EMM/MSG/DetachAccept.h modified: openair3/NAS/COMMON/EMM/MSG/DetachRequest.c modified: openair3/NAS/COMMON/EMM/MSG/DetachRequest.h modified: openair3/NAS/COMMON/EMM/MSG/DownlinkNasTransport.c modified: openair3/NAS/COMMON/EMM/MSG/DownlinkNasTransport.h modified: openair3/NAS/COMMON/EMM/MSG/EmmInformation.c modified: openair3/NAS/COMMON/EMM/MSG/EmmInformation.h modified: openair3/NAS/COMMON/EMM/MSG/EmmStatus.c modified: openair3/NAS/COMMON/EMM/MSG/EmmStatus.h modified: openair3/NAS/COMMON/EMM/MSG/ExtendedServiceRequest.c modified: openair3/NAS/COMMON/EMM/MSG/ExtendedServiceRequest.h modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationCommand.c modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationCommand.h modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationComplete.c modified: openair3/NAS/COMMON/EMM/MSG/GutiReallocationComplete.h modified: openair3/NAS/COMMON/EMM/MSG/IdentityRequest.c modified: openair3/NAS/COMMON/EMM/MSG/IdentityRequest.h modified: openair3/NAS/COMMON/EMM/MSG/IdentityResponse.c modified: openair3/NAS/COMMON/EMM/MSG/IdentityResponse.h modified: openair3/NAS/COMMON/EMM/MSG/NASSecurityModeCommand.h modified: openair3/NAS/COMMON/EMM/MSG/NASSecurityModeComplete.h modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeCommand.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeComplete.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeReject.c modified: openair3/NAS/COMMON/EMM/MSG/SecurityModeReject.h modified: openair3/NAS/COMMON/EMM/MSG/ServiceReject.c modified: openair3/NAS/COMMON/EMM/MSG/ServiceReject.h modified: openair3/NAS/COMMON/EMM/MSG/ServiceRequest.c modified: openair3/NAS/COMMON/EMM/MSG/ServiceRequest.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateAccept.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateAccept.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateComplete.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateComplete.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateReject.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateReject.h modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateRequest.c modified: openair3/NAS/COMMON/EMM/MSG/TrackingAreaUpdateRequest.h modified: openair3/NAS/COMMON/EMM/MSG/UplinkNasTransport.c modified: openair3/NAS/COMMON/EMM/MSG/UplinkNasTransport.h modified: openair3/NAS/COMMON/EMM/MSG/emm_cause.h modified: openair3/NAS/COMMON/EMM/MSG/emm_msg.c modified: openair3/NAS/COMMON/EMM/MSG/emm_msg.h modified: openair3/NAS/COMMON/EMM/MSG/emm_msgDef.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDedicatedEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ActivateDefaultEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationReject.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationReject.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceAllocationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationReject.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationReject.h modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/BearerResourceModificationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/DeactivateEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationRequest.c modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationRequest.h modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationResponse.c modified: openair3/NAS/COMMON/ESM/MSG/EsmInformationResponse.h modified: openair3/NAS/COMMON/ESM/MSG/EsmStatus.c modified: openair3/NAS/COMMON/ESM/MSG/EsmStatus.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextAccept.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextReject.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextReject.h modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.c modified: openair3/NAS/COMMON/ESM/MSG/ModifyEpsBearerContextRequest.h modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityReject.c modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityReject.h modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityRequest.c modified: openair3/NAS/COMMON/ESM/MSG/PdnConnectivityRequest.h modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectReject.c modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectReject.h modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectRequest.c modified: openair3/NAS/COMMON/ESM/MSG/PdnDisconnectRequest.h modified: openair3/NAS/COMMON/ESM/MSG/esm_cause.h modified: openair3/NAS/COMMON/ESM/MSG/esm_msg.c modified: openair3/NAS/COMMON/ESM/MSG/esm_msg.h modified: openair3/NAS/COMMON/ESM/MSG/esm_msgDef.h modified: openair3/NAS/COMMON/IES/AccessPointName.c modified: openair3/NAS/COMMON/IES/AccessPointName.h modified: openair3/NAS/COMMON/IES/AdditionalUpdateResult.c modified: openair3/NAS/COMMON/IES/AdditionalUpdateResult.h modified: openair3/NAS/COMMON/IES/AdditionalUpdateType.c modified: openair3/NAS/COMMON/IES/AdditionalUpdateType.h modified: openair3/NAS/COMMON/IES/ApnAggregateMaximumBitRate.c modified: openair3/NAS/COMMON/IES/ApnAggregateMaximumBitRate.h modified: openair3/NAS/COMMON/IES/AuthenticationFailureParameter.c modified: openair3/NAS/COMMON/IES/AuthenticationFailureParameter.h modified: openair3/NAS/COMMON/IES/AuthenticationParameterAutn.c modified: openair3/NAS/COMMON/IES/AuthenticationParameterAutn.h modified: openair3/NAS/COMMON/IES/AuthenticationParameterRand.c modified: openair3/NAS/COMMON/IES/AuthenticationParameterRand.h modified: openair3/NAS/COMMON/IES/AuthenticationResponseParameter.c modified: openair3/NAS/COMMON/IES/AuthenticationResponseParameter.h modified: openair3/NAS/COMMON/IES/CipheringKeySequenceNumber.c modified: openair3/NAS/COMMON/IES/CipheringKeySequenceNumber.h modified: openair3/NAS/COMMON/IES/Cli.c modified: openair3/NAS/COMMON/IES/Cli.h modified: openair3/NAS/COMMON/IES/CsfbResponse.c modified: openair3/NAS/COMMON/IES/CsfbResponse.h modified: openair3/NAS/COMMON/IES/DaylightSavingTime.c modified: openair3/NAS/COMMON/IES/DaylightSavingTime.h modified: openair3/NAS/COMMON/IES/DetachType.c modified: openair3/NAS/COMMON/IES/DetachType.h modified: openair3/NAS/COMMON/IES/DrxParameter.c modified: openair3/NAS/COMMON/IES/DrxParameter.h modified: openair3/NAS/COMMON/IES/EmergencyNumberList.c modified: openair3/NAS/COMMON/IES/EmergencyNumberList.h modified: openair3/NAS/COMMON/IES/EmmCause.c modified: openair3/NAS/COMMON/IES/EmmCause.h modified: openair3/NAS/COMMON/IES/EpsAttachResult.c modified: openair3/NAS/COMMON/IES/EpsAttachResult.h modified: openair3/NAS/COMMON/IES/EpsAttachType.c modified: openair3/NAS/COMMON/IES/EpsAttachType.h modified: openair3/NAS/COMMON/IES/EpsBearerContextStatus.c modified: openair3/NAS/COMMON/IES/EpsBearerContextStatus.h modified: openair3/NAS/COMMON/IES/EpsBearerIdentity.c modified: openair3/NAS/COMMON/IES/EpsBearerIdentity.h modified: openair3/NAS/COMMON/IES/EpsMobileIdentity.c modified: openair3/NAS/COMMON/IES/EpsMobileIdentity.h modified: openair3/NAS/COMMON/IES/EpsNetworkFeatureSupport.c modified: openair3/NAS/COMMON/IES/EpsNetworkFeatureSupport.h modified: openair3/NAS/COMMON/IES/EpsQualityOfService.c modified: openair3/NAS/COMMON/IES/EpsQualityOfService.h modified: openair3/NAS/COMMON/IES/EpsUpdateResult.c modified: openair3/NAS/COMMON/IES/EpsUpdateResult.h modified: openair3/NAS/COMMON/IES/EpsUpdateType.c modified: openair3/NAS/COMMON/IES/EpsUpdateType.h modified: openair3/NAS/COMMON/IES/EsmCause.c modified: openair3/NAS/COMMON/IES/EsmCause.h modified: openair3/NAS/COMMON/IES/EsmInformationTransferFlag.c modified: openair3/NAS/COMMON/IES/EsmInformationTransferFlag.h modified: openair3/NAS/COMMON/IES/EsmMessageContainer.c modified: openair3/NAS/COMMON/IES/EsmMessageContainer.h modified: openair3/NAS/COMMON/IES/GprsTimer.c modified: openair3/NAS/COMMON/IES/GprsTimer.h modified: openair3/NAS/COMMON/IES/GutiType.c modified: openair3/NAS/COMMON/IES/GutiType.h modified: openair3/NAS/COMMON/IES/IdentityType2.c modified: openair3/NAS/COMMON/IES/IdentityType2.h modified: openair3/NAS/COMMON/IES/ImeisvRequest.c modified: openair3/NAS/COMMON/IES/ImeisvRequest.h modified: openair3/NAS/COMMON/IES/KsiAndSequenceNumber.c modified: openair3/NAS/COMMON/IES/KsiAndSequenceNumber.h modified: openair3/NAS/COMMON/IES/LcsClientIdentity.c modified: openair3/NAS/COMMON/IES/LcsClientIdentity.h modified: openair3/NAS/COMMON/IES/LcsIndicator.c modified: openair3/NAS/COMMON/IES/LcsIndicator.h modified: openair3/NAS/COMMON/IES/LinkedEpsBearerIdentity.c modified: openair3/NAS/COMMON/IES/LinkedEpsBearerIdentity.h modified: openair3/NAS/COMMON/IES/LlcServiceAccessPointIdentifier.c modified: openair3/NAS/COMMON/IES/LlcServiceAccessPointIdentifier.h modified: openair3/NAS/COMMON/IES/LocationAreaIdentification.c modified: openair3/NAS/COMMON/IES/LocationAreaIdentification.h modified: openair3/NAS/COMMON/IES/MessageType.c modified: openair3/NAS/COMMON/IES/MessageType.h modified: openair3/NAS/COMMON/IES/MobileIdentity.c modified: openair3/NAS/COMMON/IES/MobileIdentity.h modified: openair3/NAS/COMMON/IES/MobileStationClassmark2.c modified: openair3/NAS/COMMON/IES/MobileStationClassmark2.h modified: openair3/NAS/COMMON/IES/MobileStationClassmark3.c modified: openair3/NAS/COMMON/IES/MobileStationClassmark3.h modified: openair3/NAS/COMMON/IES/MsNetworkCapability.c modified: openair3/NAS/COMMON/IES/MsNetworkCapability.h modified: openair3/NAS/COMMON/IES/MsNetworkFeatureSupport.c modified: openair3/NAS/COMMON/IES/MsNetworkFeatureSupport.h modified: openair3/NAS/COMMON/IES/NasKeySetIdentifier.c modified: openair3/NAS/COMMON/IES/NasKeySetIdentifier.h modified: openair3/NAS/COMMON/IES/NasMessageContainer.c modified: openair3/NAS/COMMON/IES/NasMessageContainer.h modified: openair3/NAS/COMMON/IES/NasRequestType.c modified: openair3/NAS/COMMON/IES/NasRequestType.h modified: openair3/NAS/COMMON/IES/NasSecurityAlgorithms.c modified: openair3/NAS/COMMON/IES/NasSecurityAlgorithms.h modified: openair3/NAS/COMMON/IES/NetworkName.c modified: openair3/NAS/COMMON/IES/NetworkName.h modified: openair3/NAS/COMMON/IES/Nonce.c modified: openair3/NAS/COMMON/IES/Nonce.h modified: openair3/NAS/COMMON/IES/PTmsiSignature.c modified: openair3/NAS/COMMON/IES/PTmsiSignature.h modified: openair3/NAS/COMMON/IES/PacketFlowIdentifier.c modified: openair3/NAS/COMMON/IES/PacketFlowIdentifier.h modified: openair3/NAS/COMMON/IES/PagingIdentity.c modified: openair3/NAS/COMMON/IES/PagingIdentity.h modified: openair3/NAS/COMMON/IES/PdnAddress.c modified: openair3/NAS/COMMON/IES/PdnAddress.h modified: openair3/NAS/COMMON/IES/PdnType.c modified: openair3/NAS/COMMON/IES/PdnType.h modified: openair3/NAS/COMMON/IES/PlmnList.c modified: openair3/NAS/COMMON/IES/PlmnList.h modified: openair3/NAS/COMMON/IES/ProcedureTransactionIdentity.c modified: openair3/NAS/COMMON/IES/ProcedureTransactionIdentity.h modified: openair3/NAS/COMMON/IES/ProtocolConfigurationOptions.c modified: openair3/NAS/COMMON/IES/ProtocolConfigurationOptions.h modified: openair3/NAS/COMMON/IES/ProtocolDiscriminator.c modified: openair3/NAS/COMMON/IES/ProtocolDiscriminator.h modified: openair3/NAS/COMMON/IES/QualityOfService.c modified: openair3/NAS/COMMON/IES/QualityOfService.h modified: openair3/NAS/COMMON/IES/RadioPriority.c modified: openair3/NAS/COMMON/IES/RadioPriority.h modified: openair3/NAS/COMMON/IES/SecurityHeaderType.c modified: openair3/NAS/COMMON/IES/SecurityHeaderType.h modified: openair3/NAS/COMMON/IES/ServiceType.c modified: openair3/NAS/COMMON/IES/ServiceType.h modified: openair3/NAS/COMMON/IES/ShortMac.c modified: openair3/NAS/COMMON/IES/ShortMac.h modified: openair3/NAS/COMMON/IES/SsCode.c modified: openair3/NAS/COMMON/IES/SsCode.h modified: openair3/NAS/COMMON/IES/SupportedCodecList.c modified: openair3/NAS/COMMON/IES/SupportedCodecList.h modified: openair3/NAS/COMMON/IES/TimeZone.c modified: openair3/NAS/COMMON/IES/TimeZone.h modified: openair3/NAS/COMMON/IES/TimeZoneAndTime.c modified: openair3/NAS/COMMON/IES/TimeZoneAndTime.h modified: openair3/NAS/COMMON/IES/TmsiStatus.c modified: openair3/NAS/COMMON/IES/TmsiStatus.h modified: openair3/NAS/COMMON/IES/TrackingAreaIdentity.c modified: openair3/NAS/COMMON/IES/TrackingAreaIdentity.h modified: openair3/NAS/COMMON/IES/TrackingAreaIdentityList.c modified: openair3/NAS/COMMON/IES/TrackingAreaIdentityList.h modified: openair3/NAS/COMMON/IES/TrafficFlowAggregateDescription.c modified: openair3/NAS/COMMON/IES/TrafficFlowAggregateDescription.h modified: openair3/NAS/COMMON/IES/TrafficFlowTemplate.c modified: openair3/NAS/COMMON/IES/TrafficFlowTemplate.h modified: openair3/NAS/COMMON/IES/TransactionIdentifier.c modified: openair3/NAS/COMMON/IES/TransactionIdentifier.h modified: openair3/NAS/COMMON/IES/UeNetworkCapability.c modified: openair3/NAS/COMMON/IES/UeNetworkCapability.h modified: openair3/NAS/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.c modified: openair3/NAS/COMMON/IES/UeRadioCapabilityInformationUpdateNeeded.h modified: openair3/NAS/COMMON/IES/UeSecurityCapability.c modified: openair3/NAS/COMMON/IES/UeSecurityCapability.h modified: openair3/NAS/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.c modified: openair3/NAS/COMMON/IES/VoiceDomainPreferenceAndUeUsageSetting.h modified: openair3/NAS/COMMON/UTIL/OctetString.c modified: openair3/NAS/COMMON/UTIL/OctetString.h modified: openair3/NAS/COMMON/UTIL/TLVDecoder.c modified: openair3/NAS/COMMON/UTIL/TLVDecoder.h modified: openair3/NAS/COMMON/UTIL/TLVEncoder.c modified: openair3/NAS/COMMON/UTIL/TLVEncoder.h modified: openair3/NAS/COMMON/UTIL/device.c modified: openair3/NAS/COMMON/UTIL/device.h modified: openair3/NAS/COMMON/UTIL/memory.c modified: openair3/NAS/COMMON/UTIL/memory.h modified: openair3/NAS/COMMON/UTIL/nas_log.c modified: openair3/NAS/COMMON/UTIL/nas_log.h modified: openair3/NAS/COMMON/UTIL/nas_timer.c modified: openair3/NAS/COMMON/UTIL/nas_timer.h modified: openair3/NAS/COMMON/UTIL/parser.c modified: openair3/NAS/COMMON/UTIL/parser.h modified: openair3/NAS/COMMON/UTIL/socket.c modified: openair3/NAS/COMMON/UTIL/socket.h modified: openair3/NAS/COMMON/UTIL/stty.c modified: openair3/NAS/COMMON/UTIL/tst/timer.c modified: openair3/NAS/COMMON/securityDef.h modified: openair3/NAS/COMMON/userDef.h modified: openair3/NAS/TOOLS/network.h modified: openair3/NAS/TOOLS/ue_data.c modified: openair3/NAS/TOOLS/usim_data.c modified: openair3/NAS/UE/API/USER/at_command.c modified: openair3/NAS/UE/API/USER/at_command.h modified: openair3/NAS/UE/API/USER/at_error.c modified: openair3/NAS/UE/API/USER/at_error.h modified: openair3/NAS/UE/API/USER/at_response.c modified: openair3/NAS/UE/API/USER/at_response.h modified: openair3/NAS/UE/API/USER/tst/at_parser.c modified: openair3/NAS/UE/API/USER/user_api.c modified: openair3/NAS/UE/API/USER/user_api.h modified: openair3/NAS/UE/API/USER/user_indication.c modified: openair3/NAS/UE/API/USER/user_indication.h modified: openair3/NAS/UE/API/USIM/aka_functions.h modified: openair3/NAS/UE/API/USIM/usim_api.c modified: openair3/NAS/UE/API/USIM/usim_api.h modified: openair3/NAS/UE/EMM/Attach.c modified: openair3/NAS/UE/EMM/Authentication.c modified: openair3/NAS/UE/EMM/Detach.c modified: openair3/NAS/UE/EMM/EmmStatusHdl.c modified: openair3/NAS/UE/EMM/Identification.c modified: openair3/NAS/UE/EMM/IdleMode.c modified: openair3/NAS/UE/EMM/IdleMode.h modified: openair3/NAS/UE/EMM/LowerLayer.c modified: openair3/NAS/UE/EMM/LowerLayer.h modified: openair3/NAS/UE/EMM/SAP/EmmDeregistered.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredAttachNeeded.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredAttemptingToAttach.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredLimitedService.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNoCellAvailable.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNoImsi.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredNormalService.c modified: openair3/NAS/UE/EMM/SAP/EmmDeregisteredPlmnSearch.c modified: openair3/NAS/UE/EMM/SAP/EmmNull.c modified: openair3/NAS/UE/EMM/SAP/EmmRegistered.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredAttemptingToUpdate.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredImsiDetachInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredLimitedService.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredNoCellAvailable.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredNormalService.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredPlmnSearch.c modified: openair3/NAS/UE/EMM/SAP/EmmRegisteredUpdateNeeded.c modified: openair3/NAS/UE/EMM/SAP/EmmServiceRequestInitiated.c modified: openair3/NAS/UE/EMM/SAP/EmmTrackingAreaUpdatingInitiated.c modified: openair3/NAS/UE/EMM/SAP/emm_as.c modified: openair3/NAS/UE/EMM/SAP/emm_as.h modified: openair3/NAS/UE/EMM/SAP/emm_asDef.h modified: openair3/NAS/UE/EMM/SAP/emm_esm.c modified: openair3/NAS/UE/EMM/SAP/emm_esm.h modified: openair3/NAS/UE/EMM/SAP/emm_esmDef.h modified: openair3/NAS/UE/EMM/SAP/emm_fsm.c modified: openair3/NAS/UE/EMM/SAP/emm_fsm.h modified: openair3/NAS/UE/EMM/SAP/emm_recv.c modified: openair3/NAS/UE/EMM/SAP/emm_recv.h modified: openair3/NAS/UE/EMM/SAP/emm_reg.c modified: openair3/NAS/UE/EMM/SAP/emm_reg.h modified: openair3/NAS/UE/EMM/SAP/emm_regDef.h modified: openair3/NAS/UE/EMM/SAP/emm_sap.c modified: openair3/NAS/UE/EMM/SAP/emm_sap.h modified: openair3/NAS/UE/EMM/SAP/emm_send.c modified: openair3/NAS/UE/EMM/SAP/emm_send.h modified: openair3/NAS/UE/EMM/SecurityModeControl.c modified: openair3/NAS/UE/EMM/ServiceRequestHdl.c modified: openair3/NAS/UE/EMM/TrackingAreaUpdate.c modified: openair3/NAS/UE/EMM/emmData.h modified: openair3/NAS/UE/EMM/emm_main.c modified: openair3/NAS/UE/EMM/emm_main.h modified: openair3/NAS/UE/EMM/emm_proc.h modified: openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c modified: openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c modified: openair3/NAS/UE/ESM/EpsBearerContextDeactivation.c modified: openair3/NAS/UE/ESM/EsmStatusHdl.c modified: openair3/NAS/UE/ESM/PdnConnectivity.c modified: openair3/NAS/UE/ESM/PdnDisconnect.c modified: openair3/NAS/UE/ESM/SAP/esm_recv.c modified: openair3/NAS/UE/ESM/SAP/esm_recv.h modified: openair3/NAS/UE/ESM/SAP/esm_sap.c modified: openair3/NAS/UE/ESM/SAP/esm_sap.h modified: openair3/NAS/UE/ESM/SAP/esm_sapDef.h modified: openair3/NAS/UE/ESM/SAP/esm_send.c modified: openair3/NAS/UE/ESM/SAP/esm_send.h modified: openair3/NAS/UE/ESM/esmData.h modified: openair3/NAS/UE/ESM/esm_ebr.c modified: openair3/NAS/UE/ESM/esm_ebr.h modified: openair3/NAS/UE/ESM/esm_ebr_context.c modified: openair3/NAS/UE/ESM/esm_ebr_context.h modified: openair3/NAS/UE/ESM/esm_ip.c modified: openair3/NAS/UE/ESM/esm_main.c modified: openair3/NAS/UE/ESM/esm_main.h modified: openair3/NAS/UE/ESM/esm_proc.h modified: openair3/NAS/UE/ESM/esm_pt.c modified: openair3/NAS/UE/ESM/esm_pt.h modified: openair3/NAS/UE/UEprocess.c modified: openair3/NAS/UE/nas_itti_messaging.c modified: openair3/NAS/UE/nas_itti_messaging.h modified: openair3/NAS/UE/nas_network.c modified: openair3/NAS/UE/nas_network.h modified: openair3/NAS/UE/nas_parser.c modified: openair3/NAS/UE/nas_parser.h modified: openair3/NAS/UE/nas_proc.c modified: openair3/NAS/UE/nas_proc.h modified: openair3/NAS/UE/nas_ue_task.c modified: openair3/NAS/UE/nas_user.c modified: openair3/NAS/UE/nas_user.h modified: openair3/S1AP/s1ap_common.c modified: openair3/S1AP/s1ap_common.h modified: openair3/S1AP/s1ap_eNB.c modified: openair3/S1AP/s1ap_eNB.h modified: openair3/S1AP/s1ap_eNB_context_management_procedures.c modified: openair3/S1AP/s1ap_eNB_context_management_procedures.h modified: openair3/S1AP/s1ap_eNB_decoder.c modified: openair3/S1AP/s1ap_eNB_decoder.h modified: openair3/S1AP/s1ap_eNB_default_values.h modified: openair3/S1AP/s1ap_eNB_defs.h modified: openair3/S1AP/s1ap_eNB_encoder.c modified: openair3/S1AP/s1ap_eNB_encoder.h modified: openair3/S1AP/s1ap_eNB_handlers.c modified: openair3/S1AP/s1ap_eNB_handlers.h modified: openair3/S1AP/s1ap_eNB_itti_messaging.c modified: openair3/S1AP/s1ap_eNB_itti_messaging.h modified: openair3/S1AP/s1ap_eNB_management_procedures.c modified: openair3/S1AP/s1ap_eNB_management_procedures.h modified: openair3/S1AP/s1ap_eNB_nas_procedures.c modified: openair3/S1AP/s1ap_eNB_nas_procedures.h modified: openair3/S1AP/s1ap_eNB_nnsf.c modified: openair3/S1AP/s1ap_eNB_nnsf.h modified: openair3/S1AP/s1ap_eNB_overload.c modified: openair3/S1AP/s1ap_eNB_overload.h modified: openair3/S1AP/s1ap_eNB_trace.c modified: openair3/S1AP/s1ap_eNB_trace.h modified: openair3/S1AP/s1ap_eNB_ue_context.c modified: openair3/S1AP/s1ap_eNB_ue_context.h modified: openair3/SCTP/sctp_common.c modified: openair3/SCTP/sctp_common.h modified: openair3/SCTP/sctp_default_values.h modified: openair3/SCTP/sctp_eNB_defs.h modified: openair3/SCTP/sctp_eNB_itti_messaging.c modified: openair3/SCTP/sctp_eNB_itti_messaging.h modified: openair3/SCTP/sctp_eNB_task.c modified: openair3/SCTP/sctp_eNB_task.h modified: openair3/SCTP/sctp_primitives_client.c modified: openair3/SCTP/sctp_primitives_client.h modified: openair3/SECU/kdf.c modified: openair3/SECU/key_nas_deriver.c modified: openair3/SECU/key_nas_encryption.c modified: openair3/SECU/nas_stream_eea1.c modified: openair3/SECU/nas_stream_eea2.c modified: openair3/SECU/nas_stream_eia1.c modified: openair3/SECU/nas_stream_eia2.c modified: openair3/SECU/rijndael.h modified: openair3/SECU/secu_defs.h modified: openair3/SECU/snow3g.c modified: openair3/SECU/snow3g.h modified: openair3/TEST/EPC_TEST/generate_scenario.c modified: openair3/TEST/EPC_TEST/generate_scenario.h modified: openair3/TEST/EPC_TEST/play_scenario.c modified: openair3/TEST/EPC_TEST/play_scenario.h modified: openair3/TEST/EPC_TEST/play_scenario_decode.c modified: openair3/TEST/EPC_TEST/play_scenario_display.c modified: openair3/TEST/EPC_TEST/play_scenario_fsm.c modified: openair3/TEST/EPC_TEST/play_scenario_parse.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap_compare_ie.c modified: openair3/TEST/EPC_TEST/play_scenario_s1ap_eNB_defs.h modified: openair3/TEST/EPC_TEST/play_scenario_sctp.c modified: openair3/TEST/oaisim_mme_client_test.c modified: openair3/TEST/oaisim_mme_itti_test.c modified: openair3/TEST/oaisim_mme_list_benchmark.c modified: openair3/TEST/oaisim_mme_s1ap_test.c modified: openair3/TEST/oaisim_mme_sctp_test.c modified: openair3/TEST/oaisim_mme_test_s1c.c modified: openair3/TEST/oaisim_mme_test_s1c.h modified: openair3/TEST/oaisim_mme_test_s1c_s1ap.c modified: openair3/TEST/oaisim_mme_test_s1c_s1ap.h modified: openair3/TEST/oaisim_mme_test_s1c_scenario.c modified: openair3/TEST/oaisim_mme_test_s1c_scenario.h modified: openair3/TEST/oaisim_mme_test_s1c_scenario1.c modified: openair3/TEST/test_aes128_cmac_encrypt.c modified: openair3/TEST/test_aes128_ctr_decrypt.c modified: openair3/TEST/test_aes128_ctr_encrypt.c modified: openair3/TEST/test_kdf.c modified: openair3/TEST/test_s1ap.c modified: openair3/TEST/test_secu.c modified: openair3/TEST/test_secu_kenb.c modified: openair3/TEST/test_secu_knas.c modified: openair3/TEST/test_secu_knas_encrypt_eea1.c modified: openair3/TEST/test_secu_knas_encrypt_eea2.c modified: openair3/TEST/test_secu_knas_encrypt_eia1.c modified: openair3/TEST/test_secu_knas_encrypt_eia2.c modified: openair3/TEST/test_secu_knas_stream_int.c modified: openair3/UDP/udp_eNB_task.c modified: openair3/UDP/udp_eNB_task.h modified: openair3/UTILS/HASHTABLE/hashtable.c modified: openair3/UTILS/HASHTABLE/hashtable.h modified: openair3/UTILS/HASHTABLE/obj_hashtable.c modified: openair3/UTILS/HASHTABLE/obj_hashtable.h modified: openair3/UTILS/conversions.c modified: openair3/UTILS/conversions.h modified: openair3/UTILS/enum_string.c modified: openair3/UTILS/enum_string.h modified: openair3/UTILS/log.c modified: openair3/UTILS/log.h modified: openair3/UTILS/mcc_mnc_itu.c modified: openair3/UTILS/mcc_mnc_itu.h modified: openair3/UTILS/mme_config.c modified: openair3/UTILS/mme_config.h modified: openair3/UTILS/mme_default_values.h modified: targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.c modified: targets/ARCH/BLADERF/USERSPACE/LIB/bladerf_lib.h modified: targets/ARCH/COMMON/common_lib.c modified: targets/ARCH/COMMON/common_lib.h modified: targets/ARCH/ETHERNET/USERSPACE/LIB/eth_raw.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/eth_udp.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.c modified: targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.h modified: targets/ARCH/EXMIMO/DEFS/openair_device.h modified: targets/ARCH/EXMIMO/DEFS/pcie_interface.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/defs.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/exmimo_fw.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/extern.h modified: targets/ARCH/EXMIMO/DRIVER/eurecom/fileops.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/irq.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/module_main.c modified: targets/ARCH/EXMIMO/DRIVER/eurecom/vars.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/defs.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/exmimo_fw.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/extern.h modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/fileops.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/irq.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/module_main.c modified: targets/ARCH/EXMIMO/DRIVER/exmimo3/vars.h modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_dev.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_drv.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_drv.h modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_fifos.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_ioctl.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_mmap.c modified: targets/ARCH/EXMIMO/DRIVER/telecomparistech/em1_rw.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/example.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/gain_control.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/gain_control.h modified: targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c modified: targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/elf.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/elftypes.h modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/updatefw.c modified: targets/ARCH/EXMIMO/USERSPACE/OAI_FW_INIT/updatefw.h modified: targets/ARCH/LMSSDR/USERSPACE/LIB/lms_lib.cpp modified: targets/ARCH/LMSSDR/USERSPACE/LIB/sodera_lib.cpp modified: targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp modified: targets/COMMON/create_tasks.c modified: targets/COMMON/create_tasks.h modified: targets/RT/USER/TOOLS/thread_ipc.c modified: targets/RT/USER/TOOLS/thread_ipc.h modified: targets/RT/USER/UE_transport_IQ.c modified: targets/RT/USER/condtest.c modified: targets/RT/USER/eNB_transport_IQ.c modified: targets/RT/USER/emos-raw.c modified: targets/RT/USER/lte-softmodem.c modified: targets/RT/USER/lte-ue.c modified: targets/RT/USER/msg_many.h modified: targets/RT/USER/rrh.c modified: targets/RT/USER/rrh_gw.c modified: targets/RT/USER/rrh_gw.h modified: targets/RT/USER/rrh_gw_externs.h modified: targets/RT/USER/rt_wrapper.c modified: targets/RT/USER/rt_wrapper.h modified: targets/RT/USER/sched_dlsch.c modified: targets/RT/USER/sched_rx_pdsch.c modified: targets/RT/USER/sched_ulsch.c modified: targets/RT/USER/sleeptest.c modified: targets/RT/USER/synctest.c modified: targets/SIMU/PROC/Process.c modified: targets/SIMU/PROC/Process.h modified: targets/SIMU/PROC/Tsync.h modified: targets/SIMU/PROC/channel_sim_proc.c modified: targets/SIMU/PROC/channel_sim_proc.h modified: targets/SIMU/PROC/interface.h modified: targets/SIMU/USER/channel_sim.c modified: targets/SIMU/USER/cor_SF_sim.c modified: targets/SIMU/USER/cor_SF_sim.h modified: targets/SIMU/USER/event_handler.c modified: targets/SIMU/USER/event_handler.h modified: targets/SIMU/USER/init_lte.c modified: targets/SIMU/USER/init_lte.h modified: targets/SIMU/USER/oaisim.c modified: targets/SIMU/USER/oaisim.h modified: targets/SIMU/USER/oaisim_config.c modified: targets/SIMU/USER/oaisim_config.h modified: targets/SIMU/USER/oaisim_functions.c modified: targets/SIMU/USER/oaisim_functions.h modified: targets/SIMU/USER/oaisim_pad.c modified: targets/SIMU/USER/sinr_sim.c
1852 lines
71 KiB
C
1852 lines
71 KiB
C
/*****************************************************************************
|
||
|
||
Source at_command.c
|
||
|
||
Version 0.1
|
||
|
||
Date 2012/03/07
|
||
|
||
Product NAS stack
|
||
|
||
Subsystem Application Programming Interface
|
||
|
||
Author Frederic Maurel, Baris Demiray
|
||
|
||
Description Defines the ATtention (AT) command set supported by the NAS
|
||
sublayer protocol
|
||
|
||
*****************************************************************************/
|
||
|
||
#include "at_command.h"
|
||
#include "commonDef.h"
|
||
#include "nas_log.h"
|
||
|
||
#include "at_error.h"
|
||
|
||
#include <ctype.h> // isspace, isdigit
|
||
#include <stdlib.h> // strtol, malloc, free
|
||
#include <string.h> // strncpy, strstr, strchr, strcmp, strncasecmp
|
||
// strlen, memmove, strdup, strtok
|
||
#include <stdarg.h> // va_start, va_arg, va_end
|
||
|
||
/****************************************************************************/
|
||
/**************** E X T E R N A L D E F I N I T I O N S ****************/
|
||
/****************************************************************************/
|
||
|
||
extern int at_response_format_v1;
|
||
extern int at_error_code_suppression_q1;
|
||
extern at_error_format_t at_error_format;
|
||
|
||
/****************************************************************************/
|
||
/******************* L O C A L D E F I N I T I O N S *******************/
|
||
/****************************************************************************/
|
||
|
||
/* Handlers used to parse AT commands */
|
||
static int parse_e0(const char*, int, at_command_t*);
|
||
static int parse_e1(const char*, int, at_command_t*);
|
||
static int parse_q0(const char*, int, at_command_t*);
|
||
static int parse_q1(const char*, int, at_command_t*);
|
||
static int parse_v0(const char*, int, at_command_t*);
|
||
static int parse_v1(const char*, int, at_command_t*);
|
||
static int parse_cgsn(const char*, int, at_command_t*);
|
||
static int parse_cgsn_test(const char*, int, at_command_t*);
|
||
static int parse_cgmi(const char*, int, at_command_t*);
|
||
static int parse_cgmi_test(const char*, int, at_command_t*);
|
||
static int parse_cgmm(const char*, int, at_command_t*);
|
||
static int parse_cgmm_test(const char*, int, at_command_t*);
|
||
static int parse_cgmr(const char*, int, at_command_t*);
|
||
static int parse_cgmr_test(const char*, int, at_command_t*);
|
||
static int parse_cimi(const char*, int, at_command_t*);
|
||
static int parse_cimi_test(const char*, int, at_command_t*);
|
||
static int parse_cfun_set(const char*, int, at_command_t*);
|
||
static int parse_cfun_get(const char*, int, at_command_t*);
|
||
static int parse_cfun_test(const char*, int, at_command_t*);
|
||
static int parse_cpin_set(const char*, int, at_command_t*);
|
||
static int parse_cpin_get(const char*, int, at_command_t*);
|
||
static int parse_cpin_test(const char*, int, at_command_t*);
|
||
static int parse_csq(const char*, int, at_command_t*);
|
||
static int parse_csq_test(const char*, int, at_command_t*);
|
||
static int parse_cesq(const char*, int, at_command_t*);
|
||
static int parse_cesq_test(const char*, int, at_command_t*);
|
||
static int parse_clac(const char*, int, at_command_t*);
|
||
static int parse_clac_test(const char*, int, at_command_t*);
|
||
static int parse_cmee_set(const char*, int, at_command_t*);
|
||
static int parse_cmee_get(const char*, int, at_command_t*);
|
||
static int parse_cmee_test(const char*, int, at_command_t*);
|
||
static int parse_cnum(const char*, int, at_command_t*);
|
||
static int parse_cnum_test(const char*, int, at_command_t*);
|
||
static int parse_clck_set(const char*, int, at_command_t*);
|
||
static int parse_clck_test(const char*, int, at_command_t*);
|
||
static int parse_cops_set(const char*, int, at_command_t*);
|
||
static int parse_cops_get(const char*, int, at_command_t*);
|
||
static int parse_cops_test(const char*, int, at_command_t*);
|
||
static int parse_creg_set(const char*, int, at_command_t*);
|
||
static int parse_creg_get(const char*, int, at_command_t*);
|
||
static int parse_creg_test(const char*, int, at_command_t*);
|
||
static int parse_cgatt_set(const char*, int, at_command_t*);
|
||
static int parse_cgatt_get(const char*, int, at_command_t*);
|
||
static int parse_cgatt_test(const char*, int, at_command_t*);
|
||
static int parse_cgreg_set(const char*, int, at_command_t*);
|
||
static int parse_cgreg_get(const char*, int, at_command_t*);
|
||
static int parse_cgreg_test(const char*, int, at_command_t*);
|
||
static int parse_cereg_set(const char*, int, at_command_t*);
|
||
static int parse_cereg_get(const char*, int, at_command_t*);
|
||
static int parse_cereg_test(const char*, int, at_command_t*);
|
||
static int parse_cgdcont_set(const char*, int, at_command_t*);
|
||
static int parse_cgdcont_get(const char*, int, at_command_t*);
|
||
static int parse_cgdcont_test(const char*, int, at_command_t*);
|
||
static int parse_cgact_set(const char*, int, at_command_t*);
|
||
static int parse_cgact_get(const char*, int, at_command_t*);
|
||
static int parse_cgact_test(const char*, int, at_command_t*);
|
||
static int parse_cgpaddr_set(const char*, int, at_command_t*);
|
||
static int parse_cgpaddr_test(const char*, int, at_command_t*);
|
||
|
||
/* List of AT command handlers */
|
||
typedef struct {
|
||
char *command;
|
||
int (*handler)(const char *, int, at_command_t*);
|
||
at_command_type_t type;
|
||
} at_command_handler_t;
|
||
|
||
static const at_command_handler_t _at_command_handler[] = {
|
||
/* TE-TA interface commands */
|
||
{ "E0", parse_e0, AT_COMMAND_ACT },
|
||
{ "E1", parse_e1, AT_COMMAND_ACT },
|
||
{ "Q0", parse_q0, AT_COMMAND_ACT },
|
||
{ "Q1", parse_q1, AT_COMMAND_ACT },
|
||
{ "V0", parse_v0, AT_COMMAND_ACT },
|
||
{ "V1", parse_v1, AT_COMMAND_ACT },
|
||
{ "E0Q0V0", parse_v0, AT_COMMAND_ACT },
|
||
{ "E0Q0V1", parse_v1, AT_COMMAND_ACT },
|
||
{ "E1Q0V0", parse_v0, AT_COMMAND_ACT },
|
||
{ "E1Q0V1", parse_v1, AT_COMMAND_ACT },
|
||
/* Request Product Serial Number identification (IMEI) */
|
||
{ "+CGSN", parse_cgsn, AT_COMMAND_ACT },
|
||
{ "+CGSN=?", parse_cgsn_test, AT_COMMAND_TST },
|
||
/* Request manufacturer identification */
|
||
{ "+CGMI", parse_cgmi, AT_COMMAND_ACT },
|
||
{ "+CGMI=?", parse_cgmi_test, AT_COMMAND_TST },
|
||
/* Request model identification */
|
||
{ "+CGMM", parse_cgmm, AT_COMMAND_ACT },
|
||
{ "+CGMM=?", parse_cgmm_test, AT_COMMAND_TST },
|
||
/* Request revision identification */
|
||
{ "+CGMR", parse_cgmr, AT_COMMAND_ACT },
|
||
{ "+CGMR=?", parse_cgmr_test, AT_COMMAND_TST },
|
||
/* Request International Mobile Subscriber Identity */
|
||
{ "+CIMI", parse_cimi, AT_COMMAND_ACT },
|
||
{ "+CIMI=?", parse_cimi_test, AT_COMMAND_TST },
|
||
/* Set phone functionality */
|
||
{ "+CFUN=", parse_cfun_set, AT_COMMAND_SET },
|
||
{ "+CFUN?", parse_cfun_get, AT_COMMAND_GET },
|
||
{ "+CFUN=?", parse_cfun_test, AT_COMMAND_TST },
|
||
/* Enter PIN */
|
||
{ "+CPIN=", parse_cpin_set, AT_COMMAND_SET },
|
||
{ "+CPIN?", parse_cpin_get, AT_COMMAND_GET },
|
||
{ "+CPIN=?", parse_cpin_test, AT_COMMAND_TST },
|
||
/* Signal quality */
|
||
{ "+CSQ", parse_csq, AT_COMMAND_ACT },
|
||
{ "+CSQ=?", parse_csq_test, AT_COMMAND_TST },
|
||
/* Extended signal quality */
|
||
{ "+CESQ", parse_cesq, AT_COMMAND_ACT },
|
||
{ "+CESQ=?", parse_cesq_test, AT_COMMAND_TST },
|
||
/* List all available AT commands */
|
||
{ "+CLAC", parse_clac, AT_COMMAND_ACT },
|
||
{ "+CLAC=?", parse_clac_test, AT_COMMAND_TST },
|
||
/* Report mobile termination error */
|
||
{ "+CMEE=", parse_cmee_set, AT_COMMAND_SET },
|
||
{ "+CMEE?", parse_cmee_get, AT_COMMAND_GET },
|
||
{ "+CMEE=?", parse_cmee_test, AT_COMMAND_TST },
|
||
/* Subscriber number */
|
||
{ "+CNUM", parse_cnum, AT_COMMAND_ACT },
|
||
{ "+CNUM=?", parse_cnum_test, AT_COMMAND_TST },
|
||
/* Facility lock */
|
||
{ "+CLCK=", parse_clck_set, AT_COMMAND_SET },
|
||
{ "+CLCK=?", parse_clck_test, AT_COMMAND_TST },
|
||
/* PLMN selection */
|
||
{ "+COPS=", parse_cops_set, AT_COMMAND_SET },
|
||
{ "+COPS?", parse_cops_get, AT_COMMAND_GET },
|
||
{ "+COPS=?", parse_cops_test, AT_COMMAND_TST },
|
||
/* Network registration */
|
||
{ "+CREG=", parse_creg_set, AT_COMMAND_SET },
|
||
{ "+CREG?", parse_creg_get, AT_COMMAND_GET },
|
||
{ "+CREG=?", parse_creg_test, AT_COMMAND_TST },
|
||
/* GPRS service attach/detach */
|
||
{ "+CGATT=", parse_cgatt_set, AT_COMMAND_SET },
|
||
{ "+CGATT?", parse_cgatt_get, AT_COMMAND_GET },
|
||
{ "+CGATT=?", parse_cgatt_test, AT_COMMAND_TST },
|
||
/* GPRS network registration status */
|
||
{ "+CGREG=", parse_cgreg_set, AT_COMMAND_SET },
|
||
{ "+CGREG?", parse_cgreg_get, AT_COMMAND_GET },
|
||
{ "+CGREG=?", parse_cgreg_test, AT_COMMAND_TST },
|
||
/* EPS network registration status */
|
||
{ "+CEREG=", parse_cereg_set, AT_COMMAND_SET },
|
||
{ "+CEREG?", parse_cereg_get, AT_COMMAND_GET },
|
||
{ "+CEREG=?", parse_cereg_test, AT_COMMAND_TST },
|
||
/* Define PDP Context */
|
||
{ "+CGDCONT=", parse_cgdcont_set, AT_COMMAND_SET },
|
||
{ "+CGDCONT?", parse_cgdcont_get, AT_COMMAND_GET },
|
||
{ "+CGDCONT=?", parse_cgdcont_test, AT_COMMAND_TST },
|
||
/* PDP context activate or deactivate */
|
||
{ "+CGACT=", parse_cgact_set, AT_COMMAND_SET },
|
||
{ "+CGACT?", parse_cgact_get, AT_COMMAND_GET },
|
||
{ "+CGACT=?", parse_cgact_test, AT_COMMAND_TST },
|
||
/* Show PDP address(es) */
|
||
{ "+CGPADDR=", parse_cgpaddr_set, AT_COMMAND_SET },
|
||
{ "+CGPADDR=?", parse_cgpaddr_test, AT_COMMAND_TST },
|
||
|
||
{ "null", NULL }
|
||
};
|
||
|
||
static int ParseString(char * at_str, at_command_t* at_command);
|
||
static int ParseCommand(const unsigned char *str, const char *format, ...);
|
||
static size_t GrabString(const unsigned char *str, char **output);
|
||
static unsigned int NumberOfParameters(const unsigned char* str);
|
||
static unsigned int IsNumeric(const char* str, size_t len);
|
||
|
||
/****************************************************************************/
|
||
/****************** E X P O R T E D F U N C T I O N S ******************/
|
||
/****************************************************************************/
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: at_command_decode() **
|
||
** **
|
||
** Description: Parses AT command line and accordingly fills data struc- **
|
||
** ture. The main functions of the AT command parser are: **
|
||
** - check the AT command syntax **
|
||
** - fill parameter values into the data structure **
|
||
** **
|
||
** Inputs: buffer: Pointer to the buffer containing AT com- **
|
||
** mand line **
|
||
** length: Number of bytes that should be processed **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: at_command: AT command data structure to be filled **
|
||
** Return: The number of AT commands successfully **
|
||
** decoded; RETURNerror if an error occurred **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
int at_command_decode(const char* buffer, int length, at_command_t* at_command)
|
||
{
|
||
LOG_FUNC_IN;
|
||
|
||
int rc = RETURNok;
|
||
|
||
if (length < 3) {
|
||
/* Minimum size to carry an AT command is 3 */
|
||
LOG_TRACE(ERROR, "USR-API - Input is short of size to carry an AT command!");
|
||
return RETURNerror;
|
||
} else if (strncasecmp(buffer, "AT", 2) != 0) {
|
||
/* There must be AT initials in input... */
|
||
LOG_TRACE(ERROR, "USR-API - There is no proper initials (AT) in input!");
|
||
return RETURNerror;
|
||
} else if (buffer[length - 1] != '\r') {
|
||
/* And there must be CR at the end */
|
||
LOG_TRACE(ERROR, "USR-API - There is no Carriage Return at the end!");
|
||
return RETURNerror;
|
||
} else if (strcasecmp(buffer, "AT\r") == 0) {
|
||
/* AT command alone; just return OK */
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return (1);
|
||
}
|
||
|
||
/* Parse the AT command line */
|
||
int i;
|
||
char* buf = strdup(buffer+2);
|
||
char* cmd = strtok(buf, ";");
|
||
|
||
for (i=0; cmd && (rc != RETURNerror); i++) {
|
||
rc = ParseString(cmd, &at_command[i]);
|
||
cmd = strtok(NULL, ";");
|
||
}
|
||
|
||
free(buf);
|
||
|
||
if (rc != RETURNerror) {
|
||
LOG_FUNC_RETURN (i);
|
||
}
|
||
|
||
LOG_FUNC_RETURN (rc);
|
||
}
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: at_command_get_list() **
|
||
** **
|
||
** Description: Returns the list of supported AT commands. **
|
||
** **
|
||
** Inputs: buffer: Pointer to the buffer containing the **
|
||
** string representaton of the first AT com- **
|
||
** mand that is supported by the NAS sublayer **
|
||
** n_max: Maximum number of AT commands the buffer **
|
||
** may contain **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: None **
|
||
** Return: The number of AT commands actually suppor- **
|
||
** ted by the NAS sublayer **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
int at_command_get_list(const char** buffer, int n_max)
|
||
{
|
||
LOG_FUNC_IN;
|
||
|
||
int handler_index = 0;
|
||
|
||
while ( (strcmp(_at_command_handler[handler_index].command, "null") != 0) &&
|
||
(handler_index < n_max) ) {
|
||
*buffer++ = _at_command_handler[handler_index++].command;
|
||
}
|
||
|
||
LOG_FUNC_RETURN (handler_index);
|
||
}
|
||
|
||
/****************************************************************************/
|
||
/********************* L O C A L F U N C T I O N S *********************/
|
||
/****************************************************************************/
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: ParseString() **
|
||
** **
|
||
** Description: Calls the appropriate parsing handler after having **
|
||
** successfully parsed the AT command prefix. **
|
||
** **
|
||
** Inputs: at_str: Pointer to the buffer containing AT com- **
|
||
** mand line **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: at_command: AT command structure to be filled **
|
||
** Return: The AT command identifier when the buffer **
|
||
** has been successfully processed; **
|
||
** RETURNerror otherwise. **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
static int ParseString(char * at_str, at_command_t* at_command)
|
||
{
|
||
char* terminal_character_index = NULL;
|
||
int num_of_chars_to_compare = -1;
|
||
int handler_index;
|
||
int handler_found = FALSE;
|
||
int check_for_carriage_return_index = 0;
|
||
|
||
/*
|
||
* Find the number of characters we should be comparing against
|
||
* the command list
|
||
*/
|
||
if ((terminal_character_index = strstr(at_str, "=?")) != NULL) {
|
||
/* `test' command */
|
||
num_of_chars_to_compare = terminal_character_index - at_str + 2;
|
||
check_for_carriage_return_index = 1;
|
||
at_command->type = AT_COMMAND_TST;
|
||
} else if ((terminal_character_index = strchr(at_str, '?')) != NULL) {
|
||
/* `read' command */
|
||
num_of_chars_to_compare = terminal_character_index - at_str + 1;
|
||
check_for_carriage_return_index = 1;
|
||
at_command->type = AT_COMMAND_GET;
|
||
} else if ((terminal_character_index = strchr(at_str, '=')) != NULL) {
|
||
/* `set' command */
|
||
num_of_chars_to_compare = terminal_character_index - at_str + 1;
|
||
at_command->type = AT_COMMAND_SET;
|
||
} else if ((terminal_character_index = strchr(at_str, '\r')) != NULL) {
|
||
/* Basic/action command */
|
||
num_of_chars_to_compare = terminal_character_index - at_str;
|
||
check_for_carriage_return_index = 1;
|
||
at_command->type = AT_COMMAND_ACT;
|
||
} else {
|
||
/* One action command among many commands */
|
||
num_of_chars_to_compare = strchr(at_str, '\0') - at_str;
|
||
at_command->type = AT_COMMAND_ACT;
|
||
}
|
||
|
||
/*
|
||
* The AT command strings in `Commands' list (that we compare the incoming
|
||
* command against) don't have CR at the end. So we have to ensure that CR
|
||
* comes just after characters like = and ?
|
||
*/
|
||
if (check_for_carriage_return_index == 1) {
|
||
if ( (at_str[num_of_chars_to_compare] != '\0') &&
|
||
(at_str[num_of_chars_to_compare] != '\r') ) {
|
||
LOG_TRACE(ERROR, "USR-API - Carriage return is not at where it should be!");
|
||
return RETURNerror;
|
||
}
|
||
}
|
||
|
||
/* Check if this command has a relevant command handler */
|
||
for (handler_index=0;
|
||
strcmp(_at_command_handler[handler_index].command, "null") != 0;
|
||
handler_index++) {
|
||
/* First match the command types... */
|
||
if (at_command->type != _at_command_handler[handler_index].type)
|
||
continue;
|
||
|
||
/* Match the command length... */
|
||
if (strlen(_at_command_handler[handler_index].command) !=
|
||
num_of_chars_to_compare) continue;
|
||
|
||
/* Now do string comparison... */
|
||
if (strncasecmp(at_str, _at_command_handler[handler_index].command,
|
||
num_of_chars_to_compare) != 0) continue;
|
||
|
||
handler_found = TRUE;
|
||
break;
|
||
}
|
||
|
||
/* Call the relevant handler or return with error */
|
||
if (!handler_found) {
|
||
LOG_TRACE(ERROR, "USR-API - Unsupported or invalid command!");
|
||
return RETURNerror;
|
||
}
|
||
|
||
return _at_command_handler[handler_index].handler(at_str,
|
||
num_of_chars_to_compare,
|
||
at_command);
|
||
}
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: ParseCommand() **
|
||
** **
|
||
** Description: Parses the input string on the basis of the format string **
|
||
** provided. **
|
||
** **
|
||
** Inputs: str: The string to be parsed **
|
||
** format: The format of the input string **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: None **
|
||
** Return: RETURNok, RETURNerror **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
static int ParseCommand(const unsigned char *str, const char *format, ...)
|
||
{
|
||
const unsigned char *fmt = (unsigned char*) format;
|
||
const char *inp = (char*) str;
|
||
char *endptr;
|
||
char *out_us;
|
||
char *buffer;
|
||
size_t length;
|
||
size_t storage_size;
|
||
int *out_i;
|
||
long int *out_l;
|
||
va_list ap;
|
||
int error = RETURNok;
|
||
|
||
va_start(ap, format);
|
||
|
||
while (*fmt) {
|
||
switch (*fmt++) {
|
||
case '@':
|
||
if (*fmt == 0) {
|
||
/* Invalid format string */
|
||
LOG_TRACE(ERROR, "USR-API - Invalid format string!");
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
switch (*fmt++) {
|
||
case 'i':
|
||
out_i = va_arg(ap, int *);
|
||
*out_i = strtol(inp, &endptr, 10);
|
||
|
||
if (endptr == inp) {
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
inp = endptr;
|
||
break;
|
||
|
||
case 'I':
|
||
out_i = va_arg(ap, int *);
|
||
*out_i = strtol(inp, &endptr, 10);
|
||
|
||
if (endptr == inp) {
|
||
/* Number empty */
|
||
/* optional parameter ??? */
|
||
LOG_TRACE(WARNING, "USR-API - Number empty!");
|
||
*out_i = 0;
|
||
} else {
|
||
inp = endptr;
|
||
}
|
||
|
||
break;
|
||
|
||
case 'l':
|
||
out_l = va_arg(ap, long int *);
|
||
*out_l = strtol(inp, &endptr, 10);
|
||
|
||
if (endptr == inp) {
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
inp = endptr;
|
||
break;
|
||
|
||
case 'r':
|
||
out_us = va_arg(ap, char *);
|
||
storage_size = va_arg(ap, size_t);
|
||
length = GrabString((unsigned char*) inp, &buffer);
|
||
|
||
if (strlen(buffer) > storage_size) {
|
||
free(buffer);
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
strcpy(out_us, buffer);
|
||
free(buffer);
|
||
inp += length;
|
||
break;
|
||
|
||
case '@':
|
||
if (*inp++ != '@') {
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
break;
|
||
|
||
case '0':
|
||
/* Just skip the rest */
|
||
goto end;
|
||
|
||
default:
|
||
/* Invalid format string */
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
break;
|
||
|
||
case ' ':
|
||
while (isspace(*inp))
|
||
inp++;
|
||
|
||
break;
|
||
|
||
default:
|
||
if (*inp++ != *(fmt - 1)) {
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
break;
|
||
}
|
||
}
|
||
|
||
/* Ignore trailing spaces */
|
||
while (isspace(*inp))
|
||
inp++;
|
||
|
||
if (*inp != 0) {
|
||
error = RETURNerror;
|
||
goto end;
|
||
}
|
||
|
||
end:
|
||
va_end(ap);
|
||
|
||
return error;
|
||
}
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: GrabString() **
|
||
** **
|
||
** Description: Grabs single string, removing possible quotes. **
|
||
** **
|
||
** Inputs: str: The string to be parsed **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: output: Allocated output string buffer **
|
||
** Return: Length of parsed string **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
static size_t GrabString(const unsigned char *str, char **output)
|
||
{
|
||
size_t size = 4, position = 0;
|
||
int inside_quotes = 0;
|
||
|
||
/* Allocate initial buffer in case string is empty */
|
||
*output = malloc(size);
|
||
|
||
if (*output == NULL) {
|
||
return 0;
|
||
}
|
||
|
||
while (inside_quotes || (*str != ',' && *str != ')' &&
|
||
*str != 0x0d && *str != 0x0a && *str != 0x00)) {
|
||
/* Check for quotes */
|
||
if (*str == '"') {
|
||
inside_quotes = !inside_quotes;
|
||
}
|
||
|
||
/* We also allocate space for trailing zero */
|
||
if (position + 2 > size) {
|
||
size += 10;
|
||
*output = realloc(*output, size);
|
||
|
||
if (*output == NULL) {
|
||
return 0;
|
||
}
|
||
}
|
||
|
||
/* Copy to output */
|
||
(*output)[position] = *str;
|
||
position++;
|
||
str++;
|
||
}
|
||
|
||
(*output)[position] = 0;
|
||
|
||
/* Strip quotes */
|
||
if ((*output)[0] == '"' && (*output)[position - 1]) {
|
||
memmove(*output, (*output) + 1, position - 2);
|
||
(*output)[position - 2] = 0;
|
||
}
|
||
|
||
return position;
|
||
}
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: NumberOfParameters() **
|
||
** **
|
||
** Description: Returns the number of parameters found in the given AT **
|
||
** command line. **
|
||
** **
|
||
** Inputs: str: The string to be parsed **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: None **
|
||
** Return: The number of parameter delimiter (comma) **
|
||
** found in the input string buffer **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
static unsigned int NumberOfParameters(const unsigned char* str)
|
||
{
|
||
if (*str == '\r')
|
||
return 0;
|
||
|
||
int count = 1;
|
||
|
||
while (*str) {
|
||
if (*str++ == ',') {
|
||
++count;
|
||
}
|
||
}
|
||
|
||
return count;
|
||
}
|
||
|
||
/****************************************************************************
|
||
** **
|
||
** Name: IsNumeric() **
|
||
** **
|
||
** Description: Checks whether the input string buffer has all digits **
|
||
** **
|
||
** Inputs: str: The string to be parsed **
|
||
** Others: None **
|
||
** **
|
||
** Outputs: None **
|
||
** Return: TRUE, FALSE **
|
||
** Others: None **
|
||
** **
|
||
***************************************************************************/
|
||
static unsigned int IsNumeric(const char* str, size_t len)
|
||
{
|
||
while (len-- > 0) {
|
||
if (!isdigit(str[len])) {
|
||
return FALSE;
|
||
}
|
||
}
|
||
|
||
return TRUE;
|
||
}
|
||
|
||
/****************************************************************************/
|
||
/******************** Handlers used to parse AT commands ********************/
|
||
/****************************************************************************/
|
||
|
||
static int parse_e0(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Command echo E0 */
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_e1(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Command echo E1 */
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_q0(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Result code suppression Q0 */
|
||
at_error_code_suppression_q1 = FALSE;
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_q1(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Result code suppression Q1 */
|
||
at_error_code_suppression_q1 = TRUE;
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_v0(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Response format V0 (numeric result code + limited header) */
|
||
at_error_format = AT_ERROR_NUMERIC;
|
||
at_response_format_v1 = FALSE;
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_v1(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* Response format V1 (verbose result code + full header) */
|
||
at_error_format = AT_ERROR_VERBOSE;
|
||
at_response_format_v1 = TRUE;
|
||
at_command->id = 0;
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgsn(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGSN action command - No parameter */
|
||
at_command->id = AT_CGSN;
|
||
at_command->mask = AT_COMMAND_CGSN_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgsn_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGSN test command - No parameter */
|
||
at_command->id = AT_CGSN;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmi(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMI action command - No parameter */
|
||
at_command->id = AT_CGMI;
|
||
at_command->mask = AT_COMMAND_CGMI_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmi_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMI test command - No parameter */
|
||
at_command->id = AT_CGMI;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmm(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMM action command - No parameter */
|
||
at_command->id = AT_CGMM;
|
||
at_command->mask = AT_COMMAND_CGMM_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmm_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMM test command - No parameter */
|
||
at_command->id = AT_CGMM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmr(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMR action command - No parameter */
|
||
at_command->id = AT_CGMR;
|
||
at_command->mask = AT_COMMAND_CGMR_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgmr_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGMR test command - No parameter */
|
||
at_command->id = AT_CGMR;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cimi(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CIMI action command - No parameter */
|
||
at_command->id = AT_CIMI;
|
||
at_command->mask = AT_COMMAND_CIMI_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cimi_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CIMI test command - No parameter */
|
||
at_command->id = AT_CIMI;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cfun_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CFUN parameter command - Parameters [<fun>[,<rst>]] */
|
||
at_command->id = AT_CFUN;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CFUN= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <fun> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cfun.fun) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CFUN=<fun> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CFUN=<fun> command succeed (fun:%d)", at_command->command.cfun.fun);
|
||
|
||
at_command->mask = AT_CFUN_FUN_MASK;
|
||
break;
|
||
|
||
case 2: // <fun>,<rst> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@i",
|
||
&at_command->command.cfun.fun,
|
||
&at_command->command.cfun.rst) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CFUN=<fun>,<rst> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CFUN=<fun>,<rst> command succeed (fun:%d, rst:%d)", at_command->command.cfun.fun, at_command->command.cfun.rst);
|
||
|
||
at_command->mask = AT_CFUN_FUN_MASK | AT_CFUN_RST_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cfun_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CFUN action command - No parameter */
|
||
at_command->id = AT_CFUN;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cfun_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CFUN test command - No parameter */
|
||
at_command->id = AT_CFUN;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cpin_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CPIN parameter command - Parameters <pin>[,<newpin>] */
|
||
at_command->id = AT_CPIN;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 1: // Only <pin> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@r",
|
||
at_command->command.cpin.pin, AT_CPIN_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CPIN=<pin> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
if (!IsNumeric(at_command->command.cpin.pin, AT_CPIN_SIZE)) {
|
||
LOG_TRACE(ERROR, "USR-API - Incoming parameter is not a valid PIN code!");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CPIN=<pin> command succeed (pin:%s)", at_command->command.cpin.pin);
|
||
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 2: // <pin>,<newpin> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@r,@r",
|
||
at_command->command.cpin.pin, AT_CPIN_SIZE,
|
||
at_command->command.cpin.newpin, AT_CPIN_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CPIN=<pin>,<newpin> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
if (!IsNumeric(at_command->command.cpin.pin, AT_CPIN_SIZE) ||
|
||
!IsNumeric(at_command->command.cpin.newpin, AT_CPIN_SIZE)) {
|
||
LOG_TRACE(ERROR, "USR-API - Incoming parameter is not a valid PIN code!");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CPIN=<pin>,<newpin> command succeed (pin:%s, newpin:%s)", at_command->command.cpin.pin, at_command->command.cpin.newpin);
|
||
|
||
at_command->mask = AT_CPIN_NEWPIN_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cpin_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CPIN action command - No parameter */
|
||
at_command->id = AT_CPIN;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cpin_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CPIN test command - No parameter */
|
||
at_command->id = AT_CPIN;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_csq(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CSQ action command - No parameter */
|
||
at_command->id = AT_CSQ;
|
||
at_command->mask = AT_COMMAND_CSQ_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_csq_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CSQ test command - No parameter */
|
||
at_command->id = AT_CSQ;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cesq(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CESQ action command - No parameter */
|
||
at_command->id = AT_CESQ;
|
||
at_command->mask = AT_COMMAND_CESQ_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cesq_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CESQ test command - No parameter */
|
||
at_command->id = AT_CESQ;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_clac(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CLAC action command - No parameter */
|
||
at_command->id = AT_CLAC;
|
||
at_command->mask = AT_COMMAND_CLAC_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_clac_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CLAC test command - No parameter */
|
||
at_command->id = AT_CLAC;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cmee_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CMEE parameter command - Parameter [<n>] */
|
||
at_command->id = AT_CMEE;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CMEE= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <n> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cmee.n) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CMEE=<n> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CMEE=<n> command succeed (n:%d)", at_command->command.cmee.n);
|
||
|
||
at_command->mask = AT_CMEE_N_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cmee_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CMEE read command - No parameter */
|
||
at_command->id = AT_CMEE;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cmee_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CMEE test command - No parameter */
|
||
at_command->id = AT_CMEE;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cnum(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CNUM action command - No parameter */
|
||
at_command->id = AT_CNUM;
|
||
at_command->mask = AT_COMMAND_CNUM_MASK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cnum_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CNUM test command - No parameter */
|
||
at_command->id = AT_CNUM;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_clck_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CLCK action command - Parameters <fac>,<mode>[,<passwd>] */
|
||
at_command->id = AT_CLCK;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
switch (number_of_parameters) {
|
||
case 2: // <fac>,<mode> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@r,@i",
|
||
&at_command->command.clck.fac, AT_CLCK_FAC_SIZE,
|
||
&at_command->command.clck.mode) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CLCK=<fac>,<mode> "
|
||
"failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CLCK=<fac>,<mode> "
|
||
"succeed (fac:%s, mode:%d)",
|
||
at_command->command.clck.fac,
|
||
at_command->command.clck.mode);
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 3: // <fac>,<mode>,<passwd> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@r,@i,@r",
|
||
&at_command->command.clck.fac, AT_CLCK_FAC_SIZE,
|
||
&at_command->command.clck.mode,
|
||
&at_command->command.clck.passwd,
|
||
AT_CLCK_PASSWD_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CLCK=<fac>,<mode>"
|
||
"<passwd> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
if (!IsNumeric(at_command->command.clck.passwd,AT_CLCK_PASSWD_SIZE)) {
|
||
LOG_TRACE(ERROR, "USR-API - Incoming parameter is not a valid password!");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CLCK=<fac>,<mode>"
|
||
"<passwd> succeed (fac:%s, mode:%d, passwd:%s)",
|
||
at_command->command.clck.fac,
|
||
at_command->command.clck.mode,
|
||
at_command->command.clck.passwd);
|
||
at_command->mask = AT_CLCK_PASSWD_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return -1;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_clck_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CLCK test command - No parameter */
|
||
at_command->id = AT_CLCK;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cops_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* COPS parameter command - Parameters [<mode>[,<format>[,<oper>[,<AcT>]]]] */
|
||
at_command->id = AT_COPS;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
char oper_value[AT_COPS_NUM_SIZE];
|
||
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <mode> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cops.mode) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode> command succeed (mode:%d)", at_command->command.cops.mode);
|
||
|
||
at_command->mask = AT_COPS_MODE_MASK;
|
||
break;
|
||
|
||
case 2: // <mode>,<format> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@i",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format> command succeed (mode:%d, format:%d)", at_command->command.cops.mode, at_command->command.cops.format);
|
||
|
||
at_command->mask = AT_COPS_MODE_MASK | AT_COPS_FORMAT_MASK;
|
||
break;
|
||
|
||
case 3: // <mode>,<format>,<oper> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@i,@r",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format,
|
||
oper_value, NET_FORMAT_MAX_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper> command succeed (mode:%d, format:%d)", at_command->command.cops.mode, at_command->command.cops.format);
|
||
|
||
/* Now, process <oper> parameter according to the specified <format> parameter */
|
||
switch (at_command->command.cops.format) {
|
||
case AT_COPS_LONG: /* long format alphanumeric <oper> */
|
||
strncpy((char*) at_command->command.cops.plmn.id.alpha_long,
|
||
oper_value, AT_COPS_LONG_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - <oper> parameter's value is '%s'", at_command->command.cops.plmn.id.alpha_long);
|
||
break;
|
||
|
||
case AT_COPS_SHORT: /* short format alphanumeric <oper> */
|
||
strncpy((char*) at_command->command.cops.plmn.id.alpha_short, oper_value, AT_COPS_SHORT_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - <oper> parameter's value is '%s'", at_command->command.cops.plmn.id.alpha_short);
|
||
break;
|
||
|
||
case AT_COPS_NUM: /* numeric <oper> */
|
||
strncpy((char*) at_command->command.cops.plmn.id.num,
|
||
oper_value, AT_COPS_NUM_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - <oper> parameter's value is '%s'", at_command->command.cops.plmn.id.num);
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid format value (%d)",
|
||
at_command->command.cops.format);
|
||
return RETURNerror;
|
||
}
|
||
|
||
at_command->mask = AT_COPS_MODE_MASK | AT_COPS_FORMAT_MASK | AT_COPS_OPER_MASK;
|
||
break;
|
||
|
||
case 4: // <mode>,<format>,<oper>,<AcT> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@i,@0",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper> command succeed (mode:%d, format:%d)", at_command->command.cops.mode, at_command->command.cops.format);
|
||
|
||
/* Now, process <oper> parameter according to the specified <format> parameter */
|
||
switch (at_command->command.cops.format) {
|
||
case AT_COPS_LONG: /* long format alphanumeric <oper> */
|
||
if (ParseCommand(parameter_start_index, "@i,@i,@r,@i",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format,
|
||
oper_value, AT_COPS_LONG_SIZE,
|
||
&at_command->command.cops.AcT) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
strncpy((char*) at_command->command.cops.plmn.id.alpha_long,
|
||
oper_value, AT_COPS_LONG_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command succeed (oper:%s, Act:%d)", at_command->command.cops.plmn.id.alpha_long, at_command->command.cops.AcT);
|
||
break;
|
||
|
||
case AT_COPS_SHORT: /* short format alphanumeric <oper> */
|
||
if (ParseCommand(parameter_start_index, "@i,@i,@r,@i",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format,
|
||
oper_value, AT_COPS_SHORT_SIZE,
|
||
&at_command->command.cops.AcT) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
strncpy((char*) at_command->command.cops.plmn.id.alpha_short,
|
||
oper_value, AT_COPS_SHORT_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command succeed (oper:%s, Act:%d)",
|
||
at_command->command.cops.plmn.id.alpha_short,
|
||
at_command->command.cops.AcT);
|
||
break;
|
||
|
||
case AT_COPS_NUM: /* numeric <oper> */
|
||
if (ParseCommand(parameter_start_index, "@i,@i,@r,@i",
|
||
&at_command->command.cops.mode,
|
||
&at_command->command.cops.format,
|
||
oper_value, AT_COPS_NUM_SIZE,
|
||
&at_command->command.cops.AcT) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
strncpy((char*) at_command->command.cops.plmn.id.num,
|
||
oper_value, AT_COPS_NUM_SIZE);
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+COPS=<mode>,<format>,<oper>,<AcT> command succeed (oper:%s, Act:%d)",
|
||
at_command->command.cops.plmn.id.num,
|
||
at_command->command.cops.AcT);
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid format value (%d)",
|
||
at_command->command.cops.format);
|
||
return RETURNerror;
|
||
}
|
||
|
||
at_command->mask = AT_COPS_MODE_MASK | AT_COPS_FORMAT_MASK | AT_COPS_OPER_MASK | AT_COPS_ACT_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cops_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* COPS test command - No parameter */
|
||
at_command->id = AT_COPS;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cops_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* COPS test command - No parameter */
|
||
at_command->id = AT_COPS;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_creg_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CREG parameter command - Parameter [<n>] */
|
||
at_command->id = AT_CREG;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CREG= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <n> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.creg.n) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CREG=<n> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CREG=<n> command succeed (n:%d)", at_command->command.creg.n);
|
||
|
||
at_command->mask = AT_CREG_N_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_creg_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CREG read command - No parameter */
|
||
at_command->id = AT_CREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_creg_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CREG test command - No parameter */
|
||
at_command->id = AT_CREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgatt_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGATT parameter command - Parameter [<state>] */
|
||
at_command->id = AT_CGATT;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGATT= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <state> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cgatt.state) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGATT=<state> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGATT=<state> command succeed (state:%d)", at_command->command.cgatt.state);
|
||
|
||
at_command->mask = AT_CGATT_STATE_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgatt_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGATT read command - No parameter */
|
||
at_command->id = AT_CGATT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgatt_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGATT test command - No parameter */
|
||
at_command->id = AT_CGATT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgreg_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGREG parameter command - Parameter [<n>] */
|
||
at_command->id = AT_CGREG;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGREG= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <n> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cgreg.n) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGREG=<n> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGREG=<n> command succeed (n:%d)", at_command->command.cgreg.n);
|
||
|
||
at_command->mask = AT_CGREG_N_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgreg_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGREG read command - No parameter */
|
||
at_command->id = AT_CGREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgreg_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGREG test command - No parameter */
|
||
at_command->id = AT_CGREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cereg_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CEREG parameter command - Parameter [<n>] */
|
||
at_command->id = AT_CEREG;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CEREG= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <n> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cereg.n) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CEREG=<n> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CEREG=<n> command succeed (n:%d)", at_command->command.cereg.n);
|
||
|
||
at_command->mask = AT_CEREG_N_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cereg_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CEREG read command - No parameter */
|
||
at_command->id = AT_CEREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cereg_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CEREG test command - No parameter */
|
||
at_command->id = AT_CEREG;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgdcont_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGDCONT parameter command - Parameters [<cid>[,<PDP_type>[,<APN>[,<PDP_addr>[,<d_comp>[,<h_comp>[,<IPv4AddrAlloc>[,<emergency indication>[,<P-CSCF_discovery>[,<IM_CN_Signalling_Flag_Ind>]]]]]]]]]] */
|
||
at_command->id = AT_CGDCONT;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
/* Parse the parameters */
|
||
switch (number_of_parameters) {
|
||
case 1: // Only <cid> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cgdcont.cid) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid> command succeed (cid:%d)", at_command->command.cgdcont.cid);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK;
|
||
break;
|
||
|
||
case 2: // <cid>,<PDP_type> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type> succeed (cid:%d, pdp_type:%s)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK;
|
||
break;
|
||
|
||
case 3: // <cid>,<PDP_type>,<APN> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN> succeed (cid:%d, pdp_type:%s, apn:%s)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK;
|
||
break;
|
||
|
||
case 4: // <cid>,<PDP_type>,<APN>,<PDP_addr> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK;
|
||
break;
|
||
|
||
case 5: // <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK;
|
||
break;
|
||
|
||
case 6: // <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp,
|
||
&at_command->command.cgdcont.h_comp) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d, h_comp:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp,
|
||
at_command->command.cgdcont.h_comp);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK | AT_CGDCONT_H_COMP_MASK;
|
||
break;
|
||
|
||
case 7: // <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i,@i,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp,
|
||
&at_command->command.cgdcont.h_comp,
|
||
&at_command->command.cgdcont.IPv4AddrAlloc) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO,
|
||
"USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d, h_comp:%d, ipv4addralloc:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp,
|
||
at_command->command.cgdcont.h_comp,
|
||
at_command->command.cgdcont.IPv4AddrAlloc);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK | AT_CGDCONT_H_COMP_MASK | AT_CGDCONT_IPV4ADDRALLOC_MASK;
|
||
break;
|
||
|
||
case 8: // <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i,@i,@i,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp,
|
||
&at_command->command.cgdcont.h_comp,
|
||
&at_command->command.cgdcont.IPv4AddrAlloc,
|
||
&at_command->command.cgdcont.emergency_indication) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO,
|
||
"USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d, h_comp:%d, ipv4addralloc:%d, emergency_indication:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp,
|
||
at_command->command.cgdcont.h_comp,
|
||
at_command->command.cgdcont.IPv4AddrAlloc,
|
||
at_command->command.cgdcont.emergency_indication);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK | AT_CGDCONT_H_COMP_MASK | AT_CGDCONT_IPV4ADDRALLOC_MASK |
|
||
AT_CGDCONT_EMERGECY_INDICATION_MASK;
|
||
break;
|
||
|
||
case 9: /* <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,
|
||
* <IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery>
|
||
* parameters are present */
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i,@i,@i,@i,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp,
|
||
&at_command->command.cgdcont.h_comp,
|
||
&at_command->command.cgdcont.IPv4AddrAlloc,
|
||
&at_command->command.cgdcont.emergency_indication,
|
||
&at_command->command.cgdcont.P_CSCF_discovery) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO,
|
||
"USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d, h_comp:%d, ipv4addralloc:%d, emergency_indication:%d, p_cscf_discovery:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp,
|
||
at_command->command.cgdcont.h_comp,
|
||
at_command->command.cgdcont.IPv4AddrAlloc,
|
||
at_command->command.cgdcont.emergency_indication,
|
||
at_command->command.cgdcont.P_CSCF_discovery);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK | AT_CGDCONT_H_COMP_MASK | AT_CGDCONT_IPV4ADDRALLOC_MASK |
|
||
AT_CGDCONT_EMERGECY_INDICATION_MASK | AT_CGDCONT_P_CSCF_DISCOVERY_MASK;
|
||
break;
|
||
|
||
case 10: /* <cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,
|
||
* <IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery>,
|
||
* <IM_CN_Signalling_Flag_Ind> parameters are present */
|
||
if (ParseCommand(parameter_start_index, "@i,@r,@r,@r,@i,@i,@i,@i,@i,@i",
|
||
&at_command->command.cgdcont.cid,
|
||
&at_command->command.cgdcont.PDP_type, AT_CGDCONT_PDP_SIZE,
|
||
&at_command->command.cgdcont.APN, AT_CGDCONT_APN_SIZE,
|
||
&at_command->command.cgdcont.PDP_addr, AT_CGDCONT_ADDR_SIZE,
|
||
&at_command->command.cgdcont.d_comp,
|
||
&at_command->command.cgdcont.h_comp,
|
||
&at_command->command.cgdcont.IPv4AddrAlloc,
|
||
&at_command->command.cgdcont.emergency_indication,
|
||
&at_command->command.cgdcont.P_CSCF_discovery,
|
||
&at_command->command.cgdcont.IM_CN_Signalling_Flag_Ind) != RETURNok) {
|
||
LOG_TRACE(ERROR,
|
||
"USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery>, <IM_CN_Signalling_Flag_Ind> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO,
|
||
"USR-API - Parsing of AT+CGDCONT=<cid>,<PDP_type>,<APN>,<PDP_addr>,<d_comp>,<h_comp>,<IPv4AddrAlloc>,<emergency indication>,<P-CSCF_discovery>, <IM_CN_Signalling_Flag_Ind> succeed (cid:%d, pdp_type:%s, apn:%s, pdp_addr:%s, d_comp:%d, h_comp:%d, ipv4addralloc:%d, emergency_indication:%d, p_cscf_discovery:%d, im_cn_signalling_flag:%d)",
|
||
at_command->command.cgdcont.cid,
|
||
at_command->command.cgdcont.PDP_type,
|
||
at_command->command.cgdcont.APN,
|
||
at_command->command.cgdcont.PDP_addr,
|
||
at_command->command.cgdcont.d_comp,
|
||
at_command->command.cgdcont.h_comp,
|
||
at_command->command.cgdcont.IPv4AddrAlloc,
|
||
at_command->command.cgdcont.emergency_indication,
|
||
at_command->command.cgdcont.P_CSCF_discovery,
|
||
at_command->command.cgdcont.IM_CN_Signalling_Flag_Ind);
|
||
|
||
at_command->mask = AT_CGDCONT_CID_MASK | AT_CGDCONT_PDP_TYPE_MASK | AT_CGDCONT_APN_MASK | AT_CGDCONT_PDP_ADDR_MASK | AT_CGDCONT_D_COMP_MASK | AT_CGDCONT_H_COMP_MASK | AT_CGDCONT_IPV4ADDRALLOC_MASK |
|
||
AT_CGDCONT_EMERGECY_INDICATION_MASK | AT_CGDCONT_P_CSCF_DISCOVERY_MASK | AT_CGDCONT_IM_CN_SIGNALLING_FLAG_IND_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return RETURNerror;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgdcont_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGDCONT read command - No parameter */
|
||
at_command->id = AT_CGDCONT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgdcont_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGDCONT test command - No parameter */
|
||
at_command->id = AT_CGDCONT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgact_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGACT parameter command - Parameters <state>[,<cid>] */
|
||
at_command->id = AT_CGACT;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
switch (number_of_parameters) {
|
||
case 1: // Only <state> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cgact.state) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGACT=<state> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGACT=<state> succeed (state:%d)", at_command->command.cgact.state);
|
||
at_command->mask = AT_CGACT_STATE_MASK;
|
||
break;
|
||
|
||
case 2: // <state>,<cid> parameters are present
|
||
if (ParseCommand(parameter_start_index, "@i,@i",
|
||
&at_command->command.cgact.state,
|
||
&at_command->command.cgact.cid) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGACT=<state>,<cid> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGACT=<state>,<cid> succeed (state:%d, cid:%d)",
|
||
at_command->command.cgact.state,
|
||
at_command->command.cgact.cid);
|
||
|
||
at_command->mask = AT_CGACT_STATE_MASK | AT_CGACT_CID_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return -1;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgact_get(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGACT read command - No parameter */
|
||
at_command->id = AT_CGACT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgact_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGACT test command - No parameter */
|
||
at_command->id = AT_CGACT;
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgpaddr_set(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGPADDR parameter command - Parameters [<cid>] */
|
||
at_command->id = AT_CGPADDR;
|
||
unsigned char* parameter_start_index = (unsigned char*) string + position;
|
||
|
||
/* Check the number of parameters */
|
||
unsigned number_of_parameters = NumberOfParameters(parameter_start_index);
|
||
|
||
switch (number_of_parameters) {
|
||
case 0: // No any parameter
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGPADDR= command succeed");
|
||
at_command->mask = AT_COMMAND_NO_PARAM;
|
||
break;
|
||
|
||
case 1: // Only <cid> parameter is present
|
||
if (ParseCommand(parameter_start_index, "@i",
|
||
&at_command->command.cgpaddr.cid) != RETURNok) {
|
||
LOG_TRACE(ERROR, "USR-API - Parsing of AT+CGPADDR=<state> failed");
|
||
return RETURNerror;
|
||
}
|
||
|
||
LOG_TRACE(INFO, "USR-API - Parsing of AT+CGPADDR=<cid> succeed (cid:%d)", at_command->command.cgpaddr.cid);
|
||
at_command->mask = AT_CGPADDR_CID_MASK;
|
||
break;
|
||
|
||
default:
|
||
LOG_TRACE(ERROR, "USR-API - Invalid number of parameters (%d)", number_of_parameters);
|
||
return -1;
|
||
}
|
||
|
||
return at_command->id;
|
||
}
|
||
|
||
static int parse_cgpaddr_test(const char* string, int position, at_command_t* at_command)
|
||
{
|
||
/* CGPADDR test command - No parameter */
|
||
at_command->id = AT_CGPADDR;
|
||
return at_command->id;
|
||
}
|