Page 1 of 1

Sensor charatization

PostPosted: Wed Aug 16, 2017 12:50 pm
by claudio4parallella
just to describe my scenario, I'm trying to use Parallella with some sensors that need characterization, I mean a cycle of readings within 2/3 physical conditions in order to have a 3D table of points each, once as its own peculiar calibration.
When real readings must occur, the linear regression in between of the right cube within the 3D matrix of calibration must be got out.

Well, far from my final result, I have created my host.c code and my e-device.c code.
As optimized output I need to use ncurses library with my e-device.c code in order to show results of my cores working in parallel at fixed position on my ssh remote terminal.

Well , my trouble and my request for help:
I am in trouble to link -lncurses and my curses.h.
No way adding to e-gcc command line the -L/lib/arm-gnuxxxx and -I/usr/lib in order to make ld link the library using the headers.
What am I missing, if anybody coukd help me?
I'm attempting to use the epiphany-examples/apps source code but unsuccessfully.

my best and thanks in advance

Re: Sensor charatization

PostPosted: Wed Aug 16, 2017 2:18 pm
by sebraa
You can use ncurses with the host program to show whatever you want to your terminal.
The Epiphany cores can't access the terminal, and you can't use ncurses with them.
You could also dump ANSI escape sequences (VT220-compatible control characters) directly instead of using ncurses.

Trying to combine ncurses and e-gcc is wrong.

Re: Sensor charatization

PostPosted: Wed Aug 16, 2017 2:38 pm
by claudio4parallella
thanks for your reply.
I apologize for my ignorance in using epiphany.
One week of study with examples and now I was trying my experiments using C.
That's my conclusion, from practice, lncurses cannot work with e-gcc.
So definitely the only I/O of the cores of epiphany is using the shared memory.
Sorry for my trivial attempt involving you.
Anycase, I am glad to hear vitality in the parallella forums, as well as the project has died.

Re: Sensor charatization [SOLVED]

PostPosted: Wed Aug 16, 2017 4:38 pm
by claudio4parallella
I'll try to use omp4-epiphany
I should be able to do something on each core differentiating the tasks and send the output to a specific position in the window, with ncurses or using escape commands.

Re: Sensor charatization

PostPosted: Wed Aug 16, 2017 6:58 pm
by sebraa
Good luck. Just remember that the Epiphany cores only communicate with the Linux system (either through shared memory or through the host program itself). It is always the host program displaying stuff, not the cores themselves.

You can create a memory buffer for each core in the shared memory, and have the host display their contents. The cores just need to update the buffers then, and wouldn't need to access the terminal directly.

Re: Sensor charatization

PostPosted: Thu Aug 17, 2017 9:39 am
by claudio4parallella
Thank you.
I've fully understood your statement.
Now Parallella Epiphany Architecture and programming begin to be clearer to me.
The documents and the examples provided in the last img I installed are fully explantory.
Thanks again for yur help.

Re: Sensor charatization

PostPosted: Thu Aug 17, 2017 12:48 pm
by claudio4parallella
as somebody wrote in some other posts....

<< I enjoy programming on the Parrallella because it is hard.
I love hard things

I'm going to order a second Parallella with a Porcupine sister in order to set up GPIO interface and build up a 2-node parallella-cluster and learn learn learn... more hard things.

Thank you to all for this "still alive invention" .