Hi, one of the functions that I want to implement is a temperature logger. The CAN device sends temperature information with a certain period and the CAN application collects them is some kind of data array. The php application needs to view all this data to plot graphics and table or whatever!
Thanks, Paolo In data 23 ottobre 2007 alle ore 15:54:47, Dave Van den Eynde <[EMAIL PROTECTED]> ha scritto: > I think we know too little about the application to decide what's best. > The person who needs to decide, needs to be aware of the patterns > involved in using either. > > I would like to note though, and your Wikipedia link confirms it, that a > FIFO is a special type of 'file', and that my previous remarks still > hold in that context. It's just a matter of deciding whether all of the > information from one process needs to be read in the other process or > that it's the 'last known state' of a certain information that needs to > be available at all times but rarely read. > > I'm guessing here, but if it's a CAN network that sends messages, that > may mean those message contain information like read input values and > such, and perhaps the PHP application is there to show the last known > input value and perhaps send back configuration updates and such. In > such case, the PHP page, IF ever rendered, does not need to process the > whole backlog of all previous values. > > Still, everything is up to the application engineer. > > Dave > > > "Roberto A. Foglietta" <[EMAIL PROTECTED]> > wrote: I do not think sharing data between > two application via files is a > good, portable and sustainable method. I think it is the worst. If the > two application would never collaborate via any network socket are > overheaded for the task and two named pipe (fifo with file name) are > the right and simplest way. > http://en.wikipedia.org/wiki/Named_pipe > http://www2.linuxjournal.com/article/2156 > 2007/10/23, Dave Van den Eynde <[EMAIL PROTECTED]>: > > > > Hey, > > > > Perhaps you should elaborate on the type of "sharing" that you would > like to do? Why not do it the traditional UNIX way? Simply place the > data that you want to share in a file from one application, and read it > from another. > > > > You'll need to consider: > > - access permissions > > - concurrent access > > > > When you use sockets you'll have a lot more to consider. > > > > Dave > > > > > > Paolo Chiarabaglio <[EMAIL PROTECTED]> wrote: > > Hi Roberto, > > > > thanks for your answer but as I've never done something like this I > don't > > know this tweo methods! Can you please tell me where I can find some > > examples or tutorial? > > > > Thanks, Paolo > > > > In data 23 ottobre 2007 alle ore 00:05:10, Roberto A. Foglietta > > > > ha scritto: > > > > > paolo chiarabaglio wrote: > > >> Hi, > > >> > > >> I have to share data between a software that runs in the > background on > > >> the fox board and some php applications. > > >> Data must go from php to C application and vice-versa. > > >> > > >> How can I do this easily? > > > > > > socket or fifo, I think > > > > > > Cheers, > > > Roberto > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > Cheers, > -- > /roberto > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/foxboard/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/foxboard/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
