OpenWrt Forum Archive

Topic: Brainstorm of a newbe - wich hardware use BCM4712 and 2xUSB?

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Salve!

I know a Firewall is a Firewall and should not be used as a server, BUT the routers with BCM47x2 are so cheap and use only a few power, that it would be fun to run some programs, scripts on them and add several devices and sensores to the I/O ports. (Ok maybe I will use one box as Firewall and one as server). So I'm looking for the box wicht have the most memory and I/Os for the money!

Which boxes has BCM4712 (8/32MB) and have or could be added
- 2x RS232
- 1x RS232 1xLPT
- 1x RS232 1xUSB
- 1x LPT 1x USB
- 2x USB
Are more then 2 I/Os possible?
BTW for less then 10 Euros you can buy an USB to RS232 converter (www.reichelt.de e.g.)
Does a terminal on USB (via USB to RS232 or directly USB) helps when a FW update had faild?

-When using a BCM4712 with ssh, which shells are possible? Bash?

-seriell Displays for $6
http://store.earthlcd.com/s.nl/c.318770 … egory.4/.f
-"240x64 Interactive Serial LCD Terminal" for $29:
http://store.earthlcd.com/s.nl/c.318770 … id.1210/.f

-Any good links,ideas to add 1-wire/2-wire/3-wire senors (temperatur,......) to the box?

-Any good scips/ideas for BT (via USB)? like connecting the Doorbell and dooropener - automaticaly door-opener wenn ringing "- . - -" and the Mobile BT is in range?

-Is the Flash/RAM on chip or on board? Is it possibel to solder more memory to the system like an 8 MB upgrade for PalmIII?

-Any solutions for "boot on time"`? Circuit layout to add a small IC to do this?

-Is it possible to swich off by software? Any hardware solutions?

-Is it possible to have a hardware hack to power on when a device on Ethernet is powerd on? (I know power on lan with magic packests will not work *g* so it must be a hardware hack)

-Would it possible to run asterisk.org (voip sever) on a BCM4712?

-Cheap VoIP solutions with a BCM4712? Converter to analog Phone? USB audio headset and $29 terminal?

-Anyone using a BCM4712 as Internetradio (audio out USB audio)?

-Any good ideas to use this SSH1 client on a J2ME mobile:
http://phoenix.inf.upol.cz/~polakr/
? (BTW this cool software is the reason why I whan't to have a cheap server wink

So back to my mayor question - what modell is offers the best/most I/O (which) original/by-hack for having the most fun for the money?

Greetings
rob

Salve itwerx,

it nonetheless sounds like a lot of what you're doing

hey it was just (a try of) a  brainstorm what would be possibel with a 8,3 Watt PC runnig 24/24h - to have the best BCM4712 box for this wink

At home it will be a cheap computer that has the basic communication and will run most of the time - why not use it for home-automatisation, housebreaking alarm centrale and other stuff?

Because I see that it`s possibe to have much fun with this cheap hardware I'm looking for the modell with the best I/Os.

would be better handled by a PIC.

