hej Nicklas, I had similar problems using OWFS with DS2480B in a slightly different setup (1wire over IP) - there must be problems with that part of the software - one of the problems is that the init (reset) of the 2480 is probably not done correctly. There must be UART break signal to reset - which is not easy to achieve (especially in my case of xport ethernet to rs232 module). The only thing I can say is, that using windows onewire viewer and tmex drivers from maxim - (and comport redirector in my case) everything works fine using the same hardware. I spent a long time discussing with Paul Allfile and he gave it some tries but still it doesn't work. On the other hand when I was using the USB-1wire dongle OWFS worked fine. My conclusion: its not a hardware problem (good to know when doing hw yourself). hälsningar Beat, Basel, Switzerland
-----Ursprüngliche Nachricht----- Von: Nicklas Björk [mailto:[email protected]] Gesendet: Donnerstag, 5. Februar 2009 10:32 An: [email protected] Betreff: Re: [Owfs-developers] SD2480B and MAX232 segfault Gregg Levine wrote: > On Wed, Feb 4, 2009 at 8:25 PM, Gregg Levine <[email protected]> wrote: >> On Wed, Feb 4, 2009 at 7:17 PM, Nicklas Björk <[email protected]> wrote: >>> Hi >>> >>> I have tried to construct a simple circuit using a MAX232CPE and a >>> DS2480B and hook it up to the owserver. When running on a usb-serial >>> adapter I got random errors, for example Segmentation fault, >>> Trace/breakpoint trap, Floating point exception and Illegal instruction. >>> I thought it might have to do with the usb-adapter so I connected it to >>> a real serial port but the result were the same. >>> >>> I have checked the mailing list and made sure that VDD, VPP and POL of >>> the DS2480B are connected to +5V. I get the segfaults with or without >>> anything connected to the 1-wire pin and with and without parasite >>> powered thermometer connected. The RX232-circuit seems to work as it can >>> do loopback to the pc on the UART-side. >>> >>> On the software side I've been trying kernel 2.6.22.14 and 2.6.28.1, the >>> lastest release of owfs 2.7p13 as well as the lastest in cvs as of today >>> 2009-02-05. The usb-serial adapters are pl2303-based. >>> >>> In dmesg I get lots of errors of this kind on the computer with kernel >>> 2.6.28.1: >>> owserver[15073] general protection ip:804de21 sp:b75de328 error:0 in >>> owserver[804d000+1000] >>> >>> Any ideas what could be wrong? >>> >>> >>> Nicklas Björk >>> >> Hello! >> Are you following the exact schematic for a DS9097 given in the >> application notes for the DS2480B? It happens that the MAX232 isn't >> needed. What is needed is exactly what those notes describe. >> >> ----- >> Gregg C Levine [email protected] >> "This signature was once found posting rude >> messages in English in the Moscow subway." >> > Hello! > I feel strange replying to myself but here goes. Basically the pages > for the DS2480B basically confirm what I've stated. > > Ideally the best application note for this is here: > http://pdfserv.maxim-ic.com/en/an/AN192.pdf by viewing that one you > will see that the basic part count is there. > > Ideally you could also be using a DS9097 unit as it contains everything. > > > As I didn't have any Schottky diodes or MOSFETs in stock I decided to go for the 11a. UART Direct as described in http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf I have left out the RC-filter as well as the ESD protection device in my current setup on my project board, just to see if it works, which it doesn't. The reason I'm building it from scratch instead of just getting a DS9097 is simply that I had a few DS2480Bs and thought I'd give it a try. So you would assume it works better without the MAX and with the DS2480B in RS232-mode as described in figure 11c in the above fact sheet? Nicklas Björk ---------------------------------------------------------------------------- -- Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
