Re: Linux and ModBus
2009/7/12 Wayne Rooney wrote: > On Saturday 11 July 2009 10:17, yuri wrote: > >> Yep. I just want to turn relays on and off from a Linux server. The >> less assembly required the better - my solder joints look terrible. > > > Considered using one of these? > > http://www.jaycar.co.nz/productView.asp?ID=KV3595 Yes thanks, I did come across that one in my searching. Don't know how easy[1] it is to craft the correct sequence of cruft to emulate clicking a button on a web page. Hopefully it also has the ability to process commands directly eg: echo "relay 2 on" | nc {ip of relay board} Yuri [1] easy for me, that is. I know you gurus can do it with your eyes shut.
Re: Linux and ModBus
On Saturday 11 July 2009 10:17, yuri wrote: > Yep. I just want to turn relays on and off from a Linux server. The > less assembly required the better - my solder joints look terrible. Considered using one of these? http://www.jaycar.co.nz/productView.asp?ID=KV3595 > The server will decide when relays are on and off. There needs to be > an easily scriptable way for the server to send commands like: > Relay X on > Relay Y off > Relay Z, are you currently on or off? (ie read status) You should be able to use "netcat" in a script to push the buttons on the page served up by the internal webserver to turn the relays on and off. Cheers, Wayne
RE: Linux and ModBus
Apart from threadjacking, what on? On Sat, 2009-07-11 at 21:17 +1200, Julian Warwick Bethell wrote: > I need Help > > > > JB Computer Services > > Julian Bethell > PC Technician > 2/96 Wainui Street > Riccarton > Christchurch > New Zealand > tel: (03) 348-5875 > mobile: +64211643666 > > computert...@paradise.net.nz > http://computertech.dyndns.biz > > > > > > > > > > > > > > > > -Original Message- > From: Andrew Sands [mailto:and...@theatrix.org.nz] > Sent: Saturday, July 11, 2009 10:55 AM > To: linux-users@it.canterbury.ac.nz > Subject: Re: Linux and ModBus > > On Fri, 10 Jul 2009 21:22:16 you wrote: > > 2009/7/10 Andrew Errington wrote: > > > There are so many levels in the 'stack' from Linux app to actually > > > closing a relay. Where do you want to start? > > > > I'd like to sit down with someone who's done it and pick their brain > > over a few beers. My shout. > > > > Yuri > > Yuri, > > When and where for the beer. > > Google for any of the following. > > Comedi > Classic ladder > libmodbus > > otherwise suggest a suitable venue for the shout > > regards, > > Andrew >
Re: Linux and ModBus
On Sat, 11 Jul 2009 21:17:37 +1200 Julian Warwick Bethell wrote: > I need Help > Now tell us what you need help with. :-) Machine details, Operating System and version, application. lspci, lsmod and any relavent bits from /var/log/messages John
Re: Linux and ModBus
On Sat, 11 Jul 2009 21:17:37 +1200 Julian Warwick Bethell wrote: > I need Help > Me too? John
RE: Linux and ModBus
I need Help JB Computer Services Julian Bethell PC Technician 2/96 Wainui Street Riccarton Christchurch New Zealand tel: (03) 348-5875 mobile: +64211643666 computert...@paradise.net.nz http://computertech.dyndns.biz -Original Message- From: Andrew Sands [mailto:and...@theatrix.org.nz] Sent: Saturday, July 11, 2009 10:55 AM To: linux-users@it.canterbury.ac.nz Subject: Re: Linux and ModBus On Fri, 10 Jul 2009 21:22:16 you wrote: > 2009/7/10 Andrew Errington wrote: > > There are so many levels in the 'stack' from Linux app to actually > > closing a relay. Where do you want to start? > > I'd like to sit down with someone who's done it and pick their brain > over a few beers. My shout. > > Yuri Yuri, When and where for the beer. Google for any of the following. Comedi Classic ladder libmodbus otherwise suggest a suitable venue for the shout regards, Andrew