Sensor charatization

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Sensor charatization

Postby claudio4parallella » Wed Aug 16, 2017 12:50 pm

hi!
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
claudio4parallella
 
Posts: 70
Joined: Thu Aug 10, 2017 3:48 pm

Re: Sensor charatization

Postby sebraa » Wed Aug 16, 2017 2:18 pm

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.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Sensor charatization

Postby claudio4parallella » Wed Aug 16, 2017 2:38 pm

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.
thanks
claudio4parallella
 
Posts: 70
Joined: Thu Aug 10, 2017 3:48 pm

Re: Sensor charatization [SOLVED]

Postby claudio4parallella » Wed Aug 16, 2017 4:38 pm

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.
claudio4parallella
 
Posts: 70
Joined: Thu Aug 10, 2017 3:48 pm

Re: Sensor charatization

Postby sebraa » Wed Aug 16, 2017 6:58 pm

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.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Sensor charatization

Postby claudio4parallella » Thu Aug 17, 2017 9:39 am

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.
claudio4parallella
 
Posts: 70
Joined: Thu Aug 10, 2017 3:48 pm

Re: Sensor charatization

Postby claudio4parallella » Thu Aug 17, 2017 12:48 pm

....
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" .
claudio4parallella
 
Posts: 70
Joined: Thu Aug 10, 2017 3:48 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 7 guests

cron