Thread: HELP: which lang to learn for embedded device?

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    7

    HELP: which lang to learn for embedded device?

    Dear all,


    I want to port a perl script(written by me) to C or C++ for embedded device like ADSL router, IP Camera...etc. What the script does is login a server and update the IP address of a DNS record. I do not know C or C++, so which one should I learn to do the job? Is C more popular for embedded device?

    The perl scipt can be downloaded here:
    3update v0.8

    And a commnication example:
    2006-03-18 16:55:24] *** 3update 0.8 Started ***
    [2006-03-18 16:55:24]
    [2006-03-18 16:55:24] Connecting to myip server...
    [2006-03-18 16:55:24] myip_server --> 61.15.77.54

    [2006-03-18 16:55:24] Connecting to the 3domain Update Server...
    [2006-03-18 16:55:24] update_server --> miniDNS.net Update Server 0.8.1 (Build 25)
    [2006-03-18 16:55:24] update_server <-- agent 3update/0.8
    [2006-03-18 16:55:24] update_server --> OK Agent accepted
    [2006-03-18 16:55:24] update_server <-- version
    [2006-03-18 16:55:24] update_server --> OK 0.8.1
    [2006-03-18 16:55:24] update_server <-- login user1 digest-md5
    [2006-03-18 16:55:24] update_server --> CHALLENGE 138120fa8e935fc2aa0590465da036ce
    [2006-03-18 16:55:24] update_server <-- response 8943ef751bc833ed764cbef6e45e134a
    [2006-03-18 16:55:24] update_server --> OK Authenticated
    [2006-03-18 16:55:24] update_server <-- a_update online homepc.3open.org 61.15.77.54
    [2006-03-18 16:55:24] update_server --> OK HOMEPC.3OPEN.ORG mapped to 61.15.77.54
    [2006-03-18 16:55:24] homepc.3open.org mapped to 61.15.77.54
    [2006-03-18 16:55:24] update_server <-- exit
    [2006-03-18 16:55:24] update_server --> OK Bye!
    [2006-03-18 16:55:24] Disconnected from the 3domain Update Server.


    Thanks in advance,
    Michael Fung

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by hkuser2001
    Is C more popular for embedded device?
    Yes. C can produce smaller, faster code since it dosen't have the same overheads as c++ and space/CPU speed is offen at a premium on an an embedded device.

    Also many people find c easier to learn first.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  2. connecting to a serial device?
    By caefer in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-12-2004, 01:29 AM
  3. Disabling a device
    By Thantos in forum Windows Programming
    Replies: 1
    Last Post: 09-18-2003, 01:54 PM
  4. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 12:02 PM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 01:06 PM