Soft VoIP
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Soft VoIP

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Guest






Posted: Tue Dec 21, 2004 7:49 pm    Post subject: Soft VoIP Reply with quote

Hi,

Is it OK to implement VoIP protocol merely by an 8 bit MCU and an
ethernet chip? The MCU speed is less than 10MHz. Or I need stronger MCU
such as ARM?

Thanks!
Back to top
Guest






Posted: Tue Dec 21, 2004 7:53 pm    Post subject: Re: Soft VoIP Reply with quote

What sort of protocol do you intend to implement? The VoIP
implementations I have seen in desktop phones used (8051) cores with
custom DSP add-ons.
Back to top
Ulf Samuelsson
Guest





Posted: Tue Dec 21, 2004 8:52 pm    Post subject: Re: Soft VoIP Reply with quote

may, or may not be shared by my employer, Atmel Sweden.

<dereklai2k@yahoo.com.hk> skrev i meddelandet
news:1103640575.120138.260700@c13g2000cwb.googlegroups.com...
Quote:
Hi,

Is it OK to implement VoIP protocol merely by an 8 bit MCU and an
ethernet chip? The MCU speed is less than 10MHz. Or I need stronger MCU
such as ARM?

Thanks!


The DSP is used mainly for compression and echo cancellation.
You do not need the compression, if you can accept the problem with higher
bandwidth,
but you may have a problem with the echo so your sound could be terrible
if you are not on the same physical network.
If your network is heavily loaded, then you will have the same problem.
Think you need a DSP and an ARM for proper quality unless
you go with a real high end ARM.

--
Best Regards
Ulf at atmel dot com
These comments are intended to be my own opinion and they
Back to top
Richard H.
Guest





Posted: Tue Dec 21, 2004 10:38 pm    Post subject: Re: Soft VoIP Reply with quote

larwe@larwe.com wrote:
Quote:

What sort of protocol do you intend to implement? The VoIP
implementations I have seen in desktop phones used (8051) cores with
custom DSP add-ons.

Yep. IIRC, the Cisco phones use a 386sx (or used to) - even back before
they had the fancy display. Probably using something even beefier now.

It'd depend a lot on the CODEC. G.711 might be possible with a straight
MCU + A/D, since it doesn't involve compression. At 8bits x
8Ksamples/sec, it seems possible on the surface. It'd be an interesting
attempt.
Back to top
Guest






Posted: Wed Dec 22, 2004 5:01 am    Post subject: Re: Soft VoIP Reply with quote

But a 386sx is a 32 bits MCU!
Back to top
Guest






Posted: Wed Dec 22, 2004 5:53 am    Post subject: Re: Soft VoIP Reply with quote

Well, it's better classified as a 16-bit CPU, since (a) it's not an
MCU, (b) it's slower, clock-for-clock than its pure-16bit parent the
80286, and (c) it has 16-bit external buses.

But the point in this specific topic is that a bare 8-bit core is
probably not sufficient for a credible VoIP implementation. You need
either a meatier core or external DSP assistance.
Back to top
RusH
Guest





Posted: Wed Dec 22, 2004 6:43 am    Post subject: Re: Soft VoIP Reply with quote

"Richard H." <rh86@no.spam> wrote :


Quote:
It's possible that a basic G.711 VoIP phone could be within the
grasp of an 8-bitter running 8-16MHz. But by limiting it to G.711
CODEC, it would only be useful in a LAN environment, not across
the Internet (G.711 is a ~64Kbps stream).

It would still be great to build it in sub $10-20 range and use with
Asterisk backend. Hmm sounds like a profitable project. Any takers ?

Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r=352019
Like ninjas, true hackers are shrouded in secrecy and mystery.
You may never know -- UNTIL IT'S TOO LATE.
Back to top
Richard H.
Guest





Posted: Wed Dec 22, 2004 7:22 am    Post subject: Re: Soft VoIP Reply with quote

dereklai2k@yahoo.com.hk wrote:
Quote:
But a 386sx is a 32 bits MCU!