Cool tip (also froogle) - I haven`t experiances with ICs, but the programmable PIC seems to offer a lot of possibities for < $4 *g*

But to get me right, I would like to add this to a BCM4712. Could I add 2x USB to a  WRT54gs without de-solder the BCM4712? Is it possible to add on RS232 and one USB? USB 1.1 or 2? Is Asus a better choice?

Greetings
rob

I have seen web sites both for adding serial ports to the WRT54GS and for using a PIC to interface with a USB device but I didn't keep track of them because those are not projects I'm interested in at the moment.  I would recommend using Google to search for more information as all of these topics are a bit outside of what is discussed here.  Sorry!

Salve,

I like to start a wiki with hardware information about routers focusing on the chip, memory, max memory, I/O chips, I/Os, possible addable I/Os, price for this I/O hack, vedor, modellname, version, price

The SystemOnAChips are the heart of every router, so I started an overview about them:
http://openwrt.ksilebo.net/SystemOnAChip

Does OpenWRT alread run on non Broadcom Chips?

It seems for me that the core of many Broadcom Chips are the same, because OpenWRT is thought to be modular, would OpenWRT give a startingpoint for developers to use other Broadcom Chips? Like:
"BCM1115  Single-Port Voice-over IP CPE Engine"
Or:
"BCM2121
GPRS/GSM Single-Chip Baseband Processor

The BCM2121 GSM and GPRS baseband processor offers an unprecedented level of system integration, performance and features for next generation handsets and radio cards.

  The integration of the PA controller and speaker-phone/car-phone audio circuitry adds key GPRS handset features while reducing overall system cost.

The BCM2121 contains all analog and digital GSM and multislot GPRS baseband processing functions in a single chip. Interface functions and drivers are integrated to enable auxilliary components such as microphone, speaker, display, keypad, data terminal equipment and SIM to connect directly to the chip. A flexible baseband control interface supports a wide range of transceivers, including GSM850, E-GSM900, GSM1800 and GSM1900 frequency bands."
   See http://www.broadcom.com/collateral/pb/2121-PB03-R.pdf
   lol

OK, I never had soldered an FPGA and I have doubts that many people would solder their own mobile someday - but the routers and mobiles have one point together - broadcom produces only chips, so the documentation of the I/Os will be better then a company who produce his own chips for their own products - hacking and runnig linux of them will be much more complicatet or unpossibe - one example for this is the Motorola A760 Linux mobile - this week got a guy the kernel source for this handy (without config file) and even when he manage the flashing and booting of his own kernel, I fear not much more than display "Hello world" on the screen would be possible, I guess the DSP will be the secret of Motorola - no Audio I/O nor GSM.
   http://www.linuxdevices.com/cgi-bin/boa … p;Post=185

Get me right, I do not want to do all this - but tell me do I thing wright, that the Broadcom has a family of SystemOnAChips and OpenWRT could benefit when other chips on this family with a different function becomes useable by own Linux, too.
So it could grow to a small plattform where more developers/hackers/users will raise the number of packages and scritps to use with OpenWRT?

The major reason for the wikipage SystemOnAChip is that I what to find the best hardware (with USB 2.0) for OpenWRT - but I like to promote what else would be possibel *g*

Have a nice weekend,
rob

PS: The Pic idea is a good one, but this is system independent, so when the overview that SystemOnAChip running with OpenWRT has which I/O, some Pic experimentations/links could be added then.

I study civil engineering, so I'm not expert with electronics, but as I wrote, I had upgraded my Palm IIIx from 4 to 8 MB. The same I think would be possibel with the Routers, the memory is expensive, so it is solderd seperated on the board as you can see here:
http://voidmain.is-a-geek.net/si/?i=wrt … 205%20pins

In the middel you can see on violett:
Intel Flash
VER:1.42.2
CS:4280

Another picture http://kampfzwerg.cdaniel.de/gallery/al … 0_G?full=1
has on a green field:
VER:1.42.2
CS:9419

AFAIK are these chips a family with same pinlayout, independent on the flash size. It is realy a pitty that there is no public Broadcom BCM47x2 specification (I will email Broadcom to get one), but I can imagine that already the BCM4702 could manage 64 MB flash. (But I have some doubts, too, the Treo 600 phone is based on a Broadcom chip as well and in a forum some people complaint the low flash memory - I hope it is only a question of costs, not of a chip layout!)

Intel seems to have two kind of flash:
"The Intel® Advanced+ (C3) and Advanced (B3) Boot Block Flash memory family is the world's first flash memory on the 0.13 µm process lithography-Intel's fifth generation of its successful boot block memory products. Intel's C3 and B3 products are the industry's most widely used flash memory with a read/write and erase voltage range of 2.7 - 3.6 V for simplified low-voltage system design."
[,,,]
"Security Features (C3 only)
Advanced+ Boot Block Flash memory offers a number of features that provide our customers with an additional level of security including a unique silicon serial number and fraud protection register. It enables next-generation security solutions and is ideally suited for minimizing the risk of cloning and fraud in digital cellular phones and internet appliances.
Intel's C3 memory enables real-time protection for stored data and helps prevent corruption through instant individual block locking. Also, high-speed programming reduces manufacturing time-without the need for costly external voltage switching logic."
http://www.intel.com/design/flcomp/prodbref/298188.htm

B3:
http://www.intel.com/design/flcomp/data … 058018.pdf
C3:
http://www.intel.com/design/flcomp/data … 064518.pdf

Whats clear is that the chip has a TSOP format - you must have quiet hands (and engough coffee) to solder this  wink

Flash/RAM upgrade sites for PDAs & Co:
http://www.handhelds.org/z/wiki/http:// … gDram.html

Photo from WRT54 shows RAM:
http://kampfzwerg.cdaniel.de/gallery/al … 0_G?full=1
etrontech
EM6381 65ts-7
http://www.etron.com/img/pdf/SDRAM/64Mb … 638165.pdf
this shows that the RAM SDRAM is for 143 Mhz

THis great pictures shows also what are the second conectors for the flash means - it seems that PIN 26 (CE#) and 47 (Vccq) has optional differnt connectors.

I found a AXIM PDA hack page:
http://www.aximsite.com/boards/archive/ … -4319.html
With link to Infnion mobile DRAM 133 Mhz:
http://www.infineon.com/cgi/ecrm.dll/ec … ?oid=23931
32MByte (256 MBit) 16Mx16
http://www.infineon.com/cmc_upload/docu … _12_20.pdf
64MByte (512 MBit)   32Mx16
http://www.infineon.com/cmc_upload/docu … ev.1.3.pdf
Infioneon SDRAM 32Mx16
http://www.infineon.com/cgi/ecrm.dll/ec … _oid=29797
And Samsung 64Mx16 is comming soon:
http://www.samsung.com/Products/Semicon … _pre06.pdf

So there are pin compatible chips Flash for up to 64 Mbyte and RAM for 2 x 64 Mbyte = 128 MB (2x 128=256MB soon),
but:
-does the 143Mhz/133Mhz (9%) matter?
-what is the specification of the BCM47x2 will the core and the I/O work with 64 MB flash and 256 MB RAM?

When the BCM47x2 chips support more RAM, all Routers with this ships will be upgradable - the only question will be which one has the better I/O possibilities (USB 2.0).

What are the prices for these chips?
Other vendors like AMD, Infinion, Samsung, Intel.....?
Where to buy (Europe)?

IMHO will it be cheaper to desolder the RAM from normal RAM-modules than to order the RAM-chips itself. Its the same why the full Router is cheaper than the BCM47x2 itself. Any Ideas to get cheap flash memory? Is it possible to plug CompactFlash to this port?
Result: The cheapest way (to use normal consumer products/bulg goods/products from the mass market) will be to plug more flash only via USB (will be more flexible, too) and to find SDRAM modules with 32Mx16 or 64Mx16 chips and to desolder them from there.

Any Hardware-hackers here?

Greetings
rob

PS: This posting was written with 128 RAM, fluxbox on a Debian System, not everything what would be possible is a "must to have/do" BUT it would be nice to documentate what is the maximum to hack is be.

Yes, I'm one (well, kinda).

Have you tried: SHT11, it is a low-cost temperature and HR sensor.

I think you could give a shot to the AVR microcontrollers.  With those you could build a simple hardware (they can be programmed in C, search for avr-gcc) to use as a "port expansion", provided that you don't need to pass A LOT of data (say, if you can live with the max speed of a RS323 port).  In this case, you could use the USART from the AVR microcontroller and connect it to the "whatever" hardware you have, and the microcontroller "collects" the data from the other sources.

Due that those microcontrollers can be really fast (up to 16MIPS), you can even implement some kind of compression.

You can use the uC (microcontroller) as a LCD display manager also.

Salve Soulhunter,

yeah, the SHT11 is realy tiny - cool:
"A more precise sensor (with 2% instead of 5% humidity deviation) SHT17 you may order at Farnell (www.farnell.com) for about 20 Euro."
http://www-user.tu-chemnitz.de/~heha/vi … T?auto=TXT
IMHO is the SHT11 good enough.

And I agree that RS232 is for sensors, displays, switchs.... fast enough but for memory is USB 1.1 (or for hdds) USB 2.0, Audio I/O and BT much better. Very cool would be a router with RS232 _AND_ USB 2.0. (Hope that I will nobody confuse with my brainstorm in circles USB, Flash/RAM sensors, microcontrolers *g*)

To use AVR directly on USB are some solutions - some AVR support USB, but these seems to be rare and more expensive - haven't  find the price  of one AT43USB3xx (like AT43USB320A AT43USB355). But other AVR seems to be able to be progammed to run with USB see:
http://www.cesko.host.sk/IgorPlugUSB/IgorPlug-USB (AVR)_eng.htm
Will such a softwaresolution run with Linux, too?

PIC or AVR, for a newbie maybe a big question, for experianced people no question, they choose the system they better know.
I would desside the one which have the better tools for linux. For the AVR I fould a compiler and a libc:
http://www.nongnu.org/avr-libc/
Some tools:
http://cdk4avr.sourceforge.net/

But is there also an emulator (Linux, free, opensource) like for PIC?
http://www.picemulator.com/links.html
Or is microcontroler programming so easy that there is no need for an emulator/simulator? wink

Greetings,
rob

Well, I haven't needed one since I learned "exactly" how it behaves.  I used to use AVR Studio with wine (works "almost" fine): I compiled the project with avr-gcc (linux) with -g option, and then modified the resulting obj (I don't remember, something like avr-coff, it have been a long time).  For simulator: simulavr (it is in: http://cdk4avr.sourceforge.net/ too).

I like AVR over pic because:

+ For the same computing power/periphericals are cheaper.
+ Are faster.
+ Are easier to program (SPI interface, even with a PC's parallel port, if they are correctly configured).
+ You can do "In System Programming" very easilly (you don't have to remove the chip in order to reporgram it).

What I don't like about AVR is: They are very "sensitive" to noise, so my kind of protoboard mouting isn't an option, I have to do it right.

Anyway, as you said, it is a matter of what you know best, or what you can find (I have got AVRs from digikey and allamercican at rasonable prices).

The discussion might have continued from here.