Mon 02 Apr 2007 08:33:08 AM UTC, comment #2:
Hi,
Concerning this bug, i try to test it and i programm the folowing steps:
> 1.user builds the list of parameters he wants to acquired
> --> the list of symbols : _symbols
> TSP_consumer_request_sample(_provider,&_symbols);
> 2.start sampling sequence
> TSP_consumer_request_sample_init(_provider, 0, 0)
> 3.read sample (loop)
> tsp_consumer_read_sample()
> 4.reset the list of parameters he wants to acquired
> tsp_consumer_request_sample_destroy(_provider)
> 5.user builds a new list of parameters and start sampling
> TSP_consumer_request_sample_init(_provider, 0, 0);
> tsp_consumer_read_sample();
This programmation is now OK.
But, in my project,the steps are programmed by user .In this way, when the user wants to destroy and then to have a new acquisition cycle,there's a time sleep between the steps.That's why, i programm now theses actions:
> 2
> TSP_consumer_request_sample_init(_provider, 0, 0)
tsp_sleep(20 secondes approximatively );
> 3
> tsp_consumer_read_sample()
tsp_sleep(20 secondes approximatively );
> 4
> tsp_consumer_request_sample_destroy(_provider)
tsp_sleep(20 secondes approximatively );
> 5
> TSP_consumer_request_sample_init(_provider, 0, 0);
tsp_sleep(20 secondes approximatively );
> tsp_consumer_read_sample();
My TSP problem:
In provider side,i have the following stracedebug():
TSP Provider on PID 31051 - URL #0 : <rpc://pludtune/StubbedServer:2>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_open##285: OPEN
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_add_session##294: New consumer registered with TSP channel_id=0
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <0> goes to <1>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_filtered_information##414: FILTERED INFORMATIONS channel_id=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_filtered_information##434: Requested filter kind <2>, filter string = <timestamp>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_filtered_ssi_list_default##254: Requested filter kind <2>, filter string = <timestamp>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_filtered_ssi_list_default##264: Nb Match(es) is <1>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample##456: SAMPLE channel_id=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample##466: Consumer No 0 asked for 2 symbols
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_pgi_default##200: Found symbol <symbolD> pgi=<4>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_pgi_default##200: Found symbol <symbolE> pgi=<5>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_get_nb_groups##122: Found <1> group(s) for request with <2> symbol(s)
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_get_groups_summed_size##177: Groups_summed_size is 2
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_allocate_group_table##240: Max group size = 2
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <1> goes to <3>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample##456: SAMPLE channel_id=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample##466: Consumer No 0 asked for 3 symbols
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_pgi_default##200: Found symbol <timestamp> pgi=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_pgi_default##200: Found symbol <symbolD> pgi=<4>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_default_glu.c##GLU_get_pgi_default##200: Found symbol <symbolE> pgi=<5>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_get_nb_groups##122: Found <1> group(s) for request with <3> symbol(s)
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_get_groups_summed_size##177: Groups_summed_size is 3
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_group_algo.c##TSP_group_algo_allocate_group_table##240: Max group size = 3
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <3> goes to <3>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample_init##508: SAMPLE_INIT channel_id=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_stream_sender.c##TSP_stream_sender_get_data_address_string##286: -->address='140.94.13.171:60860'
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <3> goes to <4>
start envoi des donnees 3
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <4> goes to <5>
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample_destroy##547: SAMPLE DESTROY channel_id=<0>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <5> goes to <6>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_garbage_collector_thread##575: Will garbage collect session channel_id <0> in state <6>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_garbage_collector_thread##592: Sending missing REQUEST CLOSE to channel_id <0> in state <6>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_change_stateTo##147: Session was in state <6> goes to <2>
Info||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_garbage_collector_thread##595: Session No 0 'garbage-collected'
TOP 10 valtimestamp :>0< nb symbol>1075970048<
TOP 20 valtimestamp :>0< nb symbol>1077084160<
TSP Request||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_provider.c##TSP_provider_request_sample_init##508: SAMPLE_INIT channel_id=<0>
ERROR||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_get_session##125: No session found for channel_id=0
ERROR||/home/intocv61/VAla/TSP/sources/src/core/ctrl/tsp_session.c##TSP_session_get_GLU_by_channel##209: Unable to get session for channel_id=0
Thanks
Sarah
|