RE: Serial port question

2008-02-02 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Mario Lobo
 Sent: Wednesday, January 30, 2008 5:22 PM
 To: Warren Block
 Cc: [EMAIL PROTECTED]
 Subject: Re: Serial port question


 On Wednesday 30 January 2008 21:42:28 you wrote:
  On Wed, 30 Jan 2008, Mario Lobo wrote:
   I am doing some experiments with the WL5460AP. I doesn't have a serial
   connector but the RTL8186 does have a UART and the circuit
 board has a 4
   pin connector (4-3.3V, 3-TXD, 2-RXD, 1-GND) to the UART.

When you plugged in to this port, did you insert 1488 and 1489
line driver/line receiver chips?  RS232 serial data is +12V ~ -12V
and that UART output is undoubtedly TTL 5v+ signal level.  Hopefully
you didn't fry the port.

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Serial port question

2008-01-30 Thread Mario Lobo
Hi guys;

I am doing some experiments with the WL5460AP. I doesn't have a serial 
connector but the RTL8186 does have a UART and the circuit board has a 4 pin 
connector (4-3.3V, 3-TXD, 2-RXD, 1-GND) to the UART. The idea here is to 
rewrite its firmware. 

For a better debuging (and possibly de-bricking), I need to access its console 
screen (which it DOES have).

The (lots of) info I gathered says that the connection to the WL5460AP console 
should be at 38400, 8N1, no-flow ctl.

I have set up a proper cable and a line in /etc/ttys like:
ttyd0   /usr/libexec/getty 3wire.38400 vt100  on  secure 

Using kermit I type:

SET CARRIER-WATCH OFF
set duplex full
set session-log binary
set modem type none
set line /dev/ttyd0
set speed 38400
set flow none
set serial 8n1
set terminal echo local
set terminal newline-mode on
set terminal debug on
connect

but I get nothing back. 

Before I start digging for hardware errors, I want to check if my connection 
attempt is being done right and understand better what is going on.

1) how does this work? ttyd0 goes through cuad0 or does it simply grabs it 
and sets its speed to 38400. Originally, cuad0 is set to 9600.

2) if it goes through cuad0, how do I set it to 38400, 8N1, no-flow ctl?

3) is my ttys line correct?

Thanks !
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Serial port question

2008-01-30 Thread Warren Block

On Wed, 30 Jan 2008, Mario Lobo wrote:

I am doing some experiments with the WL5460AP. I doesn't have a serial
connector but the RTL8186 does have a UART and the circuit board has a 4 pin
connector (4-3.3V, 3-TXD, 2-RXD, 1-GND) to the UART. The idea here is to
rewrite its firmware.


You may have to swap TXD and RXD (null-modem).


For a better debuging (and possibly de-bricking), I need to access its console
screen (which it DOES have).

The (lots of) info I gathered says that the connection to the WL5460AP console
should be at 38400, 8N1, no-flow ctl.

I have set up a proper cable and a line in /etc/ttys like:
ttyd0   /usr/libexec/getty 3wire.38400 vt100on  secure


I would set that back to default.  /dev/cuad0 is the callout port.


Using kermit I type:

SET CARRIER-WATCH OFF
set duplex full
set session-log binary
set modem type none
set line /dev/ttyd0
set speed 38400
set flow none
set serial 8n1
set terminal echo local
set terminal newline-mode on
set terminal debug on
connect

but I get nothing back.


Try again with /dev/cuad0.  Again, you may have to reverse TXD and RXD 
at one end of the cable.



Before I start digging for hardware errors, I want to check if my connection
attempt is being done right and understand better what is going on.

1) how does this work? ttyd0 goes through cuad0 or does it simply grabs it
and sets its speed to 38400. Originally, cuad0 is set to 9600.


See sio(4).  ttyd0 is a callin port, while cuad0 is a callout port.


2) if it goes through cuad0, how do I set it to 38400, 8N1, no-flow ctl?


You're telling kermit to set the speed and flow control.  For this 
application, you could probably use cu/tip also:


cu -l /dev/cuad0 -s 38400


3) is my ttys line correct?


I don't think so.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Serial port question

2008-01-30 Thread Mario Lobo
On Wednesday 30 January 2008 21:42:28 you wrote:
 On Wed, 30 Jan 2008, Mario Lobo wrote:
  I am doing some experiments with the WL5460AP. I doesn't have a serial
  connector but the RTL8186 does have a UART and the circuit board has a 4
  pin connector (4-3.3V, 3-TXD, 2-RXD, 1-GND) to the UART. The idea here is
  to rewrite its firmware.

 You may have to swap TXD and RXD (null-modem).

I tried that. 


  For a better debuging (and possibly de-bricking), I need to access its
  console screen (which it DOES have).
 
  The (lots of) info I gathered says that the connection to the WL5460AP
  console should be at 38400, 8N1, no-flow ctl.
 
  I have set up a proper cable and a line in /etc/ttys like:
  ttyd0   /usr/libexec/getty 3wire.38400 vt100  on  secure

 I would set that back to default.  /dev/cuad0 is the callout port.

I'll try that.


  Using kermit I type:
 
  SET CARRIER-WATCH OFF
  set duplex full
  set session-log binary
  set modem type none
  set line /dev/ttyd0
  set speed 38400
  set flow none
  set serial 8n1
  set terminal echo local
  set terminal newline-mode on
  set terminal debug on
  connect
 
  but I get nothing back.

 Try again with /dev/cuad0.  Again, you may have to reverse TXD and RXD
 at one end of the cable.

ok


  Before I start digging for hardware errors, I want to check if my
  connection attempt is being done right and understand better what is
  going on.
 
  1) how does this work? ttyd0 goes through cuad0 or does it simply
  grabs it and sets its speed to 38400. Originally, cuad0 is set to 9600.

 See sio(4).  ttyd0 is a callin port, while cuad0 is a callout port.

  2) if it goes through cuad0, how do I set it to 38400, 8N1, no-flow
  ctl?

 You're telling kermit to set the speed and flow control.  For this
 application, you could probably use cu/tip also:

 cu -l /dev/cuad0 -s 38400

I tried that. It says connected and hangs. I have to open another console to 
kill -9 it


  3) is my ttys line correct?

 I don't think so.

 -Warren Block * Rapid City, South Dakota USA

Warren, I found this discussion on the inet.

Could you comment on it? 

http://fixunix.com/bsd/86444-serial-ports-control-peripherals-w-3-wire-interface-okay-5-x-isn-t-working-6-x.html

Maybe my plans to access the serial port will have to wait.

I know my cuad0 is ok because I can fax with an external Genius modem.

Thanks for replying !


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]