Thanks Paul,
 
There are two serial ports on this device
 
/dev/tts/0
/dev/tts/1
 
tts/0 is used a host terminal, I think this is all it can be used for.
 
I can connect (using a differnt cable) tts/1 to my pc and send dat from the device, but I haven't been able to send data back yet.
 
`owhttpd /dev/tts/1 -p 3001 --foreground --error_level=9` yeilds the following :
 
[EMAIL PROTECTED]:~# owhttpd /dev/tts/1 -p 3001 --foreground --error_level=9
   CALL: PARSENAME path=[]
CONNECT: Cannot detect DS2480 or LINK interface on /dev/tts/1.
   CALL: PARSENAME path=[]
DEFAULT: Cannot detect DS9097 (passive) interface on /dev/tts/1.
CONNECT: ServerListen: socket() [3001]: Address family not supported by protocol
 
Then I kill it.

   CALL: Starting Library cleanup
   CALL: Closing Cache
   CALL: Closing input devices
   CALL: Closing outout devices
   CALL: Finished Library cleanup
 
 
And then 'cat /proc/tty/driver/serial' will show :
 
0: uart:16550A port:B8000300 irq:3 baud:113636 tx:257 rx:0 RTS|CTS|DTR|DSR|CD
1: uart:16550A port:B8000400 irq:3 baud:9615 tx:27 rx:0 CTS|DSR|CD
And I think the "tx:27 rx:0" is the salient data here, the init strings are being sent, but nothing is returned.
 
I'm not really sure how to proceed, i don't think it's an OWFS issue, if I can't get data in via tts/1, clearly OWFS isn't going to work.
 
The MAX3223 support two serial port, so I'll swap them over and make sure the chips isn't faulty.
 
Thanks again for your help.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Alfille
Sent: Wednesday, 23 August 2006 12:50 AM
To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Sorry, I forgot which adapter you were using.

I've been looking at the Maxim website:

http://datasheets.maxim-ic.com/en/ds/DS9097U-009-DS9097U-S09.pdf
DS9097U takes input signals of +-5V up to +-12V
Uses DTR/RTS (either I think) as power source, internally regulated to 5V
Signal on TxTs -- so far looks good.
The last paragraph suggests that by adding power to the DTR pin, you can overcome low signal levels.

The datasheet for the MAX3223
http://datasheets.maxim-ic.com/en/ds/MAX3221-MAX3243.pdf
suggests that our hack isn't needed. There is an integral chargepump that allows supply and signal voltages as low as 3V and output of 5V-5.5V.