Ditto what Lewin said.

My point was that even back before the displays and on-phone apps, they
were using a beefy CPU. But, they also supported G.729 compressed
CODECs then, which I expect is no lightweight job.

Look under the hood at the H.323 protocols, and evaluate:
* What kind of tasks need to be done every X milliseconds
* Roughly, how many cycles you'd need to do each one
* How much latitude is there in the timing (e.g., jitter)
* How many cycles will it take to encode and decode the audio streams?

For example, 8000x/second you need to read and encode a sample, and
presumably decode and playback another. 50-100x/second you need to send
and receive UDP Ethernet packets. Good news is that UDP transport has
little overhead once you've built the data payload.

Things would get more complex as you add more features like silence
suppression, jitter buffering, error recovery, call initiation, etc. I
think the real question is the effort involved in encoding the
8Ksamples/sec into G.711 packets.

It's possible that a basic G.711 VoIP phone could be within the grasp of
an 8-bitter running 8-16MHz. But by limiting it to G.711 CODEC, it
would only be useful in a LAN environment, not across the Internet
(G.711 is a ~64Kbps stream).

Cheers,
Richard
Back to top
RusH
Guest





Posted: Wed Dec 22, 2004 9:40 am    Post subject: Re: Soft VoIP Reply with quote

"Rene" <spam@see5.ch> wrote :

Quote:
"RusH" <logistyka1@pf.pl> schrieb im Newsbeitrag

It would still be great to build it in sub $10-20 range and use
with Asterisk backend. Hmm sounds like a profitable project. Any
takers ?

8 Bit CPU maybe yes, but not with the usual 64k RAM

even less

Quote:
You do need
an IP stack

4KB

Quote:
(propably even with TCP)

+2KB, but its luxury we dont need

Quote:
and one of signalling
protocols (SIP, H.323)

asterisk will take care of that

Quote:
. I can assure you, this requires a
significant amount of code and data memory.

thats why asterisk box would do that work

Quote:
Even if only doing G.711 you might need to do DTMF and/or tone
generation for your phone (not even thinking of stuff like echo
cancellation, comfort noise generation, local echo, ...)

all that done on asterisk box :)

Quote:
Why not pick one of the existing VoIP solutions.

pice ? >$60

Quote:
I.e. TI has some
stuff well suited for IP phones (Telogy). It's a bit overkill for
your application but it comes with a MIPS R4000, TI DSP, Operating
System and all required software. Just attach a
speaker/headphone/keyboard and you're done. Pricing depends on
volume, maybe 20..30US$.

with >10k volumes i presume :)

Quote:
- Rene (developing VoIP gateways/routers for the last 4 years)

And it shows, you are thinking one big fat box doing all the work.
I'm thinking bunch of small rj45/rj11 dongles + one asterisk box
doing backend. Those dongles would be /dev/dsp extenders. Even G.711
is not needed that badly.
You see fancy display + Wifi + VPN while I see "lets scrap that rj11
circuit and build it inside the phone enclosure".

Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r=352019
Like ninjas, true hackers are shrouded in secrecy and mystery.
You may never know -- UNTIL IT'S TOO LATE.
Back to top
Rene
Guest





Posted: Wed Dec 22, 2004 1:42 pm    Post subject: Re: Soft VoIP Reply with quote

"RusH" <logistyka1@pf.pl> schrieb im Newsbeitrag
news:Xns95C74E8AFD208RusHcomputersystems@193.110.122.97...
Quote:
"Richard H." <rh86@no.spam> wrote :


It's possible that a basic G.711 VoIP phone could be within the
grasp of an 8-bitter running 8-16MHz. But by limiting it to G.711
CODEC, it would only be useful in a LAN environment, not across
the Internet (G.711 is a ~64Kbps stream).

It would still be great to build it in sub $10-20 range and use with
Asterisk backend. Hmm sounds like a profitable project. Any takers ?

