Hi, The idea is there:
1. Implement a program that is able to send and receive data through serial port. You may search for terms like: program serial port linux programming.Try this program communicating 2 PCs. 2. You can send a command just moving the data, but you may have to register one listener-thread to keep listening every asynchronous command that the other PC could send. 3. Once you are able to communicate 2-PC's then you can reuse the same code to communicate with the motes. To do so, use the mig-generated functions for dealing with your own struct-like defined messages That is it! Really, it is not very complicated. I hope it helps! Sergio On Tue, Jul 12, 2011 at 8:50 AM, TJ <[email protected]> wrote: > Hey, > Thanks for that link, will come handy soon. But currently i'm in need of a > code for ubuntu systems. > > > Always Yours > Tejovanth > Tj n Spook > > > > 2011/7/12 Breno Guimarães <[email protected]> > >> I hope it helps >> http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c >> >> 2011/7/11 TJ <[email protected]> >> >>> Hey, >>> I'm able to receive data (tested using the mote), and send data (tested >>> using arduino). But i don't think my code on the mote to handle receiving >>> events is working. Can you help me with that?? >>> >>> Thanks >>> >>> >>> Always Yours >>> Tejovanth >>> Tj n Spook >>> >>> >>> >>> On Sat, Jul 9, 2011 at 7:31 PM, R.P. <[email protected]> wrote: >>> >>>> i think you'd better use xserve for linux (read >>>> http://blog.livedoor.jp/sssj/archives/51421525.html) and drop packets >>>> into a database or xml file >>>> then on your c/c# program , you might handle readings better with >>>> query, or xmlread >>>> >>>> >>>> >>>> On 7/7/11, TJ <[email protected]> wrote: >>>> > Hey >>>> > >>>> > I have a C program on Ubuntu. This needs to communicate with a MicaZ >>>> mote >>>> > connected to the computer. Can anyone suggest how can i do this, >>>> without >>>> > using the SerialForwarder. >>>> > I'm unable to use the SerialForwarder as I'm nit able to isolate the >>>> > functions to send and receive. Or if anyone can tell me how to use the >>>> same >>>> > for my application, that'll be great. >>>> > >>>> > Thanks in advance. >>>> > >>>> > Always Yours >>>> > Tejovanth >>>> > Tj n Spook >>>> > >>>> >>>> >>>> -- >>>> __________________ >>>> Raul Antonio Piccinni >>>> >>> >>> >>> _______________________________________________ >>> Tinyos-help mailing list >>> [email protected] >>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >>> >> >> >> >> -- >> Breno Rodrigues Guimarães >> Universidade Federal de Minas Gerais - UFMG, Brasil >> (Federal University of Minas Gerais, Brazil) >> >> >> >> > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
