From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 3 10:19:21 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FC99106564A for ; Sun, 3 Jul 2011 10:19:21 +0000 (UTC) (envelope-from mythtv-users-bounces@mythtv.org) Received: from new.mythtv.org (184-106-209-209.static.cloud-ips.com [184.106.209.209]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE4D8FC12 for ; Sun, 3 Jul 2011 10:19:20 +0000 (UTC) Received: from mythtv.org (localhost [127.0.0.1]) by new.mythtv.org (Postfix) with ESMTP id 7407DAE8DCB for ; Sun, 3 Jul 2011 09:59:08 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: mythtv-users-bounces@mythtv.org To: freebsd-hardware@freebsd.org Message-ID: Date: Sun, 03 Jul 2011 09:59:07 +0000 Precedence: bulk X-BeenThere: mythtv-users@mythtv.org X-Mailman-Version: 2.1.9 X-List-Administrivia: yes Sender: mythtv-users-bounces@mythtv.org Errors-To: mythtv-users-bounces@mythtv.org Subject: Your message to mythtv-users awaits moderator approval X-BeenThere: freebsd-hardware@freebsd.org List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 10:19:21 -0000 Your mail to 'mythtv-users' with the subject Test Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's decision. If you would like to cancel this posting, please visit the following URL: http://www.mythtv.org/mailman/confirm/mythtv-users/bed3e109d260f8876b9b75b152686b908b91ebe7 From owner-freebsd-hardware@FreeBSD.ORG Sun Jul 3 23:18:14 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2950E106566C for ; Sun, 3 Jul 2011 23:18:14 +0000 (UTC) (envelope-from m-zdgxzg46Tlb6bzUIQTgB_w46U0EpBnA7zT-48ro4VI2@bounce.linkedin.com) Received: from maile-ac.linkedin.com (maile-ac.linkedin.com [69.28.147.166]) by mx1.freebsd.org (Postfix) with ESMTP id 084C88FC18 for ; Sun, 3 Jul 2011 23:18:13 +0000 (UTC) DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=prod; d=linkedin.com; h=DKIM-Signature:Sender:Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:X-LinkedIn-Template:X-LinkedIn-Class:X-LinkedIn-fbl; b=NgkgxSBIXcVZovINM+7r7kRDGVVdqBCyo07QVwsAl2vuZZDIOJ46GK2UGmi7jhLz IBNQwbvAZMzkOGKos9wXckcB0qT22MXppveNvP/EKVa7CBQii7sK9w8CHuwGR+F3 DKIM-Signature: v=1; a=rsa-sha1; d=linkedin.com; s=proddkim; c=relaxed/relaxed; q=dns/txt; i=@linkedin.com; t=1309735093; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=uZ4/vffgD/mOnnwOU/8O0SlSsHE=; b=xND33Xqzn+KQZtkCguZ7e/cTzIXNmc0DXbsZ13C4fqBU8V9FfWj98m389O74i6w9 ReWXwwKxvx3SSvKkn5W+msmB0QQN2pkq+LHDJKYWmneSpIS5W2nkAptU2jFStDCS; Sender: messages-noreply@bounce.linkedin.com Date: Sun, 3 Jul 2011 23:18:13 +0000 (UTC) From: LinkedIn Today To: Chunlin Yao Message-ID: <489358069.99317092.1309735093716.JavaMail.app@ela4-app0106.prod> MIME-Version: 1.0 X-LinkedIn-Template: at_a_glance X-LinkedIn-Class: LIN-NEWS X-LinkedIn-fbl: m-zdgxzg46Tlb6bzUIQTgB_w46U0EpBnA7zT-48ro4VI2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Top Headlines in Computer Software X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 23:18:14 -0000 The week's most popular industry news: Computer Software -------------------- =20 =20 =20 =20 =20 =20 =20 Computer Software =20 =20 Stealthy Trick Makes Facebook Look Like an Excel Spreadsheet - mashable.com= (355 shares) Now you can get away with cruising around Facebook at work, even when your = boss is peering over your shoulder. http://www.linkedin.com/e/8y5tt7-gpomgi4w-4v/nab/614458507/0VcjwOdj0MczcIcj= gTejAOcP4Sb3kNej0OcjgNdyMNe34Qd3cQcjoIdP0Re3kQd34S/true/weekly/eml-tod-b-tt= le-4/ =20 Samsung's Galaxy S II becomes company's quickest selling phone: three milli= on in 55 days - engadget.com (88 shares) Samsung sold three million of its original Galaxy S phone in 85 days. A few= months later, a full ten million had been moved. Now, it looks as if the s= uperphone's proper successor may put that latter statistic to shame... http://www.linkedin.com/e/8y5tt7-gpomgi4w-4v/nab/614344181/0VcjwOdj0MczcIcj= gTejAOcP4Sb3kNej0OcjgNdyMNe34Qd3cQcjoIdP0Re3kQd34S/true/weekly/eml-tod-b-tt= le-4/ =20 Google=E2=80=99s Six-Front War - techcrunch.com (346 shares) While the tech world is buzzing about the launch and implications of Google= =E2=80=99s new social network, Google+, it=E2=80=99s worth noting that Goog= le isn=E2=80=99t just in a war with Facebook, it=E2=80=99s at war with mult= iple companies across multiple... http://www.linkedin.com/e/8y5tt7-gpomgi4w-4v/nab/614120915/0VcjwOdj0MczcIcj= gTejAOcP4Sb3kNej0OcjgNdyMNe34Qd3cQcjoIdP0Re3kQd34S/true/weekly/eml-tod-b-tt= le-4/ =20 The 2011 Most Innovative Companies - fastcompany.com (129 shares) =20 http://www.linkedin.com/e/8y5tt7-gpomgi4w-4v/nab/613299741/0VcjwOdj0MczcIcj= gTejAOcP4Sb3kNej0OcjgNdyMNe34Qd3cQcjoIdP0Re3kQd34S/true/weekly/eml-tod-b-tt= le-4/ =20 Visual Studio LightSwitch Developer Center - msdn.microsoft.com (9 shares) Library, learning resources, and downloads for developing business applicat= ions with Visual Studio LightSwitch. http://www.linkedin.com/e/8y5tt7-gpomgi4w-4v/nab/320052819/0VcjwOdj0MczcIcj= gTejAOcP4Sb3kNej0OcjgNdyMNe34Qd3cQcjoIdP0Re3kQd34S/true/weekly/eml-tod-b-tt= le-4/ =20 =20 =20 =20 =20 =20 From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 4 10:56:57 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3601D106564A; Mon, 4 Jul 2011 10:56:57 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id A19578FC0C; Mon, 4 Jul 2011 10:56:56 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p64AdMJM025400; Mon, 4 Jul 2011 13:39:22 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p64AdMX7025399; Mon, 4 Jul 2011 13:39:22 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-hardware@freebsd.org, freebsd-multimedia@freebsd.org Date: Mon, 4 Jul 2011 13:39:21 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201107041339.22470.achill@matrix.gatewaynet.com> Cc: Subject: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 10:56:57 -0000 Hello, sorry for the cross-post but i believe this question might seat in both lists. I am the guy who had the done the old 1.23.3 zoneminder port some years ago, and i am thinking of installing/testing the new 1.24.4 port, submitted by bsam@FreeBSD.org. Besides the basic functions, i am thinking of re-using some old techniques by which i controlled the home alarm via a NC/NO circuit (basically it was an enhanced door contact), driven by an old zyXel modem, which in turn was driven by a small perl program driving the com port, and which was called by a deamon reading zoneminder shared memory info directly. That way i could trigger the alarm system getting into alarm state, whenever zoneminder detected motion, in a fully controlled and programmatic way. Now i am thinking of re-doing this, a little bit more modern, if possible. I was thinking of some relay board (instead of the old modem), possibly ethernet controlled (to get rid of all the obsolete com port programming), and such. Also i will scrap the old NO/NC solution (circuit embded in the door contact), and i wil use instead a new dedicated wireless transimter i bought (same brand as the alarm system), which is also NC/NO and receives two inputs and corresponds to two zones. So i am thinking of assigning 2 cameras as two disctinct zones in the alarm system. That is the rough idea. What would you guys have to recommend (regarding the relay?). I do not plan to use this relay for power/lights on/off and such, at this stage it will function solely to drive the alarm transimtter, (which in turn will drigger an alarm to the central alarm control panel) Thanks -- Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Mon Jul 4 11:07:02 2011 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A10106567E for ; Mon, 4 Jul 2011 11:07:02 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8DD418FC14 for ; Mon, 4 Jul 2011 11:07:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p64B72DF040438 for ; Mon, 4 Jul 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p64B71k7040436 for freebsd-hardware@FreeBSD.org; Mon, 4 Jul 2011 11:07:01 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Jul 2011 11:07:01 GMT Message-Id: <201107041107.p64B71k7040436@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-hardware@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-hardware@FreeBSD.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 11:07:02 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156241 hardware [mfi] 'zfs send' does not prevents disks to suspend if 1 problem total. From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 01:59:19 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C33401065673; Tue, 5 Jul 2011 01:59:19 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6F42F8FC1D; Tue, 5 Jul 2011 01:59:19 +0000 (UTC) Received: by gxk28 with SMTP id 28so2686473gxk.13 for ; Mon, 04 Jul 2011 18:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=ImW0sk2pCrZfZIq9lNKJSYcLyHpeGg4YROOReF4q4wg=; b=ofzFCbzkx9yqL+doIqooqNVFh7H2Nm6ZMVIbxCq/9/35CNFJBQndyviszmJJyt0JPQ Y6NYZDUpvPR1n5emYv1HEVu1U6HuptxxWbr8Z2/hC3pAYeXBVULMhvCKqbtrFf3FFnOg 6/ip8/Xh0MnLtJ6fpoX/IUhY3INX/3Oz+c1TI= Received: by 10.236.78.162 with SMTP id g22mr7799956yhe.314.1309829575508; Mon, 04 Jul 2011 18:32:55 -0700 (PDT) Received: from [192.168.0.52] ([187.120.139.136]) by mx.google.com with ESMTPS id v25sm1017906yhk.36.2011.07.04.18.32.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 18:32:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: <201107041339.22470.achill@matrix.gatewaynet.com> Date: Mon, 4 Jul 2011 22:32:51 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201107041339.22470.achill@matrix.gatewaynet.com> To: Achilleas Mantzios X-Mailer: Apple Mail (2.1084) Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 01:59:19 -0000 On Jul 4, 2011, at 7:39 AM, Achilleas Mantzios wrote: > Hello, sorry for the cross-post but i believe this question might seat = in both lists. > I am the guy who had the done the old 1.23.3 zoneminder port some = years ago, and i am thinking of installing/testing > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > Besides the basic functions, i am thinking of re-using some old = techniques by which i controlled=20 > the home alarm via a NC/NO circuit (basically it was an enhanced door = contact),=20 > driven by an old zyXel modem, which in turn was driven by a small = perl program driving the com port, and=20 > which was called by a deamon reading zoneminder shared memory info = directly. > That way i could trigger the alarm system getting into alarm state, = whenever zoneminder detected motion, > in a fully controlled and programmatic way. >=20 > Now i am thinking of re-doing this, a little bit more modern, if = possible. I was thinking of some relay board > (instead of the old modem), possibly ethernet controlled (to get rid = of all the obsolete com port programming), > and such. Also i will scrap the old NO/NC solution (circuit embded in = the door contact), and i wil use instead a new=20 > dedicated wireless transimter i bought (same brand as the alarm = system), which is also NC/NO and receives > two inputs and corresponds to two zones. So i am thinking of assigning = 2 cameras as two disctinct zones > in the alarm system. >=20 > That is the rough idea. What would you guys have to recommend = (regarding the relay?). I do not plan to use > this relay for power/lights on/off and such, at this stage it will = function solely to drive the alarm transimtter, > (which in turn will drigger an alarm to the central alarm control = panel) If you want to go ethernet -> gpio, i think the routerstation (or = routerstation pro) is one good option. The routerstation (not the pro = version) works with 12v~24v (12v is kind common for alarm systems) and = has 7 available GPIO pins (which works as inputs and outputs - you can = connect relays, switches, leds, lcds, i2c and spi devices). GPIO pins can be easily controlled from userland with gpioctl(8) or with = a small C program with the appropriate ioctl()s (or even using the = led(4) framework). Please take a look at = http://wiki.freebsd.org/FreeBSD/mips/UBNT-RouterStation for more = detailed information. Both boards works _really_ fine with -current. Cheers, Luiz= From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 07:48:31 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8007E1065680; Tue, 5 Jul 2011 07:48:31 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id DD1208FC17; Tue, 5 Jul 2011 07:48:30 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p657mTZI096295; Tue, 5 Jul 2011 10:48:29 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p657mSLQ096294; Tue, 5 Jul 2011 10:48:28 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Date: Tue, 5 Jul 2011 10:48:28 +0300 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201107051048.28951.achill@matrix.gatewaynet.com> Cc: Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 07:48:31 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 04:32:51 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > On Jul 4, 2011, at 7:39 AM, Achilleas Mantzios wrote: > > Hello, sorry for the cross-post but i believe this question might seat = in both lists. > > I am the guy who had the done the old 1.23.3 zoneminder port some years= ago, and i am thinking of installing/testing > > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > > Besides the basic functions, i am thinking of re-using some old techniq= ues by which i controlled=20 > > the home alarm via a NC/NO circuit (basically it was an enhanced door c= ontact),=20 > > driven by an old zyXel modem, which in turn was driven by a small perl= program driving the com port, and=20 > > which was called by a deamon reading zoneminder shared memory info dire= ctly. > > That way i could trigger the alarm system getting into alarm state, whe= never zoneminder detected motion, > > in a fully controlled and programmatic way. > >=20 > > Now i am thinking of re-doing this, a little bit more modern, if possib= le. I was thinking of some relay board > > (instead of the old modem), possibly ethernet controlled (to get rid of= all the obsolete com port programming), > > and such. Also i will scrap the old NO/NC solution (circuit embded in t= he door contact), and i wil use instead a new=20 > > dedicated wireless transimter i bought (same brand as the alarm system)= , which is also NC/NO and receives > > two inputs and corresponds to two zones. So i am thinking of assigning = 2 cameras as two disctinct zones > > in the alarm system. > >=20 > > That is the rough idea. What would you guys have to recommend (regardin= g the relay?). I do not plan to use > > this relay for power/lights on/off and such, at this stage it will func= tion solely to drive the alarm transimtter, > > (which in turn will drigger an alarm to the central alarm control panel) >=20 > If you want to go ethernet -> gpio, i think the routerstation (or routers= tation pro) is one good option. The routerstation (not the pro version) wor= ks with 12v~24v (12v is kind common for alarm systems) and has 7 available = GPIO pins (which works as inputs and outputs - you can connect relays, swit= ches, leds, lcds, i2c and spi devices). >=20 > GPIO pins can be easily controlled from userland with gpioctl(8) or with = a small C program with the appropriate ioctl()s (or even using the led(4) f= ramework). >=20 > Please take a look at http://wiki.freebsd.org/FreeBSD/mips/UBNT-RouterSta= tion for more detailed information. >=20 > Both boards works _really_ fine with -current. >=20 Hello, thanx, i see there is nothing GPIO related in 8.2, grep -i gpio /usr/src/sys/ yiel= ds nothing. Also, i was looking for an actual relay that could drive this simple wirele= ss transmitter : http://www.visonic.com/Products/Wireless-Property-Protection/Universal-tran= smitter-mct-100 http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE2241U= =2Epdf (installation manual) So what i wanna do is simple, sent some command to a relay which will open = a normally closed or close a normally open circuit in the above transmitter, and trigger an alar= m. > Cheers, > Luiz =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 09:15:45 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91FEE106566C; Tue, 5 Jul 2011 09:15:45 +0000 (UTC) (envelope-from bernt@bah.homeip.net) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 07CCA8FC0C; Tue, 5 Jul 2011 09:15:44 +0000 (UTC) Received: from kw.homeip.net (c80-217-64-49.bredband.comhem.se [80.217.64.49]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id p658feaj029583; Tue, 5 Jul 2011 10:41:43 +0200 (CEST) (envelope-from bernt@bah.homeip.net) Message-ID: <4E12CE42.20305@bah.homeip.net> Date: Tue, 05 Jul 2011 10:41:38 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; sv-SE; rv:1.9.2.17) Gecko/20110508 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Achilleas Mantzios References: <201107041339.22470.achill@matrix.gatewaynet.com> In-Reply-To: <201107041339.22470.achill@matrix.gatewaynet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 09:15:45 -0000 2011-07-04 12:39, Achilleas Mantzios skrev: > Hello, sorry for the cross-post but i believe this question might seat in both lists. > I am the guy who had the done the old 1.23.3 zoneminder port some years ago, and i am thinking of installing/testing > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > Besides the basic functions, i am thinking of re-using some old techniques by which i controlled > the home alarm via a NC/NO circuit (basically it was an enhanced door contact), > driven by an old zyXel modem, which in turn was driven by a small perl program driving the com port, and > which was called by a deamon reading zoneminder shared memory info directly. > That way i could trigger the alarm system getting into alarm state, whenever zoneminder detected motion, > in a fully controlled and programmatic way. Is this what you you are looking for http://www.telldus.se/products/tellstick From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 09:33:43 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B296C1065670; Tue, 5 Jul 2011 09:33:43 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 0B5D28FC0A; Tue, 5 Jul 2011 09:33:42 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p659XdO6097517; Tue, 5 Jul 2011 12:33:39 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p659Xdil097516; Tue, 5 Jul 2011 12:33:39 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Bernt Hansson , freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Date: Tue, 5 Jul 2011 12:33:38 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <4E12CE42.20305@bah.homeip.net> In-Reply-To: <4E12CE42.20305@bah.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107051233.39286.achill@matrix.gatewaynet.com> Cc: Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 09:33:43 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 11:41:38 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > 2011-07-04 12:39, Achilleas Mantzios skrev: > > Hello, sorry for the cross-post but i believe this question might seat = in both lists. > > I am the guy who had the done the old 1.23.3 zoneminder port some years= ago, and i am thinking of installing/testing > > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > > Besides the basic functions, i am thinking of re-using some old techniq= ues by which i controlled > > the home alarm via a NC/NO circuit (basically it was an enhanced door c= ontact), > > driven by an old zyXel modem, which in turn was driven by a small perl= program driving the com port, and > > which was called by a deamon reading zoneminder shared memory info dire= ctly. > > That way i could trigger the alarm system getting into alarm state, whe= never zoneminder detected motion, > > in a fully controlled and programmatic way. >=20 > Is this what you you are looking for >=20 > http://www.telldus.se/products/tellstick >=20 No,=20 what i am looking for is for a way to control a NO or NC/EOL switch from Fr= eeBSD. Most probably it must be some kind of relay. I have not used any ever, exce= pt once using a zyXel modem to behave like a relay switch in a N/C contact. =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 10:03:01 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11E70106566B; Tue, 5 Jul 2011 10:03:01 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 7536A8FC0A; Tue, 5 Jul 2011 10:03:00 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p65A2tPC097874; Tue, 5 Jul 2011 13:02:55 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p65A2tSa097873; Tue, 5 Jul 2011 13:02:55 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Bernt Hansson Date: Tue, 5 Jul 2011 13:02:55 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <4E12CE42.20305@bah.homeip.net> In-Reply-To: <4E12CE42.20305@bah.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107051302.55404.achill@matrix.gatewaynet.com> Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 10:03:01 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 11:41:38 =CE=BF/=CE=B7 Bernt = Hansson =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > 2011-07-04 12:39, Achilleas Mantzios skrev: > > Hello, sorry for the cross-post but i believe this question might seat = in both lists. > > I am the guy who had the done the old 1.23.3 zoneminder port some years= ago, and i am thinking of installing/testing > > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > > Besides the basic functions, i am thinking of re-using some old techniq= ues by which i controlled > > the home alarm via a NC/NO circuit (basically it was an enhanced door c= ontact), > > driven by an old zyXel modem, which in turn was driven by a small perl= program driving the com port, and > > which was called by a deamon reading zoneminder shared memory info dire= ctly. > > That way i could trigger the alarm system getting into alarm state, whe= never zoneminder detected motion, > > in a fully controlled and programmatic way. >=20 > Is this what you you are looking for >=20 > http://www.telldus.se/products/tellstick >=20 Basically i am thinking of something like this: http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Contro= lled-/110710829016?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash=3Dite= m19c6e12fd8 a USB controlled 8-channel relay board, rs232 serial controlled What would be my chances with this on FreeBSD 8.2? =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 11:30:52 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EB91106566C; Tue, 5 Jul 2011 11:30:52 +0000 (UTC) (envelope-from bernt@bah.homeip.net) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 91A168FC0A; Tue, 5 Jul 2011 11:30:50 +0000 (UTC) Received: from kw.homeip.net (c80-217-64-49.bredband.comhem.se [80.217.64.49]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id p65BUl3H032317; Tue, 5 Jul 2011 13:30:48 +0200 (CEST) (envelope-from bernt@bah.homeip.net) Message-ID: <4E12F5E7.3020905@bah.homeip.net> Date: Tue, 05 Jul 2011 13:30:47 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; sv-SE; rv:1.9.2.17) Gecko/20110508 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Achilleas Mantzios References: <201107041339.22470.achill@matrix.gatewaynet.com> <4E12CE42.20305@bah.homeip.net> <201107051302.55404.achill@matrix.gatewaynet.com> In-Reply-To: <201107051302.55404.achill@matrix.gatewaynet.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 11:30:52 -0000 2011-07-05 12:02, Achilleas Mantzios skrev: > Στις Tuesday 05 July 2011 11:41:38 ο/η Bernt Hansson έγραψε: >> 2011-07-04 12:39, Achilleas Mantzios skrev: >>> Hello, sorry for the cross-post but i believe this question might seat in both lists. >>> I am the guy who had the done the old 1.23.3 zoneminder port some years ago, and i am thinking of installing/testing >>> the new 1.24.4 port, submitted by bsam@FreeBSD.org. >>> Besides the basic functions, i am thinking of re-using some old techniques by which i controlled >>> the home alarm via a NC/NO circuit (basically it was an enhanced door contact), >>> driven by an old zyXel modem, which in turn was driven by a small perl program driving the com port, and >>> which was called by a deamon reading zoneminder shared memory info directly. >>> That way i could trigger the alarm system getting into alarm state, whenever zoneminder detected motion, >>> in a fully controlled and programmatic way. >> >> Is this what you you are looking for >> >> http://www.telldus.se/products/tellstick >> > > Basically i am thinking of something like this: > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Controlled-/110710829016?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c6e12fd8 > a USB controlled 8-channel relay board, rs232 serial controlled OK. Velleman has 8 & 16 channel relay boards, K8056, K6714 (8channels) and K6714-16 (16Channels). I have an schematic from elektor/elektuur with which you can control 64+ outputs from the printerport. > What would be my chances with this on FreeBSD 8.2? > From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 12:54:46 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 177EB1065674; Tue, 5 Jul 2011 12:54:46 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 66B6B8FC14; Tue, 5 Jul 2011 12:54:44 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p65CseqI099815; Tue, 5 Jul 2011 15:54:40 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p65Cse0a099814; Tue, 5 Jul 2011 15:54:40 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Bernt Hansson , freebsd-hardware@freebsd.org, freebsd-multimedia@freebsd.org Date: Tue, 5 Jul 2011 15:54:39 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051302.55404.achill@matrix.gatewaynet.com> <4E12F5E7.3020905@bah.homeip.net> In-Reply-To: <4E12F5E7.3020905@bah.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107051554.40256.achill@matrix.gatewaynet.com> Cc: Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 12:54:46 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 14:30:47 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > 2011-07-05 12:02, Achilleas Mantzios skrev: > > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 11:41:38 =CE=BF/=CE=B7 Be= rnt Hansson =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> 2011-07-04 12:39, Achilleas Mantzios skrev: > >>> Hello, sorry for the cross-post but i believe this question might sea= t in both lists. > >>> I am the guy who had the done the old 1.23.3 zoneminder port some yea= rs ago, and i am thinking of installing/testing > >>> the new 1.24.4 port, submitted by bsam@FreeBSD.org. > >>> Besides the basic functions, i am thinking of re-using some old techn= iques by which i controlled > >>> the home alarm via a NC/NO circuit (basically it was an enhanced door= contact), > >>> driven by an old zyXel modem, which in turn was driven by a small pe= rl program driving the com port, and > >>> which was called by a deamon reading zoneminder shared memory info di= rectly. > >>> That way i could trigger the alarm system getting into alarm state, w= henever zoneminder detected motion, > >>> in a fully controlled and programmatic way. > >> > >> Is this what you you are looking for > >> > >> http://www.telldus.se/products/tellstick > >> > > > > Basically i am thinking of something like this: > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Co= ntrolled-/110710829016?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash= =3Ditem19c6e12fd8 > > a USB controlled 8-channel relay board, rs232 serial controlled >=20 > OK. Velleman has 8 & 16 channel relay boards, K8056, K6714 (8channels)=20 > and K6714-16 (16Channels). I have an schematic from elektor/elektuur=20 > with which you can control 64+ outputs from the printerport. >=20 Thanx, this one looks a little pricey, @ 119$, the USB i refered to is in t= he ranks of 30euros. > > What would be my chances with this on FreeBSD 8.2? > > >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 13:47:50 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8178E1065670; Tue, 5 Jul 2011 13:47:50 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (b4.ebbed1.client.atlantech.net [209.190.235.180]) by mx1.freebsd.org (Postfix) with ESMTP id 20D9E8FC16; Tue, 5 Jul 2011 13:47:49 +0000 (UTC) Received: from [192.168.1.11] ([192.168.1.11]) by mail.monochrome.org (8.14.3/8.14.3) with ESMTP id p65DAxuF010382; Tue, 5 Jul 2011 09:10:59 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Tue, 5 Jul 2011 09:10:59 -0400 (EDT) From: Chris Hill To: Achilleas Mantzios In-Reply-To: <201107041339.22470.achill@matrix.gatewaynet.com> Message-ID: References: <201107041339.22470.achill@matrix.gatewaynet.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 13:47:50 -0000 On Mon, 4 Jul 2011, Achilleas Mantzios wrote: [snip] > I was thinking of some relay board (instead of the old modem), > possibly ethernet controlled This box has relays and GPIO available via ethernet. It's probably overkill for your application, but it's well made and easy to use: http://www.extron.com/product/product.aspx?id=ipltcr48&s=0 I'd also look at manufactureres such as Moxa and LANtronics. -- Chris Hill chris@monochrome.org ** [ Busy Expunging ] From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 14:30:12 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E411B106564A; Tue, 5 Jul 2011 14:30:12 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 3EA438FC1B; Tue, 5 Jul 2011 14:30:11 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p65EU8Lu001113; Tue, 5 Jul 2011 17:30:08 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p65EU3TC001112; Tue, 5 Jul 2011 17:30:03 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Chris Hill , freebsd-hardware@freebsd.org, freebsd-multimedia@freebsd.org Date: Tue, 5 Jul 2011 17:30:03 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107051730.03784.achill@matrix.gatewaynet.com> Cc: Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 14:30:13 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 16:10:59 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > On Mon, 4 Jul 2011, Achilleas Mantzios wrote: >=20 > [snip] >=20 > > I was thinking of some relay board (instead of the old modem),=20 > > possibly ethernet controlled >=20 > This box has relays and GPIO available via ethernet. It's probably=20 > overkill for your application, but it's well made and easy to use: >=20 > http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 >=20 That is too big for my application, thanx anyway. Most probably i'll go for something cheaper like this one=20 http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Contro= lled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash=3Dite= m19c6d9d2f8 Could i use the ucom driver to talk to the USB device like a normal serial = device, via /dev/cua*** ? The above link says one needs to talk to the relay with: 8 Data, 1 Stop, No Parity,Baud rate : 9600 and the commands look like: =46F 01 00 (HEX)=20 or=20 255 1 0 (DEC) could i be able to specify those over ucom?=20 do you know any application, perl library, utility or just a guide for stan= dard C serial port programming? i have used mgetty/vgetty in the past to control some modems. I do not know if there any fancier methods to access the serial port, but t= his is how i used to do it, back in 7.* /usr/local/bin/vm shell -l cuad1 -S onhook_offhook.pl where onhook_offhook.pl reads like: #!/usr/bin/perl # use Modem::Vgetty; my $v =3D new Modem::Vgetty; $v->device('DIALUP_LINE'); $v->send("ATH1"); sleep(5); $v->send("ATH0"); if i could speak directly with e.g. "255 1 0" like $v->send("255 1 0"); that would be awesome... i guess i will have to try it out. > I'd also look at manufactureres such as Moxa and LANtronics. >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 18:21:00 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B0C3106564A; Tue, 5 Jul 2011 18:21:00 +0000 (UTC) (envelope-from pozar@lns.com) Received: from kumr.lns.com (kumr.lns.com [209.237.227.146]) by mx1.freebsd.org (Postfix) with ESMTP id 2E27F8FC0A; Tue, 5 Jul 2011 18:20:59 +0000 (UTC) Received: from [192.168.101.54] ([38.109.25.246]) (authenticated bits=0) by kumr.lns.com (8.14.4/8.14.4) with ESMTP id p65HhE6j047685 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 5 Jul 2011 10:43:17 -0700 (PDT) (envelope-from pozar@lns.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=utf-8 From: Tim Pozar In-Reply-To: <201107051730.03784.achill@matrix.gatewaynet.com> Date: Tue, 5 Jul 2011 12:43:10 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <295D8D24-CAE4-4EB6-BCF1-EEE7B8623D85@lns.com> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> To: Achilleas Mantzios X-Mailer: Apple Mail (2.1084) X-Spam-Status: No, score=-102.5 required=5.0 tests=AWL,BAYES_00,RDNS_NONE, USER_IN_WHITELIST autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on kumr.lns.com Cc: freebsd-multimedia@freebsd.org, Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 18:21:00 -0000 Why not use the parallel port? Have one of its pins drive a relay. = You may need to put a transistor in front of the relay. Software: http://excamera.com/articles/21/parallel.html Hardware: http://www.dakeng.com/relay.htm Fancy hardware: http://www.electronickits.com/kit/complete/elec/ck1601.htm Tim On Jul 5, 2011, at 9:30 AM, Achilleas Mantzios wrote: > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 16:10:59 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: >> On Mon, 4 Jul 2011, Achilleas Mantzios wrote: >>=20 >> [snip] >>=20 >>> I was thinking of some relay board (instead of the old modem),=20 >>> possibly ethernet controlled >>=20 >> This box has relays and GPIO available via ethernet. It's probably=20 >> overkill for your application, but it's well made and easy to use: >>=20 >> http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 >>=20 >=20 > That is too big for my application, thanx anyway. > Most probably i'll go for something cheaper like this one=20 > = http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Contr= olled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash=3Di= tem19c6d9d2f8 >=20 > Could i use the ucom driver to talk to the USB device like a normal = serial device, via /dev/cua*** ? > The above link says one needs to talk to the relay with: > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > and the commands look like: > FF 01 00 (HEX)=20 > or=20 > 255 1 0 (DEC) >=20 > could i be able to specify those over ucom?=20 > do you know any application, perl library, utility or just a guide for = standard C serial port programming? >=20 > i have used mgetty/vgetty in the past to control some modems. > I do not know if there any fancier methods to access the serial port, = but this is how i used to do it, back in 7.* > /usr/local/bin/vm shell -l cuad1 -S onhook_offhook.pl > where onhook_offhook.pl reads like: > #!/usr/bin/perl > # > use Modem::Vgetty; >=20 > my $v =3D new Modem::Vgetty; >=20 > $v->device('DIALUP_LINE'); > $v->send("ATH1"); > sleep(5); > $v->send("ATH0"); >=20 > if i could speak directly with e.g. "255 1 0" like > $v->send("255 1 0"); > that would be awesome... > i guess i will have to try it out. >> I'd also look at manufactureres such as Moxa and LANtronics. >>=20 >=20 >=20 >=20 > --=20 > Achilleas Mantzios > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to = "freebsd-multimedia-unsubscribe@freebsd.org" From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 5 20:28:45 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14D49106564A for ; Tue, 5 Jul 2011 20:28:45 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id BFE188FC08 for ; Tue, 5 Jul 2011 20:28:44 +0000 (UTC) Received: from gate.ipt.ru ([194.62.233.123] helo=h30.sp.ipt.ru) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1QeBjR-000LbC-BY; Tue, 05 Jul 2011 23:56:29 +0400 From: Boris Samorodov To: Achilleas Mantzios References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> Date: Tue, 05 Jul 2011 23:56:28 +0400 In-Reply-To: <201107051730.03784.achill@matrix.gatewaynet.com> (Achilleas Mantzios's message of "Tue, 5 Jul 2011 17:30:03 +0300") Message-ID: <03644739@h30.sp.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 20:28:45 -0000 On Tue, 5 Jul 2011 17:30:03 +0300 Achilleas Mantzios wrote: > Most probably i'll go for something cheaper like this one > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Controlled-/110710346488?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c6d9d2f8 > Could i use the ucom driver to talk to the USB device like a normal > serial device, via /dev/cua*** ? I use USB-to-7-RS232-ports devices via /dev/cuaU00-/dev/cuaU06. Works like a charm. But you should find out what chip is used for USB-to-RS232 bridge and (kld)load a driver. > The above link says one needs to talk to the relay with: > 8 Data, 1 Stop, No Parity,Baud rate : 9600 I've never changed those parameters. > and the commands look like: > FF 01 00 (HEX) > or > 255 1 0 (DEC) > could i be able to specify those over ucom? > do you know any application, perl library, utility or just a guide for > standard C serial port programming? > i have used mgetty/vgetty in the past to control some modems. > I do not know if there any fancier methods to access the serial port, > but this is how i used to do it, back in 7.* > /usr/local/bin/vm shell -l cuad1 -S onhook_offhook.pl > where onhook_offhook.pl reads like: > #!/usr/bin/perl > # > use Modem::Vgetty; > my $v = new Modem::Vgetty; > $v->device('DIALUP_LINE'); > $v->send("ATH1"); > sleep(5); > $v->send("ATH0"); > if i could speak directly with e.g. "255 1 0" like > $v->send("255 1 0"); > that would be awesome... > i guess i will have to try it out. I use python for scripting and it is as simple as write(data) and read(data). -- HTH and WBR, bsam From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 07:07:44 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECEB9106566C; Wed, 6 Jul 2011 07:07:44 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4AD8FC15; Wed, 6 Jul 2011 07:07:42 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p6677fL2015130; Wed, 6 Jul 2011 10:07:41 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p6677evA015129; Wed, 6 Jul 2011 10:07:40 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Boris Samorodov Date: Wed, 6 Jul 2011 10:07:40 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <03644739@h30.sp.ipt.ru> In-Reply-To: <03644739@h30.sp.ipt.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107061007.40884.achill@matrix.gatewaynet.com> Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 07:07:45 -0000 Hey, its a small world! i am the other guy (achix) from the zoneminder camp :) this all has to do with a continuation of the zoneminder work, zoneminder driving a relay, driving a xmitter and finally triggering an ala= rm to the central alarm control panel. i have done this in the past with a rather "legacy" way (utilizing a zyXel = modem), but wanted to=20 do something more fancy. =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 22:56:28 =CE=BF/=CE=B7 Boris = Samorodov =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Tue, 5 Jul 2011 17:30:03 +0300 Achilleas Mantzios wrote: >=20 > > Most probably i'll go for something cheaper like this one=20 > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Co= ntrolled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash= =3Ditem19c6d9d2f8 >=20 > > Could i use the ucom driver to talk to the USB device like a normal > > serial device, via /dev/cua*** ? >=20 > I use USB-to-7-RS232-ports devices via /dev/cuaU00-/dev/cuaU06. > Works like a charm. But you should find out what chip is used > for USB-to-RS232 bridge and (kld)load a driver. >=20 Is there any big probability for the chip to not be on of those that FreeBS= D supports (uark, uftdi, etc..) ? most sellers hardly give such info out. > > The above link says one needs to talk to the relay with: > > 8 Data, 1 Stop, No Parity,Baud rate : 9600 >=20 > I've never changed those parameters. >=20 > > and the commands look like: > > FF 01 00 (HEX)=20 > > or=20 > > 255 1 0 (DEC) >=20 > > could i be able to specify those over ucom?=20 > > do you know any application, perl library, utility or just a guide for > > standard C serial port programming? >=20 > > i have used mgetty/vgetty in the past to control some modems. > > I do not know if there any fancier methods to access the serial port, > > but this is how i used to do it, back in 7.* > > /usr/local/bin/vm shell -l cuad1 -S onhook_offhook.pl > > where onhook_offhook.pl reads like: > > #!/usr/bin/perl > > # > > use Modem::Vgetty; >=20 > > my $v =3D new Modem::Vgetty; >=20 > > $v->device('DIALUP_LINE'); > > $v->send("ATH1"); > > sleep(5); > > $v->send("ATH0"); >=20 > > if i could speak directly with e.g. "255 1 0" like > > $v->send("255 1 0"); > > that would be awesome... > > i guess i will have to try it out. >=20 > I use python for scripting and it is as simple as write(data) and > read(data). >=20 Cool, thanx, see you over the zoneminder forum. =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 08:18:41 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4267D106564A; Wed, 6 Jul 2011 08:18:41 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 57E3D8FC0A; Wed, 6 Jul 2011 08:18:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p6683FAL012141; Wed, 6 Jul 2011 18:03:15 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 6 Jul 2011 18:03:14 +1000 (EST) From: Ian Smith To: Achilleas Mantzios In-Reply-To: <201107051730.03784.achill@matrix.gatewaynet.com> Message-ID: <20110706170845.Q84785@sola.nimnet.asn.au> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-136029731-1309939394=:84785" Cc: freebsd-multimedia@freebsd.org, Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 08:18:41 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-136029731-1309939394=:84785 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Tue, 5 Jul 2011, Achilleas Mantzios wrote: > Tuesday 05 July 2011 16:10:59 : > > On Mon, 4 Jul 2011, Achilleas Mantzios wrote: > > > > [snip] > > > > > I was thinking of some relay board (instead of the old modem), > > > possibly ethernet controlled > > > > This box has relays and GPIO available via ethernet. It's probably > > overkill for your application, but it's well made and easy to use: > > > > http://www.extron.com/product/product.aspx?id=ipltcr48&s=0 > > > > That is too big for my application, thanx anyway. > Most probably i'll go for something cheaper like this one > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Controlled-/110710346488?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c6d9d2f8 These look quite well designed and built to me, reasonably priced new, but check out the/a source site [1] for various models, 1- and 4-relay boards too, or if you prefer, RS-232 serial rather than USB interface for the 8-relay boards. There's also a simple parallel port to 8 TTL outputs board (hi Tim!) and various other stuff. I'm tempted myself. [1] http://sigma-shop.com/category/4/relay-boards.html [2] http://www.sigma-shop.com/page/12/manuals.html > Could i use the ucom driver to talk to the USB device like a normal serial device, via /dev/cua*** ? > The above link says one needs to talk to the relay with: > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > and the commands look like: > FF 01 00 (HEX) > or > 255 1 0 (DEC) > > could i be able to specify those over ucom? If so, great. If not and you have a serial port, the code will be the same anyway, except the port used. I grabbed most of the manuals from [2] and found the Linux software examples are all this one: ======= Linux : The USB-serial device is automatically detected and mapped to /dev/ ttyUSB0 (or USB1 in case there is already a similar device). My test script: (Thanks Julian!) -------------------------------------------------------- # cat relay.sh while true do echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x00\x01" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 [..] echo -e "\xFF\x01\x01" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x02\x01" > /dev/ttyUSB0 ; sleep .1 [..] echo -e "\xFF\x07\x01" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x08\x01" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x01\x00" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x02\x00" > /dev/ttyUSB0 ; sleep .1 [..] echo -e "\xFF\x07\x00" > /dev/ttyUSB0 ; sleep .1 echo -e "\xFF\x08\x00" > /dev/ttyUSB0 ; sleep .1 ======= If using sh[1] you might need to use \0377 instead of \xFF > do you know any application, perl library, utility or just a guide for standard C serial port programming? Anything that can write bytes to a serial port - perl's overqualified :) [..] cheers, Ian --0-136029731-1309939394=:84785-- From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 08:24:41 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36305106566B; Wed, 6 Jul 2011 08:24:41 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 854E58FC1A; Wed, 6 Jul 2011 08:24:39 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p668OcpO016064; Wed, 6 Jul 2011 11:24:38 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p668OcNV016063; Wed, 6 Jul 2011 11:24:38 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <295D8D24-CAE4-4EB6-BCF1-EEE7B8623D85@lns.com> In-Reply-To: <295D8D24-CAE4-4EB6-BCF1-EEE7B8623D85@lns.com> MIME-Version: 1.0 Content-Disposition: inline Date: Wed, 6 Jul 2011 11:24:38 +0300 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201107061124.38593.achill@matrix.gatewaynet.com> Cc: Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 08:24:41 -0000 thanx! very interesting! =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 20:43:10 =CE=B3=CF=81=CE=AC= =CF=88=CE=B1=CF=84=CE=B5: > Why not use the parallel port? Have one of its pins drive a relay. You= may need to put a transistor in front of the relay. >=20 > Software: > http://excamera.com/articles/21/parallel.html >=20 > Hardware: > http://www.dakeng.com/relay.htm >=20 > Fancy hardware: > http://www.electronickits.com/kit/complete/elec/ck1601.htm >=20 > Tim >=20 > On Jul 5, 2011, at 9:30 AM, Achilleas Mantzios wrote: >=20 > > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 05 July 2011 16:10:59 =CE=B3=CF=81=CE= =AC=CF=88=CE=B1=CF=84=CE=B5: > >> On Mon, 4 Jul 2011, Achilleas Mantzios wrote: > >>=20 > >> [snip] > >>=20 > >>> I was thinking of some relay board (instead of the old modem),=20 > >>> possibly ethernet controlled > >>=20 > >> This box has relays and GPIO available via ethernet. It's probably=20 > >> overkill for your application, but it's well made and easy to use: > >>=20 > >> http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 > >>=20 > >=20 > > That is too big for my application, thanx anyway. > > Most probably i'll go for something cheaper like this one=20 > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Co= ntrolled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash= =3Ditem19c6d9d2f8 > >=20 > > Could i use the ucom driver to talk to the USB device like a normal ser= ial device, via /dev/cua*** ? > > The above link says one needs to talk to the relay with: > > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > > and the commands look like: > > FF 01 00 (HEX)=20 > > or=20 > > 255 1 0 (DEC) > >=20 > > could i be able to specify those over ucom?=20 > > do you know any application, perl library, utility or just a guide for = standard C serial port programming? > >=20 > > i have used mgetty/vgetty in the past to control some modems. > > I do not know if there any fancier methods to access the serial port, b= ut this is how i used to do it, back in 7.* > > /usr/local/bin/vm shell -l cuad1 -S onhook_offhook.pl > > where onhook_offhook.pl reads like: > > #!/usr/bin/perl > > # > > use Modem::Vgetty; > >=20 > > my $v =3D new Modem::Vgetty; > >=20 > > $v->device('DIALUP_LINE'); > > $v->send("ATH1"); > > sleep(5); > > $v->send("ATH0"); > >=20 > > if i could speak directly with e.g. "255 1 0" like > > $v->send("255 1 0"); > > that would be awesome... > > i guess i will have to try it out. > >> I'd also look at manufactureres such as Moxa and LANtronics. > >>=20 > >=20 > >=20 > >=20 > > --=20 > > Achilleas Mantzios > > _______________________________________________ > > freebsd-multimedia@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebs= d.org" >=20 >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 09:49:52 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8191F106566C; Wed, 6 Jul 2011 09:49:52 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id F32398FC08; Wed, 6 Jul 2011 09:49:51 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p669noHI017050; Wed, 6 Jul 2011 12:49:50 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p669nnxs017049; Wed, 6 Jul 2011 12:49:49 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Ian Smith Date: Wed, 6 Jul 2011 12:49:49 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <20110706170845.Q84785@sola.nimnet.asn.au> In-Reply-To: <20110706170845.Q84785@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107061249.49637.achill@matrix.gatewaynet.com> Cc: freebsd-multimedia@freebsd.org, Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 09:49:52 -0000 another thing that puzzles me is power. This board : http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-= Serial-Controlled-/110710333092?pt=3DUK_BOI_Electrical_Components_Supplies_= ET&hash=3Ditem19c6d99ea4 needs VDC 12V supply=20 while this one : http://www.ebay.co.uk/itm/USB-Four-4-Relay-Module-Board-Ho= me-Automation-/180646300804?pt=3DLH_DefaultDomain_0&hash=3Ditem2a0f5bcc84 is self powered from USB. batteries do not come cheap, and having an extra AC/DC adaptor is not very = good either ... another thing is the relay parameters, i see various figures : Relay parameters: 5V / 72mA, 15A/24VDC (120VAC), 10A/250VAC or Each switch 12VDC/15A or 240VAC/10A or Open (No) and Closed (NC) Contacts rated for voltages: 12VDC/15A; 24VDC/15A= ; 125VAC/15A; 250VAC/10A my specific application i want to drive is this wireless xmitter : http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE2241U= =2Epdf Should i assume my device that i want my relay to control will have voltage= of 3V? for which Voltage/Ampere figures should i opt? are those figures crucial? thanx a lot =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 11:03:14 =CE=BF/=CE=B7 Ian = Smith =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On Tue, 5 Jul 2011, Achilleas Mantzios wrote: > > =FF=FF=FF=FF=FF=FF=FF=FF Tuesday 05 July 2011 16:10:59 =FF=FF=FF=FF=FF= =FF=FF=FF=FF=FF=FF=FF=FF=FF: > > > On Mon, 4 Jul 2011, Achilleas Mantzios wrote: > > >=20 > > > [snip] > > >=20 > > > > I was thinking of some relay board (instead of the old modem),=20 > > > > possibly ethernet controlled > > >=20 > > > This box has relays and GPIO available via ethernet. It's probably=20 > > > overkill for your application, but it's well made and easy to use: > > >=20 > > > http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 > > >=20 > >=20 > > That is too big for my application, thanx anyway. > > Most probably i'll go for something cheaper like this one=20 > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-C= ontrolled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&hash= =3Ditem19c6d9d2f8 >=20 > These look quite well designed and built to me, reasonably priced new,=20 > but check out the/a source site [1] for various models, 1- and 4-relay=20 > boards too, or if you prefer, RS-232 serial rather than USB interface=20 > for the 8-relay boards. There's also a simple parallel port to 8 TTL=20 > outputs board (hi Tim!) and various other stuff. I'm tempted myself. >=20 > [1] http://sigma-shop.com/category/4/relay-boards.html > [2] http://www.sigma-shop.com/page/12/manuals.html >=20 > > Could i use the ucom driver to talk to the USB device like a normal se= rial device, via /dev/cua*** ? > > The above link says one needs to talk to the relay with: > > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > > and the commands look like: > > FF 01 00 (HEX)=20 > > or=20 > > 255 1 0 (DEC) > >=20 > > could i be able to specify those over ucom?=20 >=20 > If so, great. If not and you have a serial port, the code will be the=20 > same anyway, except the port used. I grabbed most of the manuals from=20 > [2] and found the Linux software examples are all this one: >=20 > =3D=3D=3D=3D=3D=3D=3D > Linux : > The USB-serial device is automatically detected and mapped to /dev/ > ttyUSB0 (or USB1 in case there is already a similar device). > My test script: (Thanks Julian!) > -------------------------------------------------------- > # cat relay.sh > while true > do > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x00\x01" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > [..] > echo -e "\xFF\x01\x01" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x02\x01" > /dev/ttyUSB0 ; sleep .1 > [..] > echo -e "\xFF\x07\x01" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x08\x01" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x01\x00" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x02\x00" > /dev/ttyUSB0 ; sleep .1 > [..] > echo -e "\xFF\x07\x00" > /dev/ttyUSB0 ; sleep .1 > echo -e "\xFF\x08\x00" > /dev/ttyUSB0 ; sleep .1 > =3D=3D=3D=3D=3D=3D=3D >=20 > If using sh[1] you might need to use \0377 instead of \xFF >=20 > > do you know any application, perl library, utility or just a guide for= standard C serial port programming? >=20 > Anything that can write bytes to a serial port - perl's overqualified :) >=20 > [..] >=20 > cheers, Ian =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 12:12:30 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDF891065674; Wed, 6 Jul 2011 12:12:30 +0000 (UTC) (envelope-from dkline@libraryvideo.com) Received: from smtp.libraryvideo.com (mailguard.lvc.com [66.54.174.21]) by mx1.freebsd.org (Postfix) with ESMTP id 5B29F8FC1B; Wed, 6 Jul 2011 12:12:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.libraryvideo.com (Postfix) with ESMTP id BA0717EE03F; Wed, 6 Jul 2011 07:55:53 -0400 (EDT) Received: from smtp.libraryvideo.com ([127.0.0.1]) by localhost (smtp.libraryvideo.com [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 14776-03; Wed, 6 Jul 2011 07:55:51 -0400 (EDT) Received: from valkyrie.lvc.com (valkyrie.lvc.com [172.20.1.26]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.libraryvideo.com (Postfix) with ESMTPS id D980F7EE00F; Wed, 6 Jul 2011 07:55:50 -0400 (EDT) Received: from THOR.lvc.com ([fe80::dda4:1481:fd41:f3a]) by valkyrie.lvc.com ([fe80::716a:53e0:bf7d:632f%11]) with mapi id 14.01.0289.001; Wed, 6 Jul 2011 07:55:46 -0400 From: Dale Kline To: Achilleas Mantzios , Ian Smith Thread-Topic: FreeBSD and controlling an alarm via relay Thread-Index: AQHMOjkuqRM9d458e0G+dabNr+gbCJTd+JKAgAAWF4CAASZCAIAAHceA///bkHA= Date: Wed, 6 Jul 2011 11:55:45 +0000 Message-ID: <02F3A553C174554DA1D5EC7CEE9BDDD78DA1E4@THOR.lvc.com> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <20110706170845.Q84785@sola.nimnet.asn.au> <201107061249.49637.achill@matrix.gatewaynet.com> In-Reply-To: <201107061249.49637.achill@matrix.gatewaynet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.1.232] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Virus-Scanned: amavisd-maia at smtp.libraryvideo.com Cc: "freebsd-multimedia@freebsd.org" , Chris, Hill , "freebsd-hardware@freebsd.org" Subject: RE: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List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IgPiAvZGV2L3R0eVVTQjAgOyBzbGVlcCAuMQ0KPiA9 PT09PT09DQo+IA0KPiBJZiB1c2luZyBzaFsxXSB5b3UgbWlnaHQgbmVlZCB0byB1c2UgXDAzNzcg aW5zdGVhZCBvZiBceEZGDQo+IA0KPiAgPiBkbyB5b3Uga25vdyBhbnkgYXBwbGljYXRpb24sIHBl cmwgbGlicmFyeSwgdXRpbGl0eSBvciBqdXN0IGEgZ3VpZGUgZm9yIHN0YW5kYXJkIEMgc2VyaWFs IHBvcnQgcHJvZ3JhbW1pbmc/DQo+IA0KPiBBbnl0aGluZyB0aGF0IGNhbiB3cml0ZSBieXRlcyB0 byBhIHNlcmlhbCBwb3J0IC0gcGVybCdzIG92ZXJxdWFsaWZpZWQgOikNCj4gDQo+IFsuLl0NCj4g DQo+IGNoZWVycywgSWFuDQoNCg0KDQotLSANCkFjaGlsbGVhcyBNYW50emlvcw0KX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCmZyZWVic2QtaGFyZHdhcmVA ZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0DQpodHRwOi8vbGlzdHMuZnJlZWJzZC5vcmcvbWFpbG1h bi9saXN0aW5mby9mcmVlYnNkLWhhcmR3YXJlDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhbnkgbWFp bCB0byAiZnJlZWJzZC1oYXJkd2FyZS11bnN1YnNjcmliZUBmcmVlYnNkLm9yZyINCg== From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 12:21:27 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CE521065670; Wed, 6 Jul 2011 12:21:27 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id D0E478FC18; Wed, 6 Jul 2011 12:21:26 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p66CLOxo018804; Wed, 6 Jul 2011 15:21:24 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p66CLORk018803; Wed, 6 Jul 2011 15:21:24 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Dale Kline Date: Wed, 6 Jul 2011 15:21:24 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061249.49637.achill@matrix.gatewaynet.com> <02F3A553C174554DA1D5EC7CEE9BDDD78DA1E4@THOR.lvc.com> In-Reply-To: <02F3A553C174554DA1D5EC7CEE9BDDD78DA1E4@THOR.lvc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107061521.24690.achill@matrix.gatewaynet.com> Cc: "freebsd-multimedia@freebsd.org" , Chris Hill , Ian Smith , "freebsd-hardware@freebsd.org" Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 12:21:27 -0000 Hello, not quite. Here is the idea (which has roughly worked in the past but with "peculiar"-= exotic hardware (e.g. 14.4Kbps modem ) : 1) FreBSD server runs zoneminder.=20 2) A deamon polls zoneminder's sharedmem (IPC) to see if we have any kind o= f alert (motion detection) produced. (that means that we verify that some camera de= tected unwanted motion) 3) Upon motion detection within the above daemon a script is called which s= ets some bits in some relay board=20 4) this relay board closes a NO circuit or opens a NC circuit in MCT100 5) MCT100 talks directly to visonic powermax+ control panel and triggers a = burglar alarm I had the above idea working 2-3 years back, with the following differences= with regard to the above a) a http://www.visonic.com/Products/Wireless-Property-Protection/Door-wind= ow-contact-mct-302 door/window was used instead of the dedicated MCT-100 xmitter. MCT-302 had an additiona= l hard-wired input (NO/NC/EOL) which behaved like a distinct zone with its own xmitter, pretty much like the MCT-100 doe= s. Problem with that was that the battery=20 went off too early and also the contact was completely damaged/malfunctioni= ng in the end. That is why i opted for the more dedicated MCT-100 xmitter which is designed to do just that, (= as you said) sense for difference in current in the circuit and transimt an event to the powermax+ central panel. b) instead of a dedicated-specialized relay board, i was utilizing an old Z= yXel modem, which i had connected in series=20 with the MCT-302 NC circuit. Normally the ZyXel allowed for current to pass= through the circuit. when the zoneminder-polling daemon detected an unwanted motion detection it= run: vm shell -l cuad1 -S offhook_onhook.pl (vm comes with mgetty) where offhook_onhook.pl looked like: #!/usr/bin/perl # use Modem::Vgetty; my $v =3D new Modem::Vgetty; $v->device('DIALUP_LINE'); $v->send("ATH1"); sleep(2); $v->send("ATH0"); This=20 $v->send("ATH1"); sleep(2); $v->send("ATH0"); part seemed to do the trick just fine. Thing, is that i am thinking these days, of trying either to re-do the old = 1.23 zoneminder port for FreeBSD 8.2 or join bsam@freebsd.org, in his effort to have a fully functioning zonemin= der 1.24 port with local bktr camera support. Along with that, i want to get rid of the old "MCT-302/ZyXel model" way and= try something better and faster. That is the whole story, i hope i made it clear enough :) =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 14:55:45 =CE=BF/=CE=B7 Dale= Kline =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hi, > I guess I don't understand your application here. The Visonic is a batte= ry operated UHF remote alarm transmitter, that looks at a wired loop for a= change in condition (a door magnetic reed sensor, for example) and then it= transmits an alert to a remote Radio Receiver (MCR-304) if that door opens= or closes unexpectedly. The MCT100 has a three volt battery with an opera= ting life of 45 - 50 months according to the spec. It does not need a volt= age supply, nor would you want to turn it on and off during operation. > The Relay boards, on the other hand, are capable of turning on and off th= e four or eight relays from your computer commands. The relays are capable= of switching ANY AC or DC voltage, at a rated current (24 VDC OR 120 VAC @= 15 Amps and so on). The 5 volt @ 72ma rating is the voltage and current t= hat the board must supply to make the relay close. > The green terminal blocks then connect to a floodlight (for example) that= would turn ON after the UHF Receiver that is listening to the MCT100 Trans= mitter indicates that someone has opened or closed the door mentioned in th= e first paragraph. > Am I following what you want to do? > -----Original Message----- > From: owner-freebsd-hardware@freebsd.org [mailto:owner-freebsd-hardware@f= reebsd.org] On Behalf Of Achilleas Mantzios > Sent: Wednesday, July 06, 2011 5:50 AM > To: Ian Smith > Cc: freebsd-multimedia@freebsd.org; Chris Hill; freebsd-hardware@freebsd.= org > Subject: Re: FreeBSD and controlling an alarm via relay >=20 > another thing that puzzles me is power. > This board : http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS23= 2-Serial-Controlled-/110710333092?pt=3DUK_BOI_Electrical_Components_Supplie= s_ET&hash=3Ditem19c6d99ea4 > needs VDC 12V supply=20 > while this one : http://www.ebay.co.uk/itm/USB-Four-4-Relay-Module-Board-= Home-Automation-/180646300804?pt=3DLH_DefaultDomain_0&hash=3Ditem2a0f5bcc84 > is self powered from USB. >=20 > batteries do not come cheap, and having an extra AC/DC adaptor is not ver= y good either ... >=20 > another thing is the relay parameters, i see various figures : > Relay parameters: 5V / 72mA, 15A/24VDC (120VAC), 10A/250VAC or > Each switch 12VDC/15A or 240VAC/10A or > Open (No) and Closed (NC) Contacts rated for voltages: 12VDC/15A; 24VDC/1= 5A; 125VAC/15A; 250VAC/10A >=20 > my specific application i want to drive is this wireless xmitter : > http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE224= 1U.pdf > Should i assume my device that i want my relay to control will have volta= ge of 3V? >=20 > for which Voltage/Ampere figures should i opt? are those figures crucial? >=20 > thanx a lot >=20 > =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 11:03:14 =CE=BF/=CE=B7 Ia= n Smith =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > > On Tue, 5 Jul 2011, Achilleas Mantzios wrote: > > > =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD Tuesday 05 July 2011 16:10:59 =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD: > > > > On Mon, 4 Jul 2011, Achilleas Mantzios wrote: > > > >=20 > > > > [snip] > > > >=20 > > > > > I was thinking of some relay board (instead of the old modem),=20 > > > > > possibly ethernet controlled > > > >=20 > > > > This box has relays and GPIO available via ethernet. It's probably= =20 > > > > overkill for your application, but it's well made and easy to use: > > > >=20 > > > > http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 > > > >=20 > > >=20 > > > That is too big for my application, thanx anyway. > > > Most probably i'll go for something cheaper like this one=20 > > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial= =2DControlled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&h= ash=3Ditem19c6d9d2f8 > >=20 > > These look quite well designed and built to me, reasonably priced new,= =20 > > but check out the/a source site [1] for various models, 1- and 4-relay= =20 > > boards too, or if you prefer, RS-232 serial rather than USB interface=20 > > for the 8-relay boards. There's also a simple parallel port to 8 TTL=20 > > outputs board (hi Tim!) and various other stuff. I'm tempted myself. > >=20 > > [1] http://sigma-shop.com/category/4/relay-boards.html > > [2] http://www.sigma-shop.com/page/12/manuals.html > >=20 > > > Could i use the ucom driver to talk to the USB device like a normal = serial device, via /dev/cua*** ? > > > The above link says one needs to talk to the relay with: > > > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > > > and the commands look like: > > > FF 01 00 (HEX)=20 > > > or=20 > > > 255 1 0 (DEC) > > >=20 > > > could i be able to specify those over ucom?=20 > >=20 > > If so, great. If not and you have a serial port, the code will be the= =20 > > same anyway, except the port used. I grabbed most of the manuals from= =20 > > [2] and found the Linux software examples are all this one: > >=20 > > =3D=3D=3D=3D=3D=3D=3D > > Linux : > > The USB-serial device is automatically detected and mapped to /dev/ > > ttyUSB0 (or USB1 in case there is already a similar device). > > My test script: (Thanks Julian!) > > -------------------------------------------------------- > > # cat relay.sh > > while true > > do > > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x00\x01" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > > [..] > > echo -e "\xFF\x01\x01" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x02\x01" > /dev/ttyUSB0 ; sleep .1 > > [..] > > echo -e "\xFF\x07\x01" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x08\x01" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x01\x00" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x02\x00" > /dev/ttyUSB0 ; sleep .1 > > [..] > > echo -e "\xFF\x07\x00" > /dev/ttyUSB0 ; sleep .1 > > echo -e "\xFF\x08\x00" > /dev/ttyUSB0 ; sleep .1 > > =3D=3D=3D=3D=3D=3D=3D > >=20 > > If using sh[1] you might need to use \0377 instead of \xFF > >=20 > > > do you know any application, perl library, utility or just a guide f= or standard C serial port programming? > >=20 > > Anything that can write bytes to a serial port - perl's overqualified :) > >=20 > > [..] > >=20 > > cheers, Ian >=20 >=20 >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 12:34:35 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44EB71065672; Wed, 6 Jul 2011 12:34:35 +0000 (UTC) (envelope-from dkline@libraryvideo.com) Received: from smtp.libraryvideo.com (mailguard.lvc.com [66.54.174.21]) by mx1.freebsd.org (Postfix) with ESMTP id E13428FC14; Wed, 6 Jul 2011 12:34:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.libraryvideo.com (Postfix) with ESMTP id 5204C7EE0CB; Wed, 6 Jul 2011 08:34:38 -0400 (EDT) Received: from smtp.libraryvideo.com ([127.0.0.1]) by localhost (smtp.libraryvideo.com [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 16828-08; Wed, 6 Jul 2011 08:34:35 -0400 (EDT) Received: from valkyrie.lvc.com (valkyrie.lvc.com [172.20.1.26]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.libraryvideo.com (Postfix) with ESMTPS id C261F7EE014; Wed, 6 Jul 2011 08:34:35 -0400 (EDT) Received: from THOR.lvc.com ([fe80::dda4:1481:fd41:f3a]) by valkyrie.lvc.com ([fe80::716a:53e0:bf7d:632f%11]) with mapi id 14.01.0289.001; Wed, 6 Jul 2011 08:34:31 -0400 From: Dale Kline To: Achilleas Mantzios Thread-Topic: FreeBSD and controlling an alarm via relay Thread-Index: AQHMOjkuqRM9d458e0G+dabNr+gbCJTd+JKAgAAWF4CAASZCAIAAHceA///bkHCAAE7KAP//vXhw Date: Wed, 6 Jul 2011 12:34:30 +0000 Message-ID: <02F3A553C174554DA1D5EC7CEE9BDDD78DA245@THOR.lvc.com> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061249.49637.achill@matrix.gatewaynet.com> <02F3A553C174554DA1D5EC7CEE9BDDD78DA1E4@THOR.lvc.com> <201107061521.24690.achill@matrix.gatewaynet.com> In-Reply-To: <201107061521.24690.achill@matrix.gatewaynet.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.1.232] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Virus-Scanned: amavisd-maia at smtp.libraryvideo.com Cc: "freebsd-multimedia@freebsd.org" , Chris, Hill , Ian Smith , "freebsd-hardware@freebsd.org" Subject: RE: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 12:34:35 -0000 T0sgIC0gbm93IEkgdW5kZXJzdGFuZC4gIFRoZSByZWxheSBkcml2ZW4gYnkgdGhlIGNvbXB1dGVy IGlzIGEgdmVyeSBzbWFydCAic3dpdGNoIiB3aGljaCBjaGFuZ2VzIHRoZSBjb25kaXRpb24gb2Yg dGhlIE1DVC0xMDAgbG9vcCwgIGFuZCBjYXVzZXMgdGhlIFRyYW5zbWl0dGVyIHRvIHNlbmQgYSBz aWduYWwgdG8gYW5vdGhlciBSZWNlaXZlci4gIFNvIGlmIHlvdSB3aXJlIHRoZSByZWxheSBjb25u ZWN0b3IgYmxvY2sgdG8gdGhlIE1DVC0xMDAgbG9vcCBpbnB1dCwgaXQgd2lsbCB3b3JrIGZpbmUu ICBUaGF0IHBhcnQgaXMgc3RyYWlnaHRmb3J3YXJkLiBJIGNvdWxkIG5vdCB0ZWxsIGlmIHRoZSBN Q1QtMTAwIGlzIGN1cnJlbnQgb3Igdm9sdGFnZSBkcml2ZW4sICBidXQgaXQgd2lsbCB3b3JrIHdp dGggdGhlIHJlbGF5IGVpdGhlciB3YXkuDQpJJ20gbm90IGZhbWlsaWFyIHdpdGggdGhlIHpvbmVt aW5kZXIuICBJJ2xsIGhhdmUgdG8gbG9vayBpbnRvIHRoYXQuICBJIHdhbnRlZCB0byBkbyBzb21l IG9mIHRoYXQgYXQgaG9tZSB0byBsZXQgbWUga25vdyB3aGVuIHNvbWVvbmUgZHJpdmVzIGludG8g b3VyIGRyaXZld2F5Lg0KQlRXLCAgSSBhbSBhIGhhcmR3YXJlIHBlcnNvbiAtIHNvbGRlcmluZyBp cm9uI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dHlVU0IwIDsgc2xlZXAgLjENCj4gPiBbLi5dDQo+ID4gZWNobyAtZSAiXHhGRlx4MDdceDAwIiA+ IC9kZXYvdHR5VVNCMCA7IHNsZWVwIC4xDQo+ID4gZWNobyAtZSAiXHhGRlx4MDhceDAwIiA+IC9k ZXYvdHR5VVNCMCA7IHNsZWVwIC4xDQo+ID4gPT09PT09PQ0KPiA+IA0KPiA+IElmIHVzaW5nIHNo WzFdIHlvdSBtaWdodCBuZWVkIHRvIHVzZSBcMDM3NyBpbnN0ZWFkIG9mIFx4RkYNCj4gPiANCj4g PiAgPiBkbyB5b3Uga25vdyBhbnkgYXBwbGljYXRpb24sIHBlcmwgbGlicmFyeSwgdXRpbGl0eSBv ciBqdXN0IGEgZ3VpZGUgZm9yIHN0YW5kYXJkIEMgc2VyaWFsIHBvcnQgcHJvZ3JhbW1pbmc/DQo+ ID4gDQo+ID4gQW55dGhpbmcgdGhhdCBjYW4gd3JpdGUgYnl0ZXMgdG8gYSBzZXJpYWwgcG9ydCAt IHBlcmwncyBvdmVycXVhbGlmaWVkIDopDQo+ID4gDQo+ID4gWy4uXQ0KPiA+IA0KPiA+IGNoZWVy cywgSWFuDQo+IA0KPiANCj4gDQoNCg0KDQotLSANCkFjaGlsbGVhcyBNYW50emlvcw0KX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCmZyZWVic2QtaGFyZHdh cmVAZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0DQpodHRwOi8vbGlzdHMuZnJlZWJzZC5vcmcvbWFp bG1hbi9saXN0aW5mby9mcmVlYnNkLWhhcmR3YXJlDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhbnkg bWFpbCB0byAiZnJlZWJzZC1oYXJkd2FyZS11bnN1YnNjcmliZUBmcmVlYnNkLm9yZyINCg== From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 12:40:11 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92933106566C for ; Wed, 6 Jul 2011 12:40:11 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id AC6F88FC08 for ; Wed, 6 Jul 2011 12:40:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p66Ce8Iw026609; Wed, 6 Jul 2011 22:40:08 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Wed, 6 Jul 2011 22:40:08 +1000 (EST) From: Ian Smith To: Achilleas Mantzios In-Reply-To: <201107061249.49637.achill@matrix.gatewaynet.com> Message-ID: <20110706212809.O84785@sola.nimnet.asn.au> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <20110706170845.Q84785@sola.nimnet.asn.au> <201107061249.49637.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Chris Hill , freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 12:40:11 -0000 Hi Achilleas, Dropping multimedia@ cc as this seems pretty well 100% hardware .. but I'm not subscribed to hardware@ so please cc me from there. On Wed, 6 Jul 2011, Achilleas Mantzios wrote: > another thing that puzzles me is power. > This board : http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Serial-Controlled-/110710333092?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19c6d99ea4 > needs VDC 12V supply > while this one : http://www.ebay.co.uk/itm/USB-Four-4-Relay-Module-Board-Home-Automation-/180646300804?pt=LH_DefaultDomain_0&hash=item2a0f5bcc84 > is self powered from USB. > > batteries do not come cheap, and having an extra AC/DC adaptor is not very good either ... That 4-relay one might better suit your application then, if FreeBSD usb recognises it. It seems to use the same (FTDI?) drivers under windows as the other one, but I know almost nought about USB device detection. > another thing is the relay parameters, i see various figures : > Relay parameters: 5V / 72mA, 15A/24VDC (120VAC), 10A/250VAC or > Each switch 12VDC/15A or 240VAC/10A or > Open (No) and Closed (NC) Contacts rated for voltages: 12VDC/15A; 24VDC/15A; 125VAC/15A; 250VAC/10A > > my specific application i want to drive is this wireless xmitter : > http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE2241U.pdf > Should i assume my device that i want my relay to control will have voltage of 3V? > > for which Voltage/Ampere figures should i opt? are those figures crucial? 5V / 72mA is the relay solenoid drive current. 4 of these switched on would use ~300mA, leaving 100mA for the other board circuitry. The 12V board's relays use the same drive power, 360mW, ie 12V @ 30mA. The relay switched contacts are rated at 12VDC to 15A (180W) or 240VAC to 10A (2.4kW!), whereas your MCT 100 is only watching for NC contacts to open; closed circuit current will be a few mA at most and you won't see more than 5V over the open contacts .. ie, not an issue. > thanx a lot A pleasure. cheers, Ian From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 12:41:53 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE6AA106566B; Wed, 6 Jul 2011 12:41:53 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id 9D9128FC0A; Wed, 6 Jul 2011 12:41:52 +0000 (UTC) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p66Cfpa0019075; Wed, 6 Jul 2011 15:41:51 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p66CfplF019074; Wed, 6 Jul 2011 15:41:51 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Dale Kline Date: Wed, 6 Jul 2011 15:41:50 +0300 User-Agent: KMail/1.9.7 References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061521.24690.achill@matrix.gatewaynet.com> <02F3A553C174554DA1D5EC7CEE9BDDD78DA245@THOR.lvc.com> In-Reply-To: <02F3A553C174554DA1D5EC7CEE9BDDD78DA245@THOR.lvc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201107061541.51168.achill@matrix.gatewaynet.com> Cc: "freebsd-multimedia@freebsd.org" , Chris Hill , Ian Smith , "freebsd-hardware@freebsd.org" Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 12:41:53 -0000 Cool man, thanx a lot, you and all the guys who answered were really really= helpful. =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 15:34:30 =CE=BF/=CE=B7 Dale= Kline =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > OK - now I understand. The relay driven by the computer is a very smart= "switch" which changes the condition of the MCT-100 loop, and causes the = Transmitter to send a signal to another Receiver. So if you wire the relay= connector block to the MCT-100 loop input, it will work fine. That part i= s straightforward. I could not tell if the MCT-100 is current or voltage dr= iven, but it will work with the relay either way. > I'm not familiar with the zoneminder. I'll have to look into that. I wa= nted to do some of that at home to let me know when someone drives into our= driveway. > BTW, I am a hardware person - soldering iron and that stuff. This softw= are is a challenge that I am trying to learn. I am one very small step abo= ve absolute beginner with this FreeBSD code. But volts and amps and ohms,= that I understand. :-) >=20 > -----Original Message----- > From: owner-freebsd-hardware@freebsd.org [mailto:owner-freebsd-hardware@f= reebsd.org] On Behalf Of Achilleas Mantzios > Sent: Wednesday, July 06, 2011 8:21 AM > To: Dale Kline > Cc: freebsd-multimedia@freebsd.org; Chris Hill; Ian Smith; freebsd-hardwa= re@freebsd.org > Subject: Re: FreeBSD and controlling an alarm via relay >=20 > Hello, not quite. > Here is the idea (which has roughly worked in the past but with "peculiar= "-exotic hardware (e.g. 14.4Kbps modem ) : > 1) FreBSD server runs zoneminder.=20 > 2) A deamon polls zoneminder's sharedmem (IPC) to see if we have any kind= of alert > (motion detection) produced. (that means that we verify that some camera = detected unwanted motion) > 3) Upon motion detection within the above daemon a script is called which= sets some bits in some relay board=20 > 4) this relay board closes a NO circuit or opens a NC circuit in MCT100 > 5) MCT100 talks directly to visonic powermax+ control panel and triggers = a burglar alarm >=20 > I had the above idea working 2-3 years back, with the following differenc= es with regard to the above > a) a http://www.visonic.com/Products/Wireless-Property-Protection/Door-wi= ndow-contact-mct-302 door/window > was used instead of the dedicated MCT-100 xmitter. MCT-302 had an additio= nal hard-wired input (NO/NC/EOL) which behaved > like a distinct zone with its own xmitter, pretty much like the MCT-100 d= oes. Problem with that was that the battery=20 > went off too early and also the contact was completely damaged/malfunctio= ning in the end. That is why i opted > for the more dedicated MCT-100 xmitter which is designed to do just that,= (as you said) sense for difference in current > in the circuit and transimt an event to the powermax+ central panel. >=20 > b) instead of a dedicated-specialized relay board, i was utilizing an old= ZyXel modem, which i had connected in series=20 > with the MCT-302 NC circuit. Normally the ZyXel allowed for current to pa= ss through the circuit. > when the zoneminder-polling daemon detected an unwanted motion detection = it run: > vm shell -l cuad1 -S offhook_onhook.pl > (vm comes with mgetty) > where offhook_onhook.pl looked like: > #!/usr/bin/perl > # > use Modem::Vgetty; >=20 > my $v =3D new Modem::Vgetty; >=20 > $v->device('DIALUP_LINE'); > $v->send("ATH1"); > sleep(2); > $v->send("ATH0"); >=20 > This=20 > $v->send("ATH1"); > sleep(2); > $v->send("ATH0"); > part seemed to do the trick just fine. >=20 > Thing, is that i am thinking these days, of trying either to re-do the ol= d 1.23 zoneminder port for FreeBSD 8.2 > or join bsam@freebsd.org, in his effort to have a fully functioning zonem= inder 1.24 port with local bktr camera support. > Along with that, i want to get rid of the old "MCT-302/ZyXel model" way a= nd try something better and faster. >=20 > That is the whole story, i hope i made it clear enough :) >=20 > =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 14:55:45 =CE=BF/=CE=B7 Da= le Kline =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > > Hi, > > I guess I don't understand your application here. The Visonic is a bat= tery operated UHF remote alarm transmitter, that looks at a wired loop for= a change in condition (a door magnetic reed sensor, for example) and then = it transmits an alert to a remote Radio Receiver (MCR-304) if that door ope= ns or closes unexpectedly. The MCT100 has a three volt battery with an ope= rating life of 45 - 50 months according to the spec. It does not need a vo= ltage supply, nor would you want to turn it on and off during operation. > > The Relay boards, on the other hand, are capable of turning on and off = the four or eight relays from your computer commands. The relays are capab= le of switching ANY AC or DC voltage, at a rated current (24 VDC OR 120 VAC= @ 15 Amps and so on). The 5 volt @ 72ma rating is the voltage and current= that the board must supply to make the relay close. > > The green terminal blocks then connect to a floodlight (for example) th= at would turn ON after the UHF Receiver that is listening to the MCT100 Tra= nsmitter indicates that someone has opened or closed the door mentioned in = the first paragraph. > > Am I following what you want to do? > > -----Original Message----- > > From: owner-freebsd-hardware@freebsd.org [mailto:owner-freebsd-hardware= @freebsd.org] On Behalf Of Achilleas Mantzios > > Sent: Wednesday, July 06, 2011 5:50 AM > > To: Ian Smith > > Cc: freebsd-multimedia@freebsd.org; Chris Hill; freebsd-hardware@freebs= d.org > > Subject: Re: FreeBSD and controlling an alarm via relay > >=20 > > another thing that puzzles me is power. > > This board : http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS= 232-Serial-Controlled-/110710333092?pt=3DUK_BOI_Electrical_Components_Suppl= ies_ET&hash=3Ditem19c6d99ea4 > > needs VDC 12V supply=20 > > while this one : http://www.ebay.co.uk/itm/USB-Four-4-Relay-Module-Boar= d-Home-Automation-/180646300804?pt=3DLH_DefaultDomain_0&hash=3Ditem2a0f5bcc= 84 > > is self powered from USB. > >=20 > > batteries do not come cheap, and having an extra AC/DC adaptor is not v= ery good either ... > >=20 > > another thing is the relay parameters, i see various figures : > > Relay parameters: 5V / 72mA, 15A/24VDC (120VAC), 10A/250VAC or > > Each switch 12VDC/15A or 240VAC/10A or > > Open (No) and Closed (NC) Contacts rated for voltages: 12VDC/15A; 24VDC= /15A; 125VAC/15A; 250VAC/10A > >=20 > > my specific application i want to drive is this wireless xmitter : > > http://www.visonic.com/Data/Uploads/MCT_100_Installer_Guide_English_DE2= 241U.pdf > > Should i assume my device that i want my relay to control will have vol= tage of 3V? > >=20 > > for which Voltage/Ampere figures should i opt? are those figures crucia= l? > >=20 > > thanx a lot > >=20 > > =CE=A3=CF=84=CE=B9=CF=82 Wednesday 06 July 2011 11:03:14 =CE=BF/=CE=B7 = Ian Smith =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > > > On Tue, 5 Jul 2011, Achilleas Mantzios wrote: > > > > =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD Tuesday 05 July 2011 16:10:59 =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD: > > > > > On Mon, 4 Jul 2011, Achilleas Mantzios wrote: > > > > >=20 > > > > > [snip] > > > > >=20 > > > > > > I was thinking of some relay board (instead of the old modem),= =20 > > > > > > possibly ethernet controlled > > > > >=20 > > > > > This box has relays and GPIO available via ethernet. It's probab= ly=20 > > > > > overkill for your application, but it's well made and easy to us= e: > > > > >=20 > > > > > http://www.extron.com/product/product.aspx?id=3Dipltcr48&s=3D0 > > > > >=20 > > > >=20 > > > > That is too big for my application, thanx anyway. > > > > Most probably i'll go for something cheaper like this one=20 > > > > http://www.ebay.co.uk/itm/USB-Eight-Channel-Relay-Board-RS232-Seri= al-Controlled-/110710346488?pt=3DUK_BOI_Electrical_Components_Supplies_ET&h= ash=3Ditem19c6d9d2f8 > > >=20 > > > These look quite well designed and built to me, reasonably priced new= ,=20 > > > but check out the/a source site [1] for various models, 1- and 4-rela= y=20 > > > boards too, or if you prefer, RS-232 serial rather than USB interface= =20 > > > for the 8-relay boards. There's also a simple parallel port to 8 TTL= =20 > > > outputs board (hi Tim!) and various other stuff. I'm tempted myself. > > >=20 > > > [1] http://sigma-shop.com/category/4/relay-boards.html > > > [2] http://www.sigma-shop.com/page/12/manuals.html > > >=20 > > > > Could i use the ucom driver to talk to the USB device like a norma= l serial device, via /dev/cua*** ? > > > > The above link says one needs to talk to the relay with: > > > > 8 Data, 1 Stop, No Parity,Baud rate : 9600 > > > > and the commands look like: > > > > FF 01 00 (HEX)=20 > > > > or=20 > > > > 255 1 0 (DEC) > > > >=20 > > > > could i be able to specify those over ucom?=20 > > >=20 > > > If so, great. If not and you have a serial port, the code will be th= e=20 > > > same anyway, except the port used. I grabbed most of the manuals fro= m=20 > > > [2] and found the Linux software examples are all this one: > > >=20 > > > =3D=3D=3D=3D=3D=3D=3D > > > Linux : > > > The USB-serial device is automatically detected and mapped to /dev/ > > > ttyUSB0 (or USB1 in case there is already a similar device). > > > My test script: (Thanks Julian!) > > > -------------------------------------------------------- > > > # cat relay.sh > > > while true > > > do > > > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x00\x01" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x00\x00" > /dev/ttyUSB0 ; sleep .1 > > > [..] > > > echo -e "\xFF\x01\x01" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x02\x01" > /dev/ttyUSB0 ; sleep .1 > > > [..] > > > echo -e "\xFF\x07\x01" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x08\x01" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x01\x00" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x02\x00" > /dev/ttyUSB0 ; sleep .1 > > > [..] > > > echo -e "\xFF\x07\x00" > /dev/ttyUSB0 ; sleep .1 > > > echo -e "\xFF\x08\x00" > /dev/ttyUSB0 ; sleep .1 > > > =3D=3D=3D=3D=3D=3D=3D > > >=20 > > > If using sh[1] you might need to use \0377 instead of \xFF > > >=20 > > > > do you know any application, perl library, utility or just a guide= for standard C serial port programming? > > >=20 > > > Anything that can write bytes to a serial port - perl's overqualified= :) > > >=20 > > > [..] > > >=20 > > > cheers, Ian > >=20 > >=20 > >=20 >=20 >=20 >=20 =2D-=20 Achilleas Mantzios From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 6 15:34:04 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1A741065674; Wed, 6 Jul 2011 15:34:04 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 8BDA28FC20; Wed, 6 Jul 2011 15:34:04 +0000 (UTC) Received: from gate.ipt.ru ([194.62.233.123] helo=h30.sp.ipt.ru) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1QeU71-000N0u-8A; Wed, 06 Jul 2011 19:34:03 +0400 From: Boris Samorodov To: Achilleas Mantzios References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107051730.03784.achill@matrix.gatewaynet.com> <03644739@h30.sp.ipt.ru> <201107061007.40884.achill@matrix.gatewaynet.com> Date: Wed, 06 Jul 2011 19:34:02 +0400 In-Reply-To: <201107061007.40884.achill@matrix.gatewaynet.com> (Achilleas Mantzios's message of "Wed, 6 Jul 2011 10:07:40 +0300") Message-ID: <69719445@h30.sp.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 15:34:04 -0000 Hi All, On Wed, 6 Jul 2011 10:07:40 +0300 Achilleas Mantzios wrote: > Hey, its a small world! > i am the other guy (achix) from the zoneminder camp :) Glad to see you here. [...] > Is there any big probability for the chip to not be on of those that > FreeBSD supports (uark, uftdi, etc..) ? I think that it'a big probability that the chip is supported. > most sellers hardly give such info out. You may load a manual and look at drivers that are mentiond there. Some words like ftd or prolific may provide some light. -- WBR, bsam From owner-freebsd-hardware@FreeBSD.ORG Thu Jul 7 04:37:04 2011 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C9D7106566C for ; Thu, 7 Jul 2011 04:37:04 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 010A38FC0C for ; Thu, 7 Jul 2011 04:37:03 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p674b2Yi059528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 6 Jul 2011 21:37:02 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p674b1Yl059526 for freebsd-hardware@freebsd.org; Wed, 6 Jul 2011 21:37:01 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA22753; Wed, 6 Jul 11 21:35:29 PDT Date: Wed, 06 Jul 2011 21:35:22 -0700 From: perryh@pluto.rain.com To: freebsd-hardware@freebsd.org Message-Id: <4e15378a.FzdckfPKoy0B4rU6%perryh@pluto.rain.com> References: <4e082cfb.RsTdPgXYWUCS9sX7%perryh@pluto.rain.com> In-Reply-To: <4e082cfb.RsTdPgXYWUCS9sX7%perryh@pluto.rain.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: VIA VT6421 w/a (Re: UDMA cables vs speeds) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 04:37:04 -0000 This is for the archives. The original posting is here: http://lists.freebsd.org/pipermail/freebsd-hardware/2011-June/006704.html > Should an 80-wire Ultra-ATA data cable intended for use at UDMA66 > or UDMA100 also work at UDMA133, or does the higher speed require > different cabling? Answer: as nearly as I've been able to determine, there are only two kinds of PATA data cables: the original 40-wire variety that work for PIO and for UDMA33, and the newer 80-wire variety that should work for all modes. > ... I've been experiencing occasional UDMA ICRC errors on the > IDE port of a PCI SATA/IDE controller card using the VIA VT6421 > chipset, and I've noticed that "atacontrol mode" reports the > port speed as UDMA133. The data cable is brand new ... > I've found several similar reports in the forum and mailing-list > archives, with no definitive solution but quite a few "it works > for me" responses, and one observation that the VT6421 seems to > work well with some drives and not so well with others. It occurs > to me that the difference might, perhaps, involve the DMA speeds DMA speed definitely seems to be a factor. The errors seem to have been completely eliminated after I used atacontrol mode ad8 UDMA100 to limit the maximum transfer rate. Throttling the DMA speed is not an ideal solution, and I still have no clue _why_ it doesn't work reliably at UDMA133, but this does seem to have gotten around the problem.