tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tsp-devel] EIF TSP: tsp_consumer_request_sample_destroy


From: ZXOPESOGE001, Ext
Subject: [Tsp-devel] EIF TSP: tsp_consumer_request_sample_destroy
Date: Wed, 28 Feb 2007 16:25:30 +0100

Hello,

I'm working on project EIF_TSP with Virginie ALAUX (EADS-ASTRIUM) and I have some problems with TSP protocol.

The EIF_TSP must do the following actions:
 -> Try to connect to the provider, get the available TSP symbols of provider
-> the user selects the list of TSPsymbols he wants to get using their name
--> the user launchs the sampling acquisition cycle
During the sampling, the user can:

In this way, in a first time, I would like to have a loop for getting sample values from provider.(Theses values have been asked by user).Then, I would like to reset the list of symbols wanted by user.(stop the sampling sequence).The user can ask  new parameter he wants to acquire. Finally, i would like to launch a new acquisition cycle (without disconnection to provider).

To do this, I programm the following steps:
1. connection to provider
TSP_consumer_connect_url()
TSP_consumer_request_open(_provider, 0, NULL)
TSP_consumer_request_information(_provider)
information = TSP_consumer_get_information(_provider) (to have tle list of available symbols)
2.user builds the list of parameters he wants to acquired
--> the list of symbols : _symbols
TSP_consumer_request_sample(_provider,&_symbols);
3.start sampling sequence
TSP_consumer_request_sample_init(_provider, 0, 0)
4.read sample (loop)
tsp_consumer_read_sample()
5.reset the list of parameters he wants to acquired
tsp_consumer_request_sample_destroy(_provider)
6.user builds a new list of parameters and start sampling sequence
TSP_consumer_request_sample(_provider,&_symbols);
TSP_consumer_request_sample_init(_provider, 0, 0);
tsp_consumer_read_sample();

My TSP problem:
When i tell the provider to stop sending sample on calling tsp_consumer_request_sample_destroy, i have the following stracedebug():

/tsp_stream_sender.c##TSP_streamer_sender_thread_sender##200: End of fifo thread stream sender
/tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
 /tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
/tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
/tsp_session.c##TSP_session_close_session##164: Request Closing session channel_id = 0
/tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
 /tsp_session.c##TSP_session_close_session##173: X_session_nb now = 0.
In this way, it's impossible to ask a new cycle of sampling  because the session is closed.
What kind of tsp requests can I use to stop a sampling acquisition cyle without close the connection and then restart a new acquisition?

Thanks
Sarah Montigaud


Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees ou dont la diffusion est restreinte. Si vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir immediatement l'expediteur et d'effacer ce courriel de votre systeme. Astrium decline toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique.
This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.
---------------------------------------------------------------------
Astrium SAS (393 341 516 RCS Paris) - Siege social: 6 rue Laurent Pichat, 75016 Paris, France

reply via email to

[Prev in Thread] Current Thread [Next in Thread]