The next question is if there is serial port support in the linux kernel you are using. You said you can do terminal communication, which sounds promixing. Sometimes these is an issue of input vs output mode for the port. Can you communicate out on the serial line? (Maybe something as simple as "echo Hello > /dev/tts/1" to a dumb terminal. Could the port be monopolized by another process? Waiting for console input?

OWFS will give you some feedback when it starts. My suggestion:
1. Log in (ssh via network)
2. Kill all owfs, owserver, owhttpd processes
3. owhttpd /dev/tts/1 -p 3001 --foreground --error_level=9
4. Look at the initial output for the connection information
5. Post the resuts here.

Paul Alfille

On 8/22/06, Matt <[EMAIL PROTECTED]> wrote:
 
I have a LINK ?
I'm sure it's a DS9097U-S09.
 
When I plug it into the wrt54g serial port, I'm only connecting what I read was nessesary.
 
DS9097
RX -------- TX MAX3223
TX -------- RX MAX3223
GND ------- GND
DTR ------- +9v
RTS ------- +9v
 
 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Alfille
Sent: Tuesday, 22 August 2006 5:05 AM

To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Is /dev/tts/1 the correct port? I'm more used to the /dev/ttySn naming scheme. ls -l /dev/tts/* will give the actual major/minor numbers for those character devices.

Our hope is that 3V signals will be sufficient for the adapter (with higher voltage power source). You are using the LINK, so a query to iButtonLink (William Farmer) would be fruitful.

On 8/21/06, Matt <[EMAIL PROTECTED]> wrote:
Thanks Paul, I appreciate you're helping me.
 
"Bad Adapter" doesn't look good.

bus.0/system/adapter


up directory
address.ALL /dev/tts/1
address.0 /dev/tts/1
ds2404_compliance.ALL
ds2404_compliance.0
name.ALL Bad Adapter
name.0 Bad Adapter
overdrive.ALL
overdrive.0
version.ALL 10
version.0 10


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Alfille
Sent: Monday, 21 August 2006 8:41 PM

To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Looks like you are connecting to owserver ("tcp") on port 3002.

Next try /bus.0/system
That is a query to device on bus.0 (owserver connection in your case).

On 8/21/06, Matt <[EMAIL PROTECTED] > wrote:

system/adapter


up directory
address.ALL 3002
address.0 3002
ds2404_compliance.ALL
ds2404_compliance.0
name.ALL tcp
name.0 tcp
overdrive.ALL
overdrive.0
version.ALL 9
version.0 9


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Alfille
Sent: Monday, 21 August 2006 1:23 AM

To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

What adapter is listed under "system?"

On 8/20/06, Matt <[EMAIL PROTECTED] > wrote:
Well, I found an old 9v power pack from something or other and connecting it up to RTS and DTR.
Openwrt is running, I have the console on tty0, the 1-wire adaptor is connected to tty1.
 
Looking at the errors I can see the follwoing...
 
BUS_detect_errors 1
BUS_read_timeout_errors 3
DS2480_sendback_cmd_errors 2
A few of these `ls /tmp/1wire/bus.0/bus.0` and BUS_reset_errors  starts to increment.
 
Do any of these errors suggest the adaptor is even detected ?
 
Thanks
 
Matt
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Matt
Sent: Thursday, 17 August 2006 10:40 PM

To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Which is a DS9097U-S09, which appear to be able to handle 12v.  Great.
 
Thanks heaps.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Alfille
Sent: Thursday, 17 August 2006 8:39 PM
To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Take a look at http://datasheets.maxim-ic.com/en/ds/DS9097U-009-DS9097U-S09.pdf
DTR or RTS for power.
It looks like you could use an external wall wart. Or steal power from the (?12V) input into the Linksys.

Perhaps there is al alternative to the MAX3223

Paul

On 8/17/06, Matt <[EMAIL PROTECTED] > wrote:
Oh well, if DTR is where +5v needs to be it isn't there.
I'm not sure where I can find +5v, the Max3223 uses 3.3v and that's what is supplied by the Linksys.
 
Do I need to externally power the 1Wire devices then ?
 
thanks
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Alfille
Sent: Thursday, 17 August 2006 2:08 AM
To: [email protected]
Subject: Re: [Owfs-developers] Openwrt + serial 1wire

Hi Matt,

I assume you've chosen the correct tty port. Under bus.0/system/adapter you can see what adapter was fould. Under statistics/errors ou can see what errorsa re reported. Both would be helpful.
I am guessing that the MAX3223 pushes the voltage to 5V. The DS9097U (your adapter) gets its power from DTR. Is that at 5V?

Paul

On 8/16/06, Matt <[EMAIL PROTECTED] > wrote:

Hi,

I have my wrt54gl, now with openwrt running and using a MAX3223 I have added two serial ports.
I can connect with either port and send and receive data to and from my PC.

I've added the various OWFS packages and I can see they are running, I have the OWFS web page up.
I have the serial 1Wire adaptor, grey with an RJ11 socket.

The adaptor has been in use for a year or so, on an old laptop (the linksys is to replace the laptop) so I'm sure it and the sensors work.

The OWFS package isn't showing any devices.

I have DB9 pins 7+8 (RTS+CTS) connected, 4+6 (DTR+DSR) connected. Pins 2,3 and 5 (RD,TD,GND) connected to the MAX3223.

Have I connected this up corectly ?
Is being able to send data to a PC a good test of whether a 1Wire device will work ?

Thanks


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to