locked
What is the maximum sample buffer size or signal bytes size? RRS feed

  • Question

  • Hi all, 

    I asked a question related to the maximum packet size. http://social.microsoft.com/Forums/en-US/03d87105-7598-4ca4-9684-c16e01b5c556/maximum-packet-size?forum=sora

    Based on your answer, lack of viterbi encoder causes the problem. 

    However, I find that those parts have no problem. 

    There is log message below when SORA transmits 6000 byte packets by using UMXDot11.exe

    There is no problem to generate tx signal even if we use large packet size. 

    However when we call SoraURadioTransferEx, the error code (000003e6) is returned. 

    I tried to increase the size of sample buffer (10M) from default (2M), same error code is returned. 


    [INFO] Mode: TX [INFO] Protocol: 802.11a tx buffer: 03350000 tx buffer size: 00a00000 c:\sorasdk2.0\src\bb\dot11a\dot11\atx_fe.c 20 ::BB11ATxFrameMod -> c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl_imp.h 8 ::Dot11aTxFrameEncode6 -> c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl_imp.h 28 ::Dot11aTxFrameEncode6 -> SampleBufferSize: 10485760 >= SignalBytes: 706832 c:\sorasdk2.0\src\bb\dot11a\dot11\atx.h 102 ::CopyPreamble16_NT -> c:\sorasdk2.0\src\bb\dot11a\dot11\atx.h 127 ::GenerateSignal -> c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl.h 11 ::Scramble11a -> c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl_imp.h 61 ::Dot11aTxFrameEncode6 -> return S_OK GenSignal return 00000000 <------------------ Success to generate signal Signal bytes = 706944

    c:\sorasdk2.0\src\bb\umxdot11\Dot11atx.c 105  ::Dot11ATxApp->  SoraURadioTransferEx

    transfer, hr=000003e6, id=-1120442308 <------------------ fail to call SoraURadioTransferEx

    [dot11b:tx] tx failed [dot11b:tx] tx failed [dot11b:tx] tx failed


    Please let me know how to solve it. 

    Thank you.

    Okhwan


    Wednesday, October 9, 2013 9:29 PM

All replies

  • Hi Okhwan,

    c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl_imp.h 28  ::Dot11aTxFrameEncode6 -> SampleBufferSize: 10485760 >= SignalBytes: 706832

    It seems that you allocated a 10M buffer for the Sample Buffer?

    Can you try another API to do so?

    PVOID SoraUForceAllocContinuousBuffer(ULONG Size);

    This API returns NULL if failing in allocation. Please restart your PC if this condition occurs.

    This is a test that helps me to figure out the problem.

    Thanks, Paul

    Monday, October 21, 2013 9:28 AM
  • Hi Okhwan,

    c:\sorasdk2.0\src\bb\dot11a\dot11\atx_tpl_imp.h 28  ::Dot11aTxFrameEncode6 -> SampleBufferSize: 10485760 >= SignalBytes: 706832

    It seems that you allocated a 10M buffer for the Sample Buffer?

    Can you try another API to do so?

    PVOID SoraUForceAllocContinuousBuffer(ULONG Size);

    This API returns NULL if failing in allocation. Please restart your PC if this condition occurs.

    This is a test that helps me to figure out the problem.

    Thanks, Paul

    Hi Paul, 

    Thank you for your answer. 

    I tried to test your suggestion however SORA fires the same error code (000003e6).

    I modified umxdot11\Dot11atx.c as follows

    void Dot11ATxApp(const Config& config)
    {   
        SampleBufferSize = _M(10);
        //SampleBuffer = SoraUAllocBuffer(SampleBufferSize);
    	SampleBuffer = SoraUForceAllocContinuousBuffer(SampleBufferSize);
    	printf("tx buffer: %08x\n", SampleBuffer);
    	printf("tx buffer size: %08x\n", SampleBufferSize);
    
    	if (SampleBuffer == NULL) return;
    
    	PreparePacket(config,

    Thank you. 

    Okhwan.

    Monday, October 21, 2013 9:03 PM