To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 4022
4021  |  4023
Subject: 
Problem to send long messages from RCX to PC via com Hack
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 10 Jun 2008 07:13:24 GMT
Viewed: 
23431 times
  
Hi,

Once again i am back about RCX and BT-Connection.

Receiving messages from the PC via BT to the RCX is OK.

But if I send messages from the RCX to the PC with 4800 Baud i get only 4 Bytes.

So I go back to 2400 Baud, forget BT and make a serial Connection via RS232 to
the PC.

Now i got only to bytes via rs232 in the pc.

1) I checked the result of the send procedure :
Oh i get -1:  means tx/rx Collission

void SendInt()
{
int result;
unsigned char buf_integrity[8];

   buf_integrity[0]  = 'A';
   buf_integrity[1]  = 'B';   // no more will be send
   buf_integrity[2]  = 'C';
   buf_integrity[3]  = 'D';
   buf_integrity[4]  = 'E';
   buf_integrity[5]  = 'F';
   buf_integrity[6]  = 'G';
   buf_integrity[7]  = 'H';

   result = lnp_integrity_write(   buf_integrity, sizeof(buf_integrity));

   lcd_digit(RxNr);
   lcd_int(result);
   RxNr++;
   if   (RxNr > 9)     RxNr=0;
}

I remember about the thread 4018 from Claude Baumann

I take a camera (you can see if the IF-leds on the rcx are flickering if TX) and
I see: the rcx is tx via the IF-leds.

I don't know why i get the tx signal back to rx pin, because i have cut the
receiverline in the rcx (IR-Receiver rx pin)
as shown  http://www.convict.lu/Jeunes/RCXCam/RCXCam_Journal.htm

in the main program i do now:

cputs("if--") ;    sleep(1);
//! disable IR carrier frequency.    // carrier_shutdown();
//extern inline void carrier_shutdown(void)
  T1_CR  =0;
  T1_CSR =0;

  // ---------------   does not work ----------------------------
  // and set the port6<7> pin LOW. Now the upper PNP
  //transistor isn't conducting anymore.
  // Port Bit Description Notes
  // 6 7 Infrared carrier (TMO1) 26µs square wave

  cputs("pt67") ;      sleep(1);
  cputw(PORT6);        sleep(2);
  cputs("cler") ;      sleep(1);
  bit_clear(&PORT6,7);   sleep(1);
  cputw(PORT6);        sleep(1);

any suggest?

Bernhard



Message has 1 Reply:
  Re: Problem to send long messages from RCX to PC via com Hack
 
I don't know if this is would be of any help, as it uses a different approach, but I thought I'd pass it along anyway.... Bi-directional Bluetooth to IR translator - (URL) (PDF format: (URL) ) While this solution doesn't allow both the serial and IR (...) (16 years ago, 28-Jun-08, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR