[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tsp-devel] BB sur Rtems
From: |
Arquer Stephane |
Subject: |
[Tsp-devel] BB sur Rtems |
Date: |
Wed, 14 Nov 2007 11:04:56 +0100 |
Frederik,
Voic le code que j'utilise pour tester le BB:
---------------------------------------------------------------------------------------
/* Creation BB */
n_data = 1000;
data_size = n_data*8 + 500*30*4 + 200000*8;
if (BB_NOK == bb_create(&mybb, bb_name, n_data, data_size)) {
bb_attach(&mybb, bb_name);
}
printf(" Creation du BB OK: %p \n", mybb);
Titi= (double*) bb_simple_publish(mybb,"Titi", bb_name, 1, E_BB_DOUBLE,
sizeof(double),1);
printf("@Titi = 0x%x, Titi = %f\n",(unsigned int)Titi,*Titi);
Toto = (int32_t*) bb_simple_publish(mybb,"Toto", bb_name,1, E_BB_INT32,
sizeof(int32_t),3);
for (i=0;i<3;++i) {
Toto[i] = i;
}
for (i=0;i<3;++i) {
printf("@Toto = 0x%x, Toto[%d] = %d\n",(unsigned
int)&Toto[i],i,Toto[i]);
}
Tata = (double*) bb_simple_publish(mybb,"Tata", bb_name, 1, E_BB_DOUBLE,
sizeof(double),9);
status = launch_bb_rtems_provider(bb_name);
if (status != RTEMS_SUCCESSFUL){
printf(" Erreur launch_bb_rtems_provider \n");
}
sleep(5);
while (i<2000000) {
Tata[0] = sin((2.0*i)/180.0);
Tata[1] = cos((2.0*i)/180.0);
Toto[0] = i % 1000;
*Titi = (double)i;
usleep(50000);
if (++i%100==0) { printf ("."); fflush(stdout); }
}
---------------------------------------------------------------------------------------
Le lancement du bb_provider se termine correctement, mais lorsque je connecte
le client stdout_rtems
J'ai l'erreur suivante coté client:
Tsp_stdout_client_rtems: Asking for 1 symbols
symbols <0> is < (_1_Titi>
Erreur de segmentation
Côté serveur:
ERROR:tsp_session.c: TSP_session_create_data_sender_by_channel ## 566: GLU
return base frequency = 0.00
ERROR:tsp_provider.c: TSP_provider_request_sample_init ## 522:
Si tu as une idée, ...
Merci.
Stéphane.
- [Tsp-devel] BB sur Rtems,
Arquer Stephane <=