Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Fri, 2 Oct 2020 13:47:22 -0700 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 092KaagZ002750; Fri, 2 Oct 2020 16:36:49 -0400 Received: from outgoing-exchange-1.mit.edu (OUTGOING-EXCHANGE-1.MIT.EDU [18.9.28.15]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 092KaZ1M002747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 2 Oct 2020 16:36:35 -0400 Received: from oc11exedge1.exchange.mit.edu (OC11EXEDGE1.EXCHANGE.MIT.EDU [18.9.3.17]) by outgoing-exchange-1.mit.edu (8.14.7/8.12.4) with ESMTP id 092KaY6W011213 for ; Fri, 2 Oct 2020 16:36:35 -0400 Received: from w92exhyb1.exchange.mit.edu (18.7.71.12) by oc11exedge1.exchange.mit.edu (18.9.3.17) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 2 Oct 2020 16:35:51 -0400 Received: from oc11exhyb1.exchange.mit.edu (18.9.1.60) by w92exhyb1.exchange.mit.edu (18.7.71.12) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 2 Oct 2020 16:36:34 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by oc11exhyb1.exchange.mit.edu (18.9.1.60) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Fri, 2 Oct 2020 16:36:34 -0400 Received: from DM5PR12CA0066.namprd12.prod.outlook.com (2603:10b6:3:103::28) by MN2PR01MB5614.prod.exchangelabs.com (2603:10b6:208:11e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Fri, 2 Oct 2020 20:36:32 +0000 Received: from DM3NAM03FT053.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:103:cafe::d1) by DM5PR12CA0066.outlook.office365.com (2603:10b6:3:103::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Fri, 2 Oct 2020 20:36:32 +0000 Received: from mailscanner.virtbiz.com (208.80.15.114) by DM3NAM03FT053.mail.protection.outlook.com (10.152.83.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.34 via Frontend Transport; Fri, 2 Oct 2020 20:36:31 +0000 Received: from s18855546.onlinehome-server.com (s18855546.onlinehome-server.com [74.208.193.200]) by mailscanner.virtbiz.com (8.14.7/8.14.7) with ESMTP id 092KaOwN024374 for ; Fri, 2 Oct 2020 15:36:26 -0500 Received: from mai.hallikainen.org (localhost [127.0.0.1]) by s18855546.onlinehome-server.com (8.14.4/8.14.4) with ESMTP id 092KaO9l008437 for ; Fri, 2 Oct 2020 13:36:24 -0700 Received: (from apache@localhost) by mai.hallikainen.org (8.14.4/8.14.4/Submit) id 092KaOas008434; Fri, 2 Oct 2020 13:36:24 -0700 Received: from 184.96.231.126 (SquirrelMail authenticated user harold) by mai.hallikainen.org with HTTP; Fri, 2 Oct 2020 13:36:23 -0700 From: Harold Hallikainen To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Fri, 2 Oct 2020 13:36:23 -0700 Subject: Re: [EE] RS-485 analyzer/sniffer? Thread-Topic: [EE] RS-485 analyzer/sniffer? Thread-Index: AdaY/Trov/UY+Ja2SUi3jU1Ccx1nDA== Message-ID: References: <5F7619A5.1030407@narwani.org> <5F762F17.2080803@narwani.org> <024701d69831$71ddd070$55997150$@gmail.com> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: TempError X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: Pass (protection.outlook.com: domain of mai.hallikainen.org designates 208.80.15.114 as permitted sender) receiver=protection.outlook.com; client-ip=208.80.15.114; helo=mailscanner.virtbiz.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mitprod.onmicrosoft.com; s=selector2-mitprod-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E/fkkl3AgDK/a06uCCCk4HYKUIpeeJXy9IoXGessNKY=; b=qgvxJ7ZN7mFUs+7kGpy26lA7zGbUh9dMngYves0bI7n+/4CNHrjk1RL/4tWtxISxB6XM5d3xSOaPe0cPnZxonzymkvjJ3xNsB/4uqcRF70p4rGPXmYPy8G4dP3wG+93LfjFOzvpMgjCnGG1B7UaKwJfp7ob3F5FaWRUYIVuzti0= authentication-results: spf=pass (sender IP is 208.80.15.114) smtp.mailfrom=mai.hallikainen.org; mit.edu; dkim=none (message not signed) header.d=none;mit.edu; dmarc=permerror action=none header.from=mai.hallikainen.org; user-agent: SquirrelMail/1.4.22-5.el6 errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-authentication-warning: mai.hallikainen.org: apache set sender to harold@mai.hallikainen.org using -f x-spam-status: No x-greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mailscanner.virtbiz.com [208.77.216.252]); Fri, 02 Oct 2020 15:36:26 -0500 (CDT) x-topics: [EE] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 This reminds me of a project in the 1980s where I used the Centronics printer port on a Cromemco CP/M computer as a logic analyzer to reverse engineer the serial bus for the Commodore 1541 disk drive. For that, I did a simple transition capture. If any bit changed, I captured the full 8 bits. I did not care about timing. That ended up in this product: http://bh.hallikainen.org//wiki/uploads/HfDrc190.pdf Harold > Disclaimer: This may or may not be a controversial statement. I'd > recommend one of the super cheap ($10ish) Salae (sp?) clones. They do 8 > channels at up to 24MHZ, no serious input protection or fancy probe > connectors, just raw IDC pins. You might want to put some blocking > resistors to limit input current, depending upon the voltages you > anticipate. You'd have to verify, but I think the pins can survive + or = - > 20V, I just don't remember. If you burn out a channel, who cares, rig up > something to protect the ones left. ;) Buy them by the dozen and throw > one > in every toolbox. But you don't have to use a $10 clone of an ancient > analyzer, it works with all kinds of analyzers. > > I don't recommend using official Salae software, but Sigrok Pulseview > instead. It runs in Windows or Linux, there's even an Android app. I've > only tinkered with a bit, but I think it's pretty awesome for open source > software. There's a jillian "stackable" protocol decoders built in. It'= s > awesome, seriously. It "knows" the various UART, I2C and SPI protocols t= o > talk to a plethora of various chips. The wiki write up on Sigrok > Pulseview > is very detailed. > > When I said stackable, that's what I meant, it's nice to look at I2C comm= s > and not have to have a datasheet in hand for an ADC or some other IC > that's > on the bus, trying to figure out what's going wrong. Just take a look at > this list: https://sigrok.org/wiki/Protocol_decoders It even flags > missing > acks, parity or framing errors. Did I mention that it's awesome? > > > I'm still waiting for a Rigol scope, or any affordable scope, to embed > this > ability into their serial decoder functionality. Pulseview can even talk > to oscilloscopes; it's not just limited to logic analyzers. You can > capture analog signals, convert them to digital day streams (using > thresholds of your choice) and feed them into the protocol analyzers. > > I even use Pulseview with my Hantek 6022bl, it's got a nicer interface. > Capturing analog inputs and automatically converting them to a logic > stream > comes in handy. It can even guess at baud rates, if you're unsure. It ca= n > do timing analysis. I don't know what else it can do, but there's > probably > more. Be forewarned, capturing at 24MHZ from an unbuffered clone device > requires a decent computer and a good USB cable, but it works. You can > record as many samples as you want, as long as the PC can keep up > transferring 24 megabytes per second. The clones seem to sample all 8 > inputs, whether you need them or not. It's $10, what can you expect. > > Here's on for $9, but mine is by hiletgo and cost $12 for the "kit". It > looks just like this one. As long as you don't use Salea software, no > crime has occurred, nobody was harmed in any way, just a reappropriated > USB > VID and PID. It's certainly not the same quality hardware as the origina= l > version. > > https://www.amazon.com/Comidox-Analyzer-Device-Channel-Arduino/dp/B07KW44= 5DJ/ref=3Dasc_df_B07KW445DJ/?tag=3Dhyprod-20&linkCode=3Ddf0&hvadid=3D366289= 581070&hvpos=3D&hvnetw=3Dg&hvrand=3D2425961148164562015&hvpone=3D&hvptwo=3D= &hvqmt=3D&hvdev=3Dm&hvdvcmdl=3D&hvlocint=3D&hvlocphy=3D9052205&hvtargid=3Dp= la-804742835968&psc=3D1&tag=3D&ref=3D&adgrpid=3D71490160010&hvpone=3D&hvptw= o=3D&hvadid=3D366289581070&hvpos=3D&hvnetw=3Dg&hvrand=3D2425961148164562015= &hvqmt=3D&hvdev=3Dm&hvdvcmdl=3D&hvlocint=3D&hvlocphy=3D9052205&hvtargid=3Dp= la-804742835968 > > > On Thu, Oct 1, 2020, 15:38 mbaum7901 wrote: > >> I have used a free software package called TAL Breakout for over 15 >> years. >> It is actually a demo of a commercial offering, but the free version >> works >> very well >> >> https://www.taltech.com/blog/post/tal_breakout_software_freeware >> >> >> -----Original Message----- >> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf >> Of >> Harold Hallikainen >> Sent: Thursday, October 01, 2020 15:04 >> To: Microcontroller discussion list - Public. >> Subject: Re: [EE] RS-485 analyzer/sniffer? >> >> I've used a logic analyzer like the thech-tools DigiView to watch a 485 >> bus >> directly. No 485 receiver required since one wire or the other is 5V >> serial >> data. Also, RealTerm can capture serial data and display it in hex. >> I use an FTDI TTL-232R-5V-WE cable to get TTL or similar level data into >> a >> USB comm port. >> >> Harold >> >> >> -- >> FCC Rules Updated Daily at http://www.hallikainen.com Not sent from an >> iPhone. >> -- >> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >> View/change >> your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> >> -- >> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 FCC Rules Updated Daily at http://www.hallikainen.com Not sent from an iPhone. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .