I've connected a Bluetooth module to UART1. Its UART is digital level so I don't need a level converter. Something like MAX3224 and a couple of capacitors is what's needed for digital -> RS232 conversion. Chips with less pins than the 3224 exist, too, if that's a problem.

As for software, I've modified the UARTM module so that all tx/rx goes to/from both UARTs. Basically, it's an additional module that takes care of stripping event messages of the Bluetooth module, and starting it up of course. I'll attach a pic showing the doc diagram. I hope there's a better way of doing this, this approach requires modification of the HPLUART layer.

The biggest problem is, UART 1 shares I/O lines with external flash and there's a conflict with applications that use the flash. I tried to ask on this forum what could be done to arbitrate between those two but nobody seems to know. To be exact, I got one good example, but it just wasn't adaptable to my system. I know this problem is already taken care of, as UART 0 and the radio use same I/O with working arbitration. I just should find out how and where it's done.

I'm still trying to find better solutions to this.

Regards,

        Harri

At 07:13 PM 2/15/2006 -0700, Michael Schippling wrote:
This comes up periodically. Try searching back on the help list.
One of these days someone will post a demo app...but not yet.

First, physically connecting to the board...I have my own layout
for a sensor board, but I'm not aware of any commercial products.
You can just solder to the right pads on the connector and goop
everything together, but it's an ugly process/result.
Can anyone else comment?

Second, if your sensors have 9pin connectors they are probably
_real_ RS232 which uses +/- 3v signals, whereas the mica board's
serial lines are 0/+3v logic levels. You will need a level
converter for reliable connection. The MIBs have such a beast.

Third, programming on the TOS side involves using the UARTM
module. Start from TOSBase is a partial solution but you
will probably run down a number of rat-holes until you get
the right combination of modules. Using GenericComm to get
to the radio, as any "normal" person would think to do is no
good because it takes over the UART as well.

MS

Liangping Ma wrote:
I got a mote kit and some sensors that are not
produced by Xbow. These sensors have their own 9-pin
serial com ports.
Has anyone done any programming to enable the
communication between motes and non-Xbow sensors?
Thanks.
- Liangping
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to