From owner-freebsd-questions@FreeBSD.ORG Mon Oct 13 14:11:12 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EB91981 for ; Mon, 13 Oct 2014 14:11:12 +0000 (UTC) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA77D991 for ; Mon, 13 Oct 2014 14:11:11 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id w7so6465298lbi.23 for ; Mon, 13 Oct 2014 07:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=na+DymHR9b0OcLfkwvENZTmLNA0L5iopqWYIfO5f1HA=; b=vulyg+XIFfo1oaydwHlKNPTONswsyyPSZIjWa2y2q1YfoMZcegIrPLGsaoA19bL9tt l/rURYJeoWLlHTLU8KyXsq/ChaB1xCVG1dELPvphtZrE9O+a96yvsOFLftSW9n9lfLR0 CSWjenGt74QNg75wBCs4/ndywnUb2Khb0Q5suAk6h9OunyxmCPCPLsGOjODLh9c2D4Ui Hc76njyTIDGZ7zAjvyz3THixt2gzpf3I3fBZk9ZUvMvtm7vAYITb/Ye6uTodMo0v/Clv 7g2Z7QXwGeY4J2d87yISuSOxJqti9RODZKYO2SZs7zYe8aFvMX2IYGqJj764t93d2x5t hegA== MIME-Version: 1.0 X-Received: by 10.152.42.194 with SMTP id q2mr24478959lal.75.1413209468828; Mon, 13 Oct 2014 07:11:08 -0700 (PDT) Received: by 10.25.136.65 with HTTP; Mon, 13 Oct 2014 07:11:08 -0700 (PDT) In-Reply-To: <543B5FB2.6050300@sliderule.demon.co.uk> References: <543B5FB2.6050300@sliderule.demon.co.uk> Date: Mon, 13 Oct 2014 07:11:08 -0700 Message-ID: Subject: Re: RFID tag read/write on FreeBSD From: Waitman Gobble To: Steve Burton Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2014 14:11:12 -0000 On Sun, Oct 12, 2014 at 10:14 PM, Steve Burton wrote: > On 13/10/2014 04:45, Waitman Gobble wrote: > >> On Sun, Oct 12, 2014 at 5:05 PM, Waitman Gobble >> wrote: >> >> Hi, >>> >>> If you are wanting to read and write RFID tags (for like tracking people, >>> and stuff) on FreeBSD I am working on software based on the Impinj R2000 >>> chipset. The SDK/demos are in c# / .NET, which runs in 'mono' but the >>> mono >>> people have apparently omitted the code for serial port callback >>> functions >>> so it basically sits there.. which is useless IMHO. So it looked to me >>> like >>> more work to make the code do what i need it to, at least in my >>> application, instead of starting from scratch. >>> >>> Anyhow at the moment it's performing basic functions and reading tags.. >>> writing tags soon. >>> >>> ie, >>> >>> # ./rfid >>> Connected to /dev/cuaU0 at 115200 baud. >>> RFID read/write tags >>> Control-C or Q to quit, >>> R to Read Tag >>> >>> Received Command: 72 >>> Firmware Version: 1.9 >>> r >>> Received Command: 81 >>> Tag: [pc 30 0] [epc e2 0 57 76 76 6 1 52 5 90 d7 5f] [crc 7f 6] [data e2 >>> 0 >>> 57 76] [ant 1] [cnt 1] >>> >>> It's free. >>> >>> https://github.com/waitman/rfid >>> >>> builds with clang but needs boost port. i presume it may work with the >>> RS500, R500 or R1000 chips but I've not any of those to test. >>> >>> -- >>> Waitman Gobble >>> Los Altos California USA >>> 510-830-7975 >>> >>> >> Update, writing tags now works. >> >> Also tested on PR9200 chip, Phychips. Which is apparently optimized for >> "Fast Moving Consumer Goods". so if you want to track those kinds of >> things >> instead of people. After I talked to some people I now understand the >> protocol is mostly standardized so it might be good to turn this into a >> port, since it should theoretically work with all the modern RFID >> chipsets. And "AFAIK" RFID tag stuff has been limited to MS OS computers. >> >> >> >> # ./rfid >> Connected to /dev/cuaU0 at 115200 baud. >> RFID read/write tags >> Control-C or Q to quit, >> R to Read Tag >> W to Write Tag >> >> Received Command: 72 >> Firmware Version: 1.9 >> r >> Received Command: 81 >> Tag: [pc 30 0] [epc 11 22 33 44 76 6 1 52 5 90 d7 5f] [crc 8a 6] [data 11 >> 22 33 44] [ant 1] [cnt 1] >> w >> Write Tag. Now enter data on one line. Four bytes separated by SPACEs. >> Example: 11 22 33 44 >> 55 77 88 33 >> Received Command: 82 >> Tag Write Operation Complete. Read Tag to confirm data. >> r >> Received Command: 81 >> Tag: [pc 30 0] [epc 55 77 88 33 76 6 1 52 5 90 d7 5f] [crc 6a 2f] [data 55 >> 77 88 33] [ant 1] [cnt 1] >> q >> >> >> Note: >> >> At the moment it's hard-coded for 4 data bytes in EPC. This can be >> adjusted >> in the code, eventually may be entered as command. >> >> >> For what it's worth, RFID tag stuff is also available for MCU's (Arduino > etc.). > > Steve. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > Hi Steve, Yes I've seen some products available, however they don't seem to fit my application. I need about a coverage area of 7 meter by 2 meter range, the MCU devices Ive found online seem more geared toward close contact (in centimeter ranges) like ID cards / key fobs / badges etc. Also I need to scan hundreds of tags within seconds. But I'm no expert, I'm learning. I haven't been lucky in finding open source software for the task. -- Waitman Gobble Los Altos California USA 510-830-7975