Shell in wireless example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shell in wireless example

368 Views
chetan98
Contributor II

Hello NXP team,

I am using kw45 loc board to recieve data from multiple sensor through BLE I am using Wireless uart example from sdk I am successfully able to recieve data in ble from multiple device but what i observed shell_dec and shellwrite is taking too much time in printing data in teraterm it is about taking more time in printing data in teraterm.

Almost double the processing time i calculated time using systick freertos tick.

1.I want to know for if nxp can suggest efficient way to printing data multiple byte in less time.

2.And I am using shell present in wireless uart it is blocking or non blocking.

Thankyou 

Chetan

Labels (1)
0 Kudos
Reply
1 Reply

321 Views
sofiaurueta
NXP Employee
NXP Employee

Hello,

Hope you are doing well.

 

What SDK version are you using? And what modifications did you implement in the wireless_uart example?

Could you help us explain more details about your application?

 

For wireless UART example, both blocking and non-blocking UART APIs are provided, though it is recommended to use a non-blocking implementation. Blocking functions polls the sending queue, waits for the sending queue to be empty. The non-blocking functions send/receive data using an interrupt method, return directly without waiting for all data written to the transmitter register.

 

The non-blocking implementation uses a ring buffer supported by the transactional receive APIs. Please see the "UART Driver" section from MCUXpresso SDK API Reference Manual for more information.

 

Best Regards,

Ana Sofia.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2197540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EShell%20in%20wireless%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20team%2C%3C%2FP%3E%3CP%3EI%20am%20using%20kw45%20loc%20board%20to%20recieve%20data%20from%20multiple%20sensor%20through%20BLE%20I%20am%20using%20Wireless%20uart%20example%20from%20sdk%20I%20am%20successfully%20able%20to%20recieve%20data%20in%20ble%20from%20multiple%20device%20but%20what%20i%20observed%20shell_dec%20and%20shellwrite%20is%20taking%20too%20much%20time%20in%20printing%20data%20in%20teraterm%20it%20is%20about%20taking%20more%20time%20in%20printing%20data%20in%20teraterm.%3C%2FP%3E%3CP%3EAlmost%20double%20the%20processing%20time%20i%20calculated%20time%20using%20systick%20freertos%20tick.%3C%2FP%3E%3CP%3E1.I%20want%20to%20know%20for%20if%20nxp%20can%20suggest%20efficient%20way%20to%20printing%20data%20multiple%20byte%20in%20less%20time.%3C%2FP%3E%3CP%3E2.And%20I%20am%20using%20shell%20present%20in%20wireless%20uart%20it%20is%20blocking%20or%20non%20blocking.%3C%2FP%3E%3CP%3EThankyou%26nbsp%3B%3C%2FP%3E%3CP%3EChetan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2197540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EFreedom%20Development%20Platform%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2198461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Shell%20in%20wireless%20example%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWhat%20SDK%20version%20are%20you%20using%3F%20And%20what%20modifications%20did%20you%20implement%20in%20the%20wireless_uart%20example%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20explain%20more%20details%20about%20your%20application%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20wireless%20UART%20example%2C%20both%20blocking%20and%20non-blocking%20UART%20APIs%20are%20provided%2C%20though%20it%20is%20recommended%20to%20use%20a%20non-blocking%20implementation.%20Blocking%20functions%20polls%20the%20sending%20queue%2C%20waits%20for%20the%20sending%20queue%20to%20be%20empty.%20The%20non-blocking%20functions%20send%2Freceive%20data%20using%20an%20interrupt%20method%2C%20return%20directly%20without%20waiting%20for%20all%20data%20written%20to%20the%20transmitter%20register.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThe%20non-blocking%20implementation%20uses%20a%20ring%20buffer%20supported%20by%20the%20transactional%20receive%20APIs.%20Please%20see%20the%20%22%3CA%20href%3D%22https%3A%2F%2Fmcuxpresso.nxp.com%2Fapi_doc%2Fdev%2F1562%2Fa00031.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUART%20Driver%3C%2FA%3E%22%20section%20from%20MCUXpresso%20SDK%20API%20Reference%20Manual%20for%20more%20information.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3EAna%20Sofia.%3C%2FP%3E%3C%2FLINGO-BODY%3E