On Fri, 12 Nov 2010, ricardogabriel5 wrote:
>
> I have removed the jumper 2, but the serial port does not work at the
> speed of 38400 bps.
>
> The serial port as console works fine.
> But it's not what I need.
>
> I need the serial port can communicate with a board with PIC
> (PANADBOARD), not a PC.
As I said we use the port to talk to a GPS device, but at 9600 baud.
I forget, how are you setting the baud rate? I do it programmatically
and do not rely on setserial or similar.
In fact I've just hacked the program I use to set the baud rate to 38400
on ttyAM0 on my TS7260 and it works. I suggest you try writing a program to
set the baud rate and cummunicate with the pic - you'll probably need to do
that anyway. There are loads of tty programming examples. The program I
wrote compiles and runs on my Linux PC using ttyS0, there is nothing
specific to the TS7260. I use tc[sg]etattr, cfmakeraw, cf[sg]etispeed,
cf[gs]etospeed all are described in "man termios".
Happy coding.
Jim
>
> Ricardo Gabriel
>
>
> --- In Jim Jackson <> wrote:
> >
> >
> >
> >
> > On Thu, 11 Nov 2010, ricardogabriel5 wrote:
> >
> > > I have a TS-7260 running with TS-Linux Busy Box.
> > >
> > > The command "setserial -G /dev/ttyAM0" shows me:
> > >
> > > /dev/ttyAM0 uart undefined port 0x0000 irq 52 baud_base 921600 spd_normal
> > >
> > > I need to connect the TS-7260 board through the serial port (ttyAM0) with
> > > another board that contains a PIC microcontroller, at the speed of 38400
> > > bps.
> > >
> > > The board with PIC is this:
> > >
> > > http://www.seismicnet.com/serialatod.html
> > >
> > > The program that runs in the TS-7260 board "configure" the serial port at
> > > the speed of 38400 bps, but if I execute at the same time the setserial
> > > command, it doesn't show me this speed, and it shows me:
> > >
> > > /dev/ttyAM0 uart undefined port 0x0000 irq 52 baud_base 921600 spd_normal
> > >
> > > I modified the inittab file, as follows:
> > >
> > > # Start console logins on both COM Ports
> > > #
> > > #lgn0:12345:respawn:/sbin/getty -L 115200 ttyAM0
> > > lgn1:12345:respawn:/sbin/getty -L 38400 ttyAM1
> > > #lgn2:12345:respawn:/sbin/getty -L 115200 ttyAM2
> > > #
> >
> > Did you reboot the board after making this change to inittab, or
> > alternatively use
> >
> > kill -1 1
> >
> > to make init reread the inittab.
> > Also you may need to remove the jumper that enables console,
> > is it JP2 ?
> >
> > You can definitely using the serial port, we do this to connect
> > a GPS unit.
> >
> > >
> > > Am I doing something wrong?
> > >
> > > Ricardo Gabriel
> > >
> > >
> >
>
>
>
------------------------------------
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/
|