To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 671
670  |  672
Subject: 
Re: Using NXT Port 4 EIA-485
Newsgroups: 
lugnet.robotics.nxt
Date: 
Tue, 17 Apr 2007 14:44:23 GMT
Viewed: 
18479 times
  
I'm using an ATMega8 as frontend processor between NXT and SD-Card.

Step1: NXT===>I2C===>ATMega8==>SPI===>SD-Card
Disadvantage: Very low speed (9600)
Step2: NXT===>EIA-485===>ATMega8/16===SPI==>SD-Card

This should work in an easy way, FAT-Support for SD-Cards is available
and running...

Great idea Christian! What kind of API do you need to make this work?

I think these might get things started:

nxt.RS485SetParam( speed, parity, databits, stopbits )
nxt.RS485SendData( string, bytes )
string = nxt.RS485GetData( bytes )
status = nxt.RS485GetStatus()

I'm open to suggestions. Do we need to set the number of bytes to
expect? Probably not.

Send and receive under interrupts and DMA, probably.

Need to read into a buffer, and keep track of TX status so we don't
flood the transmitter.

Comments?

Ralph



Message has 1 Reply:
  Re: Using NXT Port 4 EIA-485
 
ReHi Ralph, (...) I'd like to have some address information for device number added (can be done at a higher layer ?)... EIA-485-Hardwareconcept allows to handle more than one target :D ID0: Master (NXT) ID1: SD ID2: Camera :D ... (...) I hope we (...) (18 years ago, 17-Apr-07, to lugnet.robotics.nxt)

Message is in Reply To:
  Re: Using NXT Port 4 EIA-485
 
(...) Ralph, I'm using an ATMega8 as frontend processor between NXT and SD-Card. Step1: NXT===>I2C===>ATMega...==>SD-Card Disadvantage: Very low speed (9600) Step2: NXT===>EIA-485===>AT...==>SD-Card This should work in an easy way, FAT-Support for (...) (18 years ago, 17-Apr-07, to lugnet.robotics.nxt)

15 Messages in This Thread:




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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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