Hi, Typically such values should be per-platform definitions (residing in tos/platform/<your-platform/chips/<chip-name>/) that can be easily overridden, but I see that for that atm128 it's actually hard-coded in tos/chips/atm128/HplAtm128UartP.nc. You'll simply need to adjust the values there to match what's needed for the GSM modem.
This is assuming you're using an already-supported platform (e.g. micaz). If you're building your own platform, you'll want to read up on TEP131 ( http://www.tinyos.net/tinyos-2.1.0/doc/html/tep131.html). Regards, /Johny On 8 February 2012 15:16, #BHARTI GOEL# <[email protected]> wrote: > Hi, > > I am new at developing applications using Tinyos. I have a conceptual > doubt if someone can explain to me. > > I need to interface my mote with a GSM modem using TinyOS2. I can get all > the GSM modem configurations from the datasheet. It uses the UART to send > and receive data. > > On the mote side, in my nesC program, I can implement UART by using the > existing configurations like Atm128Uart0C which provide UartStream > interface. However for any handshaking between the mote and the GSM modem, > both should be configured with same values. (baud rate, data bits etc) > How do I do that? > Do I need to make an entire atm128 chip like component where I pluck in > the values similar to GSM modem (C:\cygwin\opt\tinyos-2.x\tos\chips\atm128)? > > Or is there another way? > > I am sorry if it is a stupid question but I am not sure how I should go > about? > > Thank you > regards > BG > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Johny Mattsson Senior Software Engineer DiUS Computing Pty. Ltd. *where ideas are engineered *
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
