Chumby Hackerboard i2c Highspeed

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Chumby Hackerboard i2c Highspeed

Postby robtwn » Wed May 09, 2012 6:12 pm

This is perhaps a question for Sean Cross who wrote the i2c twiddler-tool.

I saw a post on another forum (of which I now can't find the reference), saying that the kernel driver for i2c won't handle 400 Kbps stream without kernel modification. I care about this because I'm about to embark on trying to use the Chumby Hackerboard to integrate the output of four (4) AVR-CAN boards, each listening to automobile CAN buses clocked at 500 Kbps, with 2 buses processing a CAN message every millisecond. My questions are two: (a) should I continue down this path of try to use i2c at 400 Kbps, or should I look elsewhere to link all these guys, and (b) is the SD card fast enough to store the aggregate stream? Any advice much appreciated, including kernel changes if they are required.

very best/robert
robtwn
 
Posts: 2
Joined: Mon Jun 13, 2011 1:28 pm

Re: Chumby Hackerboard i2c Highspeed

Postby Xobs » Thu May 10, 2012 12:31 am

When we were frist bringing up the board, I remember briefly trying to run it at 400 kHz, but it became unstable, and as this was just a few days before shipping I decided to run it at the original speed. Since 100 kHz was enough for our purposes, I left it at that.

You can try modifying the kernel at https://github.com/xobs/linux-2.6.28.mx ... i2c.c#L361 to increase the timing. Those numbers were pulled straight out of the reference manual. I seem to recall that code is called only once at boot, so you could probably use regutil to bang in the faster timing values mentioned in that file (e.g. 'regutil -w I2C_TIMING0=0x000F0007 -w I2C_TIMING1=0x001F000F -w I2C_TIMING2=0x0015000D') and seeing if it works.

The SD card ought to be able to keep up with that. Writes will get aggregated by the disk cache and will be flushed out in chunks of several kilobytes. I'm not sure of your exact use case, but provided you're below several megabytes per second, you should be okay.
Xobs
 
Posts: 1
Joined: Mon Feb 06, 2012 4:04 am

Re: Chumby Hackerboard i2c Highspeed

Postby robtwn » Sat May 12, 2012 8:18 pm

Thanks Xobs. I'll give your suggestion (using regutil to change the kernel values) and see what happens. Will advise further.

very best regards/robert
robtwn
 
Posts: 2
Joined: Mon Jun 13, 2011 1:28 pm


Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]