Results 1 to 7 of 7

Thread: Hello Not sure where to post.

  1. #1
    Join Date
    Dec 2011
    Beans
    3

    Hello Not sure where to post.

    I just installed Ubuntu on an old 2003 dell desktop XPS. It seems like a very nice OS and I like the UI desktop. I have a question about to the possibility of something.

    My experience:

    First, I'm an electrical engineer just graduated and I have experience programming Java, C and C++ and alittle verilog. Most of my C programming experience comes for programming on smaller machines like micro-controllers and FPGAs and DSP. I'm very good at programming java but my expereince is mostly limited to the fundamental programming concepts of OOP as I have never actually written an application outside of the command prompt (Eclipse). However, I have written a lot in Java and am more than beginner.

    I've built,tested and designed a lot of circuitry before and understand how wireless communication systems work.

    So my question:

    I want to be able to talk to my desktop using a UART chip. I wanted to know how I can write applications on Ubuntu OS that can act as standalone GUI interfaces and interface via I/O ports on my desktop like the USB, Speakers ect. Is there some IDE (For Ubuntu) I need to download that contains the libraries to interface with these I/O ports like USB? So lets say I want to write a program on my Ubuntu desktop that contains just a text box and a graphical button. The function of the program is:

    1. Enter a number in the text box.
    2. Press the button --> Transmit number over USB to UART.
    3. Then the number say 5 ->101 would turn on say some LEDs. Say LED 1,2,3. 1 ->ON, 2->OFF, 3->ON corresponding to the high bits for the number "5".

    Thank you

    I really just want to learn how to program on a powerful desktop machine and communicate data over USB.

    John Budd

  2. #2
    Join Date
    Aug 2008
    Location
    Jawja
    Beans
    2,486
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Hello Not sure where to post.

    You probably would want to post in Programming Talk. Be a little more descriptive with the post title. I do not program so I cannot answer your other concerns. Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming
    Last edited by 73ckn797; December 24th, 2011 at 07:52 PM.

  3. #3
    anewguy is offline I Ubuntu, Therefore, I Am
    Join Date
    Jun 2007
    Location
    Sometimes I visit earth
    Beans
    5,435
    Distro
    Ubuntu 12.04 Precise Pangolin

    Wink Re: Hello Not sure where to post.

    You need the libusb development library and documentation. It contains such things as low-level calls to USB device endpoints, etc.. I believe it is still called libusb-dev, but I haven't checked in a while.

    Dave

  4. #4
    Join Date
    Jul 2009
    Beans
    516
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Hello Not sure where to post.

    Run synaptic and type in libusb in the search box, it'll list a number of packages. There may be something more suited to what you want to do already available?

    The packages that contain the C header files end in *-dev.

    You may want to look at another language such as Python which is interpreted so it doesn't need to be compiled etc.. It should be quite easy for you to pick up if you're familiar with C and Java.

    There's also VHDL / Xilinx software if that's what you're working on... Just type it into the search box in Synaptic.
    Mark your thread as [SOLVED], use Thread Tools on forum page.

  5. #5
    Join Date
    Jan 2007
    Beans
    6,537
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Hello Not sure where to post.

    You can also get good help at askubuntu.com for this type of thing. It's excellent if you've got specific questions about progamming or very techy subjects.

  6. #6
    Join Date
    Dec 2011
    Beans
    3

    Re: Hello Not sure where to post.

    Thanks guys

  7. #7
    anewguy is offline I Ubuntu, Therefore, I Am
    Join Date
    Jun 2007
    Location
    Sometimes I visit earth
    Beans
    5,435
    Distro
    Ubuntu 12.04 Precise Pangolin

    Wink Re: Hello Not sure where to post.

    All of the things in the libusb development lib are not difficult to use, especially for someone with the programming background and the engineering background you have. You already understand endpoints and how to use them.

    It's been about 2 years since I last fiddled with them. I may have a sample yet somewhere and if I do I'll PM it to you.

    Dave
    Last edited by anewguy; December 29th, 2011 at 09:04 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •