Wireshark-users: Re: [Wireshark-users] mtp2 data trans to pcap,why do ?
Hi,

I've used this command.
See the attachment.

hex2a.txt:
2009-08-31 09:20:58.703
00000000 d9 15 27 85 44 09 07 32 08 07 0f ef 00 01 00 00
00000010 00 0a 03 02 08 06 81 10 87 96 22 02 0a 08 03 13
00000020 31 16 34 50 30 f3 08 01 00 00


$ text2pcap -l 140 -t "%Y-%m-%d %H:%M:%S" hex2a.txt hex2a.pcap
Input from: hex2a.txt
Output to: hex2a.pcap
Wrote packet of 15 bytes at 0
Read 1 potential packet, wrote 1 packet

Best regards
Joan

On Tue, 1 Sep 2009 10:34:11 +0800 LJ  WanHuiHua wrote:
>
>wireshark-users????
>       
>file.in content:
>
>00000000 d9 15 27 85 44 09 07 32 08 07 0f ef 00 01 00 00
>00000010 00 0a 03 02 08 06 81 10 87 96 22 02 0a 08 03 13
>00000020 31 16 34 50 30 f3 08 01 00 00
>
>
>      text2pcap -l 140 file.in file.out
>file.out format error!!!
>
>
>
>
>Message Content: 
>
>D9 15 27 85 44 09 07 32 08 07 0F EF 00 01 00 00 00 0A 03 02 08 06 81 10
87
>96 22 02 0A 08 03 13 31 16 34 50 30 F3 08 01 00 00 
>
>
>please trans up msg to pcap ,thanks .
>
>rowId: 1013, time: 09:20:58.703, channel: 11ATx, length: 39 
>
>Message Content: 
>
>D9 15 27 85 44 09 07 32 08 07 0F EF 00 01 00 00 00 0A 03 02 08 06 81 10
87
>96 22 02 0A 08 03 13 31 16 34 50 30 F3 08 01 00 00 
>
>Message Info: 
>
>D9              BSN        :89 
>                BIB        :1....... 
>15              FSN        :21 
>                FIB        :0....... 
>27              LI         :39        Length Indicator
>                SPARE      :00...... 
>85              SIO        :....0101  ISUP 
>                SPARE      :..00.... 
>                NI         :10......  National Network 
>07 09 44        DPC        : 
>07 08 32        OPC        : 
>0F              SLS        :....1111 
>                SPARE      :0000.... 
>00 EF           CIC        : 'h0EF 
>01              H1H0       :Initial address 
>
>******** MANDATORY FIXED PART ********
> === Nature of Connection Indicators === 
>00              SI         :......00 conjunction medium have no satellite
>electric circuit
>                CCI        :....00.. don't need to lead an examination
>                ECDI       :...0.... Included to equip to the words half
>echo control
>                SPARE      :000..... 
> === Forward Call Indicators === 
>00 00           NICID      :......The .0 call sign press the domestic to
>call a processing
>                EEMID      :.....00. the without cause arrive to carry a
>way and can use(only pursue the segment turn a hair method and can use)
>                IID        :....0... do not meet a mutual communication(all
>directions are No.7s signal)
>                EEIID      :...0.... Included to equip to the words half
>echo control
>                IUPID      :..0..... Isn't all directions to use ISDN a
customer
>part
>                IUPPID     :00...... All directions optimization ISDN customer
>part
>                IAID       :......The .0 start hair to connect to go into:
>non- ISDN
>                SMID       :.....00. have no designation
>                SPARE      :....0... 
>                RES        :0000.... 
> === Calling Party's Category === 
>0A              CPC        :0x0A      Common customer at long(nations)-long,
>long(nations)-in the city bureau usage
> === Transmission Medium Requirement === 
>03              TMR        :0x03      3.1 KHz audio frequency
>
>******** PARAMETERS POINTER ********
>02              MVP        :0x02      The essential variable length parameter
>points needle
>08              SOP        :0x08      The beginning position which allows
>to choose parameters points needle
>
>******** MANDATORY VARIABLE PART ********
> === Called Party Number === 
>06              LEN        :0x06      Essential variable length parameter
>length
>81              NAI        :.0000001  SPARE
>                ODD        :1....... The address signal is an odd numbers
>10              SPARE      :....0000  
>                NPID       :.001.... The ISDN(telephone) serial number plan
>                INN        :0....... Allow to choose road to arrive internal
>net number
>87 96 22 02     CLAS       :7869222 is called customer's number
>
>******** OPTIONAL PARAMETERS PART ********
> === Calling Party Number === 
>0A              OPT        :0x0A      The lord calls customer's number
>08              LEN        :0x08      Allow to choose the parameters parameter
>length
>03              NAI        :Customer's number inside the .0000011 City
>                ODD        :0....... The address signal is an even number
>13              SCR        :.....The .11 network provide
>                ARID       :....00.. allow to provide
>                NPID       :.001.... The ISDN(telephone) serial number plan
>                NI         :0....... All of number
>31 16 34 50 30 F3     CLAS       :13614305033 F the lord call customer's
>number
> === Forward Call Indicators === 
>08              OPT        :0x08      Allow to mean language toward the
call
>sign before choose
>01              LEN        :0x01      Allow to choose the parameters parameter
>length
>00 00           NICID      :......The .0 call sign press the domestic to
>call a processing
>                EEMID      :.....00. the without cause arrive to carry a
>way and can use(only pursue the segment turn a hair method and can use)
>                IID        :....0... do not meet a mutual communication(all
>directions are No.7s signal)
>                EEIID      :...0.... Included to equip to the words half
>echo control
>                IUPID      :..0..... Isn't all directions to use ISDN a
customer
>part
>                IUPPID     :00...... All directions optimization ISDN customer
>part
>                IAID       :......The .0 start hair to connect to go into:
>non- ISDN
>                SMID       :.....00. have no designation
>                SPARE      :....0... 
>                RES        :0000.... 
> === End of Optional Parameters === 
>00              END        :0x00      Can choose parameter be over marking
>
>
>chinese:  
>
>Message Info: 
>
>D9              BSN        :89 
>                BIB        :1....... 
>15              FSN        :21 
>                FIB        :0....... 
>27              LI         :39        Length Indicator
>                SPARE      :00...... 
>85              SIO        :....0101  ISUP 
>                SPARE      :..00.... 
>                NI         :10......  National Network 
>07 09 44        DPC        : 
>07 08 32        OPC        : 
>0F              SLS        :....1111 
>                SPARE      :0000.... 
>00 EF           CIC        : 'h0EF 
>01              H1H0       :Initial address 
>
>******** MANDATORY FIXED PART ********
> === Nature of Connection Indicators === 
>00              SI         :......00  ????????
>                CCI        :....00..  ???????
>                ECDI       :...0....  ????????????
>                SPARE      :000..... 
> === Forward Call Indicators === 
>00 00           NICID      :.......0  ?????????
>                EEMID      :.....00.  ????????(??????????)
>                IID        :....0...  ?????(??????No.7??)
>                EEIID      :...0....  ????????????
>                IUPID      :..0.....  ?????????ISDN????
>                IUPPID     :00......  ???????ISDN????
>                IAID       :.......0  ??????ISDN
>                SMID       :.....00.  ???
>                SPARE      :....0... 
>                RES        :0000.... 
> === Calling Party's Category === 
>0A              CPC        :0x0A      ???? ??(??)-???(??)-?????
> === Transmission Medium Requirement === 
>03              TMR        :0x03      3.1KHz??
>
>******** PARAMETERS POINTER ********
>02              MVP        :0x02      ??????????
>08              SOP        :0x08      ????????????
>
>******** MANDATORY VARIABLE PART ********
> === Called Party Number === 
>06              LEN        :0x06      ??????????
>81              NAI        :.0000001  SPARE
>                ODD        :1.......  ???????
>10              SPARE      :....0000  
>                NPID       :.001....  ISDN(??)????
>                INN        :0.......  ??????????
>87 96 22 02     CLAS       :7 8 6 9 2 2 2   ??????
>
>******** OPTIONAL PARAMETERS PART ********
> === Calling Party Number === 
>0A              OPT        :0x0A      ??????
>08              LEN        :0x08      ?????????
>03              NAI        :.0000011  ??????
>                ODD        :0.......  ???????
>13              SCR        :......11  ????
>                ARID       :....00..  ????
>                NPID       :.001....  ISDN(??)????
>                NI         :0.......  ???
>31 16 34 50 30 F3     CLAS       :1 3 6 1 4 3 0 5 0 3 3 f   ??????
> === Forward Call Indicators === 
>08              OPT        :0x08      ?????????
>01              LEN        :0x01      ?????????
>00 00           NICID      :.......0  ?????????
>                EEMID      :.....00.  ????????(??????????)
>                IID        :....0...  ?????(??????No.7??)
>                EEIID      :...0....  ????????????
>                IUPID      :..0.....  ?????????ISDN????
>                IUPPID     :00......  ???????ISDN????
>                IAID       :.......0  ??????ISDN
>                SMID       :.....00.  ???
>                SPARE      :....0... 
>                RES        :0000.... 
> === End of Optional Parameters === 
>00              END        :0x00      ????????
>
>
>
>
>
>
>
>	
>
>?????????
>??
> 				
>
>????????LJ  WanHuiHua 
>[email protected]
>??????????2009-09-01


       


Attachment: hex2a.pcap
Description: application/pcap