pjsip blog

Tracking development of pjsip, the Open Source SIP, media, and NAT traversal stack/SDK/library for Android, iOS, Windows, Linux, MacOS, RTOS, embedded, and pretty much anything, any device.

Also check PJSIP Documentation site.

, , , , , ,

Porting pjsip to embedded Linux on Blackfin DSP

Over the next few posts, I will do a walkthrough on porting pjsip to embedded Linux (specifically uClinux) on the Blackfin Digital Signal Processing (DSP) processors from Analog Devices. Along the way, I hope to give a few insight into programming embedded systems in general.

Blackfin (r) Logo

Why Blackfin Processors?

  • Popular. It can run uClinux as an embedded operating system.
    • uClinux ™ Logo
    • There is already the Linphone Blackfin port, so I know SIP and media works.
    • Recently Global IP Solutions (GIPS) has ported and optimized its VoiceEngine Embedded software to Blackfin processors as well.
  • Well documented. The Blackfin on uClinux site has tons of free software and documentation. Most importantly GCC toolchain (compiler, linkers, debuggers) is available and supported.
  • Somewhat exotic. Although probably not as exotic as pure DSP processors such as the TMS320 series from Texas Instruments, but still it is an embedded systems processor. In contrast processors based on x86 are more like small PCs, therefore expensive in terms of cost and power usage.
  • Affordable development board readily available. Relatively speaking, of course.
    • I was able to buy the BF537 STAMP and audio card for a total of £276 from Digi-Key, that includes shipping (to UK), customs, and taxes. I will detail what you need exactly in another post.
    • Here’s a tip if ordering from the UK: Don’t choose the Global Express Mail option. Although it saves about £20, it takes way too long (almost 2 weeks) and the ParcelForce handling here, well… can be improved.

Initial Approach

For this exercise, I have chosen Windows as my development machine. Although using Linux is more straight forward, I am using this porting effort as an excuse to try out new stuff like coLinux. Other than that , I will try to stick as much as possible to the suggested tools.

What next?

I will describe in more detail about getting the goods and preparing your development PC. After that we should be well on our way to start development.

If you have any thoughts on how this should be structured, or any other additional information you’d like to see covered, just leave a comment and I can try to fit it in.

9 responses to “Porting pjsip to embedded Linux on Blackfin DSP”

  1. How to start embedded SIP development on Blackfin uClinux « pjsip blog Avatar

    […] About « Porting pjsip to embedded Linux on Blackfin DSP […]

  2. Easy Setup of the Blackfin BF537-STAMP Development Board « pjsip blog Avatar

    […] post builds on previous posts on porting pjsip to Blackfin and assembling components for embedded systems […]

  3. jafon Avatar

    Hi,
    During those days , I’v got in touble with running PJSIP on BF533 EZKIT.
    Pjlib-test almost meet its end , but unfortunately , when it run into ioqueue_perf_test() , something terrible happen. The errors vary from time to time , so I can not find out what’s worry with it . But what I really know is this problem must have some relationship with the thread “worker_thread” ,for without it or just using worker_thread as a function , everything is OK.

  4. jafon Avatar

    Hi,
    During those days , I’v got in touble with running PJSIP on BF533 EZKIT(uClinux).
    Pjlib-test almost meet its end , but unfortunately , when it run into ioqueue_perf_test() , something terrible happen. The errors vary from time to time , so I can not find out what’s worry with it . But what I really know is this problem must have some relationship with the thread “worker_thread” ,for without it or just using worker_thread as a function , everything is OK.
    I really need help from you , is there anything need to be ported ? what should I do ?

    best regards

    jafon

  5. ismangil Avatar

    Hi jafon,

    You’re right, we are still having problems with the uCLinux on Blackfin port.

    All I can say is at the moment we are looking into it, but there is no scheduled finish date for the port.

    Sorry!

  6. Tensk8 Avatar

    Hi,

    I need to use PJSIP in an embedded board from ARM (an TS-7250). Someone try it.

  7. mark Avatar

    Hi,
    What is the current status? I would love to try it on our Blackfin based devices.
    Cheers,
    Mark

  8. savitri Avatar
    savitri

    hi
    Iam trying to port PJSIP to altera nios2 running microCOs2. Anyone having prior experience to this?

  9. Perry Ismangil Avatar

    @savitri:

    There was a few mention in the mailing list, for example: https://blog.pjsip.org/2007/11/21/rtp-under-clinux-on-nios2/

Navigation

About

Here is where we talk about pjsip development in general, and maybe other stuff as well. For the project itself, please go to the main pjsip project website. or pjsip documentation.

PJSIP is backed by Teluu, which provides professional support, additional licensing options, and a network of qualified consultants.