ts-7000
[Top] [All Lists]

Re: [ts-7000] TS-Linux tutorials or books??

To:
Subject: Re: [ts-7000] TS-Linux tutorials or books??
From: David Hawkins <>
Date: Sat, 23 Feb 2008 12:52:15 -0800
Hi,

> I will be very grateful if someone can direct me to
> tutorials or books that can help me with developing C
> applications under TS-Linux that can peform the following
> functions:
>  
> - communicate with an external microcontroller using SPI interface.
> - communicate with an external microcontroller using UART interface.
> - Send and receive data packets over a wireless LAN network (using the 
> Wifi card provided by Technologic Systems)
>  
> I have read the Linux for ARM on TS-72XX User's Guide, but is contains 
> very little info. concerning these issues.

I doubt you'll find any books that cover your specific
requirements - you'll find lots of books that cover bits
and pieces. So, you're better off just writing code, and
then asking specific questions when you get stumped.

For example. Start with the easy stuff first.

1. Serial communications.

    (a) Get it 'working' under Windows or Linux,
        eg. have two hyperterminal sessions talk to each other
        or two minicom sessions, or a minicom to hyperterminal.

        You can use one machine with two serial ports for
        some of the testing (or two USB-to-serial converters).

        The Sabrent USB-serial converters on TigerDirect are $13

http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=1086963&CatId=447

        and they use the Prolific PL2303 chipset which works
        well under Linux 2.6 (and probably earlier) and windows.

    (b) Then write some C code to perform the communications
        under Windows and Linux.

    (c) Then write some C code for your microcontroller. It'll be
        at a slightly lower-level.

        For an example of how this works on an ARM microcontroller see:
        http://www.ovro.caltech.edu/~dwh/ucos/

2. SPI

    (a) Use the micro's serial port to create a read-memory/write-memory
        control interface. Use that to manually send SPI data.
        Use that to figure out how to configure and use the
        SPI interface. A scope or logic analyzer would be handy
        for you to see the waveforms.

    (b) Code up C versions of the manual operations.

3. Sending WiFi packets.

    Its network programming. Your code does not know about the
    interface. Write some network code under Linux, and then
    it'll work on the TS.

    Good books are:

    Unix Network Programming, Volumes 1 and 2, R. W. Stevens.
    Unix Systems Programming, Robbins and Robbins.
    Beginning Linux Programming, Stones and Matthews, Wrox Press.

    There's plenty more. You don't even need a book. Just google
    for simple client, or simple server, and you'll probably find
    a lot of code.

Regards,
Dave






 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU