80 likes | 228 Views
PIKA Technologies Inc. FSK Bypass Application Sample October 2009. What is it?. Sample Application developed in C++ Can be used to record an FSK signal once the call is established Uses Media Bypass feature. Overall Architecture Description (1/2).
E N D
PIKA Technologies Inc.FSK Bypass Application Sample October 2009
What is it? Sample Application developed in C++ Can be used to record an FSK signal once the call is established Uses Media Bypass feature
Overall Architecture Description (1/2) • At start-up the main thread will create the FSK Receive Entry container. • The main thread will then spawn the event thread. • The event thread is used to handle asynchronous events from the PIKA driver. • Only incoming calls will be handled. • Once an incoming call is answered, the PK_BYPASS_FSK_Start call is made to bypass the GrandPrix media processing. • This will in turn call • PKX_CHANNEL_GetBypassInfo : Get Media Stream handle • PKH_FSK_GetConfig : Get FSK configuration • PKH_FSK_SetConfig: Set FSK Configuration • PKH_QUEUE_Attach : Attach media stream handle to HMP Queue • PKX_CHANNEL_EnableBypass : Enable Bypass for Channel • PKH_FSK_RxStart: Start Low Level FSK recording • PKH_FSK_GetRxData : Handle FSK events
Overall Architecture Description (2/2) • Once the FSK is deemed completed, the PK_BYPASS_FSK_Stop call is made to stop the bypass feature. • This will in turn call • PKH_FSK_RxStop: Stop Low Level FSK recording • PKX_CHANNEL_DisableBypass : Disable Bypass for Channel • For cleanup purposes, the PK_BYPASS_FSK_Cleanup is called before exiting the application
Getting Started • Install the PIKA Low Level HMP API and PIKA High Level on a PC ( 2.7.x or newer ) as described in the Getting Started Guide • Install the Analog Trunk board in the PC • Download, Compile, and run the FSK Bypass Sample application
Application thread diagram PKX_SYSTEM_XXX PIKA GrandPrix Library Main Thread PKX_GROUP_XXX PKX_CHANNEL_XXX Spawn Thread PKX_CALL_XXX Main Event Thread PIKA MonteCarlo Library Incoming Call Events PKH_FSK_XXX PKH_CHANNEL_XXX Spawn Thread FSK BypassEvent Thread Incoming FSK Events
Class containment FSK Main Sample 1 CFskReceiveContainer 1 1 CFskReceive n
Where can I find it? • The Source code is located under: • http://svn.pikatech.com/customercare/trunk/samples/fskBypassSample/