ts-7000
[Top] [All Lists]

Re: [ts-7000] com 3 in 7800

To:
Subject: Re: [ts-7000] com 3 in 7800
From: vigu <>
Date: Wed, 13 Aug 2008 14:10:50 -0300
Yeah I'm running on the debian these are the files have in it

MAKEDEV@  mem        ptyp1   shm/      tty22  tty41  tty60  ttyp6
bus/      mtd0       ptyp2   sndstat@  tty23  tty42  tty61  ttyp7
console   mtd0ro     ptyp3   stderr@   tty24  tty43  tty62  ttyp8
core@     mtd1       ptyp4   stdin@    tty25  tty44  tty63  ttyp9
disk/     mtd1ro     ptyp5   stdout@   tty26  tty45  tty7   ttypa
fd@       mtd2       ptyp6   tty       tty27  tty46  tty8   ttypb
full      mtd2ro     ptyp7   tty0      tty28  tty47  tty9   ttypc
initctl|  mtd3       ptyp8   tty1      tty29  tty48  ttyS0  ttypd
input/    mtd3ro     ptyp9   tty10     tty3   tty49  ttyS1  ttype
kmem      mtdblock0  ptypa   tty11     tty30  tty5   ttyS2  ttypf
kmsg      mtdblock1  ptypb   tty12     tty31  tty50  ttyS3  urandom
log=      mtdblock2  ptypc   tty13     tty32  tty51  ttyS4  usbdev1.1_ep00
loop/     mtdblock3  ptypd   tty14     tty33  tty52  ttyS5  usbdev1.1_ep81
loop0     net/       ptype   tty15     tty34  tty53  ttyS6  usbdev2.1_ep00
loop1     null       ptypf   tty16     tty35  tty54  ttyS7  usbdev2.1_ep81
loop2     port       ram0    tty17     tty36  tty55  ttyp0  vcs
loop3     ppp        ram1    tty18     tty37  tty56  ttyp1  vcs1
loop4     psaux      ram2    tty19     tty38  tty57  ttyp2  vcsa
loop5     ptmx       ram3    tty2      tty39  tty58  ttyp3  vcsa1
loop6     pts/       random  tty20     tty4   tty59  ttyp4  xconsole|
loop7     ptyp0      rtc     tty21     tty40  tty6   ttyp5  zero


On Wed, Aug 13, 2008 at 2:07 PM, Eric Robishaw <> wrote:
> hmmm....
> you should have 10 tttsN from ttts0 to ttts9
>
> Are you running the full debian?
> (i.e., after booting, you "exit" to the full startup)
>
> Eric
>
>
>
>
> On Wed, Aug 13, 2008 at 11:59 AM, vigu <> wrote:
>>
>> I don't have the ttts4 or ttts5 files in the /dev folder.
>>
>> On Wed, Aug 13, 2008 at 1:56 PM, vigu <> wrote:
>> > how to set the pins to be 7 or 8 instead of 3/2
>> >
>> > On Wed, Aug 13, 2008 at 1:48 PM, Eric Robishaw <> wrote:
>> >> You might want to look at the microterm.c example in the files section
>> >> of
>> >> this yahoo group:
>> >> http://tech.groups.yahoo.com/group/ts-7000/files/
>> >> look for "microterm.c"
>> >>
>> >> Eric
>> >>
>> >>
>> >> On Wed, Aug 13, 2008 at 11:40 AM, vigu <> wrote:
>> >>>
>> >>> thanks a lot .. but when i read data it returned me -1. is there
>> >>> something wrong in what i'm doing. i'm sorry am very new to serial
>> >>> programming. here is the code
>> >>>
>> >>> #include <stdio.h>
>> >>> #include <unistd.h>
>> >>> #include <fcntl.h>
>> >>> #include <errno.h>
>> >>> #include <termios.h>
>> >>>
>> >>> int initComm() {
>> >>>
>> >>> int fd;
>> >>> struct termios options;
>> >>>
>> >>> // Open the RS232 port
>> >>> fd = open("/dev/ttts4", O_RDWR | O_NOCTTY );
>> >>> if(fd == -1) {
>> >>> #ifdef DEBUG
>> >>> printf("Could not open the comm port.\r\n");
>> >>> #endif
>> >>> return fd;
>> >>> }
>> >>>
>> >>> // Clear the flags
>> >>> fcntl(fd, F_SETFL, 0);
>> >>>
>> >>> // Get the port options
>> >>> tcgetattr(fd, &options);
>> >>> // Set the speed
>> >>> cfsetispeed(&options, B9600);
>> >>> cfsetospeed(&options, B9600);
>> >>>
>> >>> // Set the comm flags (115200 8N1)
>> >>> options.c_cflag = B9600 | CS8 | CLOCAL | CREAD;
>> >>> options.c_iflag = 0;
>> >>> options.c_oflag = 0;
>> >>> options.c_lflag = 0;
>> >>>
>> >>> // Set the timeout to be 1000ms
>> >>> options.c_cc[VMIN] = 0;
>> >>> options.c_cc[VTIME] = 10;
>> >>>
>> >>> // Save these settings
>> >>> tcsetattr(fd, TCSANOW, &options);
>> >>>
>> >>> // Flush the settings
>> >>> tcflush(fd, TCIFLUSH);
>> >>> tcflush(fd, TCOFLUSH);
>> >>>
>> >>> return fd;
>> >>>
>> >>> }
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > With regards,
>> > Vignesh Badrinarayanan
>> >
>>
>> --
>> With regards,
>> Vignesh Badrinarayanan
>
> 



-- 
With regards,
Vignesh Badrinarayanan

------------------------------------

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