ZeroEffect
Well-known member
For an application I am building to convert an audio file, I am really passing data to Lame followed by mp3Gain for a small project but I need to trim the silence from the begining and the end. The files Ill be converting are wav files used by another software that can do this, I can also send the command via UDP packet. Now there is an application that allows this to be done and you get a response when the processe is done. This is all done by UDP. I made a test application to send the/a command to the other software I get the command to run but I dont get a response. I capatured two packes one from thier application and one from mine.
From Their App
0000 00 ff c7 43 2d f2 00 ff c6 43 2d f2 08 00 45 00 ...C-... .C-...E.
0010 00 5b 3e 9f 00 00 80 11 7d 82 c0 1e 0b 16 ac 1b .[>..... }.......
0020 07 21 06 5f 07 d2 00 47 18 b2 3c 44 41 44 43 4d .!._...G ..<DADCM
0030 44 3e 3c 49 44 3e 39 39 39 39 39 3c 2f 49 44 3e D><ID>99 999</ID>
0040 3c 43 4f 4d 4d 41 4e 44 3e 72 65 66 72 65 73 68 <COMMAND >refresh
0050 20 70 62 6b 31 3c 2f 43 4f 4d 4d 41 4e 44 3e 3c pbk1</C OMMAND><
0060 2f 44 41 44 43 4d 44 3e 00 /DADCMD> .
My Application
0000 00 ff c7 43 2d f2 00 ff c6 43 2d f2 08 00 45 00 ...C-... .C-...E.
0010 00 5b 3e a9 00 00 80 11 7d 78 c0 1e 0b 16 ac 1b .[>..... }x......
0020 07 21 05 5b 07 d2 00 47 19 b6 3c 44 41 44 43 4d .!.[...G ..<DADCM
0030 44 3e 3c 49 44 3e 39 39 39 39 39 3c 2f 49 44 3e D><ID>99 999</ID>
0040 3c 43 4f 4d 4d 41 4e 44 3e 72 65 66 72 65 73 68 <COMMAND >refresh
0050 20 70 62 6b 31 3c 2f 43 4f 4d 4d 41 4e 44 3e 3c pbk1</C OMMAND><
0060 2f 44 41 44 43 4d 44 3e 00 /DADCMD> .
there are only two differences in the packets on line 0010 & line 0020 in their app it goes(I end the lines with the differences)
0010 00 5b 3e 9f 00 00 80 11 7d 82
0020 07 21 06 5f
and in my app
0010 00 5b 3e a9 00 00 80 11 7d 78
0020 07 21 05 5b
Those are the only differences I see and that is where I believe the information is to tell the application where to send the response to. Can anyone help me with this? I need to get the response from the application so I know when to move to the next step in the application I am creating. I guess what I am asking is for help creating the packet header?
Thanks for any help you may be able to give me.
ZeroEffect
From Their App
0000 00 ff c7 43 2d f2 00 ff c6 43 2d f2 08 00 45 00 ...C-... .C-...E.
0010 00 5b 3e 9f 00 00 80 11 7d 82 c0 1e 0b 16 ac 1b .[>..... }.......
0020 07 21 06 5f 07 d2 00 47 18 b2 3c 44 41 44 43 4d .!._...G ..<DADCM
0030 44 3e 3c 49 44 3e 39 39 39 39 39 3c 2f 49 44 3e D><ID>99 999</ID>
0040 3c 43 4f 4d 4d 41 4e 44 3e 72 65 66 72 65 73 68 <COMMAND >refresh
0050 20 70 62 6b 31 3c 2f 43 4f 4d 4d 41 4e 44 3e 3c pbk1</C OMMAND><
0060 2f 44 41 44 43 4d 44 3e 00 /DADCMD> .
My Application
0000 00 ff c7 43 2d f2 00 ff c6 43 2d f2 08 00 45 00 ...C-... .C-...E.
0010 00 5b 3e a9 00 00 80 11 7d 78 c0 1e 0b 16 ac 1b .[>..... }x......
0020 07 21 05 5b 07 d2 00 47 19 b6 3c 44 41 44 43 4d .!.[...G ..<DADCM
0030 44 3e 3c 49 44 3e 39 39 39 39 39 3c 2f 49 44 3e D><ID>99 999</ID>
0040 3c 43 4f 4d 4d 41 4e 44 3e 72 65 66 72 65 73 68 <COMMAND >refresh
0050 20 70 62 6b 31 3c 2f 43 4f 4d 4d 41 4e 44 3e 3c pbk1</C OMMAND><
0060 2f 44 41 44 43 4d 44 3e 00 /DADCMD> .
there are only two differences in the packets on line 0010 & line 0020 in their app it goes(I end the lines with the differences)
0010 00 5b 3e 9f 00 00 80 11 7d 82
0020 07 21 06 5f
and in my app
0010 00 5b 3e a9 00 00 80 11 7d 78
0020 07 21 05 5b
Those are the only differences I see and that is where I believe the information is to tell the application where to send the response to. Can anyone help me with this? I need to get the response from the application so I know when to move to the next step in the application I am creating. I guess what I am asking is for help creating the packet header?
Thanks for any help you may be able to give me.
ZeroEffect