8 Bit CPU maybe yes, but not with the usual 64k RAM. You do need
an IP stack (propably even with TCP) and one of signalling protocols
(SIP, H.323). I can assure you, this requires a significant amount of
code and data memory.
Even if only doing G.711 you might need to do DTMF and/or tone
generation for your phone (not even thinking of stuff like echo
cancellation, comfort noise generation, local echo, ...)

Why not pick one of the existing VoIP solutions. I.e. TI has some stuff
well suited for IP phones (Telogy). It's a bit overkill for your application
but it comes with a MIPS R4000, TI DSP, Operating System and all
required software. Just attach a speaker/headphone/keyboard and
you're done. Pricing depends on volume, maybe 20..30US$.

Yours
- Rene (developing VoIP gateways/routers for the last 4 years)

PS. I am not with TI.
Back to top
RusH
Guest





Posted: Wed Dec 22, 2004 1:52 pm    Post subject: Re: Soft VoIP Reply with quote

"Rene" <spam@see5.ch> wrote :

Quote:
You did not specify technical details before. If you want Asteriks
to do all signalling

exactly, no need for 32bit mips in every room of the building

Quote:
you could hook up an ordinary phone to the
Asteriks PC (buy a compatible FXS card for the PC).

Those cards are ~$50-100. Plus ethernet cables are everywhere, no
need to drill the walls again.

Quote:
But I guess this is not what you had in mind. You're are more
thinking of a "dump" phone, that does minimal signalling and data
processing, connected to an Ethernet

exactly. Its beyond me that nobody has think of it before.

Quote:
I think something like this
can be done with an 8 bit micro and some clever programming
(similar to an ISDN telephone).

MCU $2-4
DAC $1-3
ethernet $2-3 (RTL8019)
enclosure,sockets,pcb,trafo,powersupply - $10 ?

Quote:
If you're done let us know how much resources you used in the end.

It sounds more and more interesting every minute i think about it.
I'l try to convince few friend into this.

Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r=352019
Like ninjas, true hackers are shrouded in secrecy and mystery.
You may never know -- UNTIL IT'S TOO LATE.
Back to top
Rene
Guest





Posted: Wed Dec 22, 2004 6:36 pm    Post subject: Re: Soft VoIP Reply with quote

----- Original Message -----
From: "RusH" <logistyka1@pf.pl>
Newsgroups: comp.arch.embedded
Sent: Wednesday, December 22, 2004 10:40 AM
Subject: Re: Soft VoIP


[Cut]

Quote:
And it shows, you are thinking one big fat box doing all the work.
I'm thinking bunch of small rj45/rj11 dongles + one asterisk box
doing backend. Those dongles would be /dev/dsp extenders. Even G.711
is not needed that badly.
You see fancy display + Wifi + VPN while I see "lets scrap that rj11
circuit and build it inside the phone enclosure".

You did not specify technical details before. If you want Asteriks to do
all signalling you could hook up an ordinary phone to the Asteriks
PC (buy a compatible FXS card for the PC).

But I guess this is not what you had in mind. You're are more thinking
of a "dump" phone, that does minimal signalling and data processing,
connected to an Ethernet. I think something like this can be done
with an 8 bit micro and some clever programming (similar to an
ISDN telephone).

If you're done let us know how much resources you used in the end.

- Rene
Back to top
Guest






Posted: Fri Dec 24, 2004 2:13 am    Post subject: Re: Soft VoIP Reply with quote

Ulf Samuelsson <ulf@nospamatmel.com> wrote:
Quote:
may, or may not be shared by my employer, Atmel Sweden.

FYI I've done this for a consulting gig, ATMEGA64, SILabs SLIC and a
realtek eth controller.

2:1,3:1 and 4:1 compression and decompression on the fly.

mike
Back to top
Jürgen Veith
Guest





Posted: Fri Dec 24, 2004 8:06 pm    Post subject: Re: Soft VoIP Reply with quote

Grandstream uses a Texas Instruments Fix point DSP
and snom formerly a PowerPC but the snom 190 changed to Infineons Tricore
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB