Ok,
I'm getting much further along here. I have my serial to ethernet
code working. I will post this shortly. It's real ugly right now.
Dave
On 12-Jan-06, at 3:25 PM, Eddie Dawydiuk wrote:
> Hello,
>
>> It sort of works if you set the port correctly using setserial
>>
>> after reset
>>
>> setserial /dev/ttyAM1 shows
>>
>> /dev/ttyAM1, UART: undefined, Port: 0x0000, IRQ: 54
>>
>> after you set it, you see the following, (yes I know this is showing
>> ttyAM0, I only set AM0, not AM1)
>> /dev/ttyAM0, UART: undefined, Port: 0x808c0000, IRQ: 52, Flags:
>> spd_vhi
>>
>> if you set the port correctly then it allows you to input data using
>> echo, however cat will terminate before you get a chance to do
>> anything
>
> I was unable to reproduce these problems.
>
> Note: I didn't reconfigure ttyAM1 with setserial, I left the default
> settings.
>
> In order to use the echo command to write to COM2 I commented out the
> following line int /etc/inittab.
>
> lgn1:12345:respawn:/sbin/getty -L 115200 ttyAM1
>
> I then rebooted to let the changes take effect. Next I telneted into
> the TS-7xxx, connected a null modem cable to COM2 of the TS-7xxx and
> my PC running a terminal emulator. Next I set the baud rate of my
> terminal emulator to 9600 baud, 8N1, No Flow Control. I then ran
> the following command.
>
> $ echo "1234567890987654321" > /dev/ttyAM1
>
> I immediately see the string "1234567890987654321" appear in my
> terminal
> emulator. This verifies that I can use the echo command to write to
> the
> serial port.
>
> I'm not able to reproduce the issue of cat returning, when I run cat
> /dev/ttyAM1 it doesn't return until I end the process. Try repeating
> the steps above with out running the setserial command. Let me know
> if you still see any problems...
>
> //Eddie
>
>>
>>
>> On 11-Jan-06, at 10:45 AM, Curtis Monroe wrote:
>>
>>> do you have the proper file permissions for /dev/ttyS0 ?
>>> Can you do it as root?
>>>
>>>
>>> -Curtis.
>>>
>>>
>>> On January 11, 2006 08:42 am, Dave Cramer wrote:
>>>> Ok, I'm starting to see the problems with this.
>>>>
>>>> on a normal linux you can do
>>>>
>>>>
>>>> echo foo > /dev/ttyS0
>>>>
>>>> and that will write to the serial port
>>>>
>>>> you can also do
>>>>
>>>> cat < /dev/ttyS0
>>>>
>>>> and it will sit there and wait for input from the serial port and
>>>> display it
>>>>
>>>>
>>>> on the 7250
>>>>
>>>> neither of the above work
>>>>
>>>> Dave
>>>> On 2-Jan-06, at 9:39 AM, m g wrote:
>>>>
>>>>> On Sun, Jan 01, 2006 at 03:48:40PM -0500, Dave Cramer wrote:
>>>>>> Where do you see that ttyAM1 does not have flow control ?
>>>>>
>>>>> In the TS manual online (TS-7250_Rev1.2.pdf). Look at the top of
>>>>> page 7.
>>>>>
>>>>>>
>>>>>> Also I presume you disabled the login for ttyAM0 in /etc/inittab
>>>>>>
>>>>>
>>>>> Yes. Thank you, I forgot to mention this in the original post.
>>>>>
>>>>> Mike
>>>>>
>>>>>
>>>>>
>>>>> Yahoo! Groups Links
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|