N Bit Wonder

Tag: TCP/IP

VoIP32 Progress

by Ben on Jul.16, 2010, under Projects, VoIP Server

Over the last couple of weeks, I’ve spent some time working on the TCP/IP stack used by VoIP32 to handle all its network connections.  It only recently gained the ability to properly manage a relatively large number of concurrent connections, limited by available RAM.  The firmware is currently set to allow 10 simultaneous connections.  The PIC32MX340F512H has 32kB of RAM, which should be enough to support some 25 simultaneous clients.  The ~380kBps of available bandwidth is shared among all connections.

The total available bandwidth is a bit lower than expected, but is still nearly 60% higher than the available bandwidth on VoIP8.  As I write this, I am downloading a file from VoIP32 at a sustained rate of 375kB/s.  When compared with large commercial Web servers, this isn’t impressive at all; however, we must keep in mind that this server is running on an 80MHz processor with limited RAM instead of a quad-core Intel chip with gigabytes of memory.

Other tweaks added recently (but not yet fully debugged) are case corrections in filenames to support non-standard Microsoft extensions (this mostly works) and automatic TCP packet retransmission (this still needs some work).

The next steps planned are to start working on a Telnet UI for administrative purposes, a pushbutton-and-LCD-based local UI, and possibly integration with services like Pandora and Twitter.

Other things that I would eventually like to add include a bootloader for remote programming, a Unix-like Telnet or SSH interface, and the ability to execute small programs from the SD card.

Leave a Comment :, , , , , more...

32-bit VoIP Update

by Ben on Feb.16, 2010, under Projects, VoIP Server

I’ve spent a few hours (okay, okay, more like 20 hours) over the last two weeks working on implementing SD card support in MIPS assembler.  As of approximately 15 minutes ago, the code successfully implements some subset of the SD SPI protocol as well as FAT32.

(continue reading…)

Leave a Comment :, , , , , , more...

VoIP Server Upgraded

by Ben on Dec.22, 2009, under Projects, VoIP Server

Perhaps you’ve read the original VoIP Server project article.  If you did, you probably noticed that while it works, it’s woefully lacking in processing power.  Ben noticed this, too, and set out to work on an upgrade.

The upgraded server has a 32-bit microcontroller, 10/100 Ethernet, a dedicated DSP for decoding compressed media, USB, and a switching power supply on-board.

The board does not exist yet, but here’s an Eagle3D rendering:

Updated VoIP Board

Leave a Comment :, , , , , , more...

VoIP Server

by Ben on Dec.22, 2009, under Projects, VoIP Server

This project was featured on the Make Blog in October 2009.

I’ve always wanted to embed an Ethernet port onto something. This, I claim, is an Electrical Engineer’s trait. I also just like networks.

This project is, without a doubt, the most ambitious I have attempted to date. The finished product (or almost-finished product, as the case may be) has several significant subsections. Aside from the hopefully-obvious TCP/IP component and core processing circuit, there’s a file retrieval subsystem, an audio subsystem, and a user interface of sorts. We’ll explore these in (roughly) order of increasing complexity.

(continue reading…)

1 Comment :, , , , , more...

Google thinks you would like ...