Oh well...so much for simple...
At this point I would start connecting scopes to the lines
to make sure stuff is (not) actually happening. Also double
check how you have connected to the mote RX/TX/Gnd to make
sure you got the right pins...that would be my first mistake.
In fact, how did you connect to the 'Z? I have my own 'mother-
board' but people keep asking about what's available in connectors...
welcome to the world of hardware integration.
MS
Carlos Eduardo Rodrigues Lopes wrote:
Michael,
the camera has booth interfaces (a jumper select between them).
Currently I´m using the TTL. And by the camera maunal every command sent
to the camera should result in at least an ACK messagem (it´s really an
ASCII msg).
The camera works correctly, we tested it whith it´s RS-232 interface and
minicom (PC). Abou the protocol and don´t think so, since I can send
messages to the camera.
On 3/3/06, *Michael Schippling* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Just to be sure...the camera is really TTL level and not RS-232 right?
And you do know for certain that it is sending something to the mote?
I interpret your "comunicate via RS-232 (MIB-510) using minicom" to
mean that comm between the mote and the host over over the serial
line works fine. Are you sure the camera is working correctly and
doesn't require some request protocol that you are not following?
MS
Carlos Eduardo Rodrigues Lopes wrote:
> Hi all,
>
> I'm trying to connect a CMUCam2 with a MicaZ via Uart. Since the
camera
> can't understand TOSMsg packets i need to change commands
byte-to-byte.
>
> A attached a TTL Serial port into MicaZ expansion Uart pins (27
and 28).
> The comunication uses Micaz default settings 57.6 Kb, 8 bits no
parity,
> 1 bit stop word.
>
> In MicaZ programming side I'm using the HPLUART interface... the
send da
> function works pretty fine but teh get one (to receive data from the
> camera don't work). When a comunicate via RS-232 (MIB-510) using
minicom
> teh comunication works perfectly.
>
> Can anyone point me some direction???? A have tried a lot of
things and
> nothing worked. He is a sample of my code:
>
> module TestUartCamM {
> provides {
> interface StdControl;
> }
> uses {
> interface Leds;
> interface Timer;
> interface HPLUART;
> }
> }
> implementation {
> // uint8_t cnt;
> uint16_t cnt;
> char * msg = "l0 1\r";
>
> task void sendChar() {
> atomic {
> if(cnt < strlen(msg)) {
> call HPLUART.put(msg[cnt]);
> }
> }
> }
>
> command result_t StdControl.init () {
>
> // para começar do incio do texto
> atomic {
> cnt = 0;
> turn = 0;
> }
>
> call HPLUART.init();
> return SUCCESS;
> }
>
> command result_t StdControl.start() {
> call Timer.start(TIMER_ONE_SHOT, 5000);
> return SUCCESS;
> }
>
> command result_t StdControl.stop() {
> call Timer.stop();
> return SUCCESS;
> }
>
> event result_t Timer.fired() {
> post sendChar();
> call Leds.redToggle();
> atomic {
> turn++;
> }
>
> return SUCCESS;
> }
>
> event async result_t HPLUART.get(uint8_t data) {
> call Leds.greenOn();
> if(data == 'A' || data == 'a') {
> call Leds.greenOn();
> }
> else {
> call Leds.greenOn();
> }
>
> return SUCCESS;
> }
>
> event async result_t HPLUART.putDone() {
> atomic {
> cnt++;
> }
> post sendChar();
> call Leds.yellowToggle();
> return SUCCESS;
> }
>
> }
>
>
>
> --
> Carlos Eduardo Rodrigues Lopes
> Mestrando em Engenharia Eletrica - UFMG
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
<mailto:[email protected]>
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Carlos Eduardo Rodrigues Lopes
Mestrando em Engenharia Eletrica - UFMG
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help