[BTW, I was a bit hesitant whether this was on-topic enough to remain on the mailing list rather than as a private response to Peter. I believe some of the protocol issues discussed are pertinent to sigrok, so I left it on the list. Let me know if you disagree.]
On Feb 27, 2014, at 0:50, Matthias Neeracher <[email protected]> wrote: > Peter Stuge wrote: >> Matthias Neeracher wrote: >>> I recently started tinkering with sigrok and noticed that using my >>> Bus Pirate in OLS mode was very unreliable (succeeding maybe 10% of >>> the time). >> >> Only tangentially related but would you mind testing my OLS detector >> bash script with your device? If it might work that is, I don't know >> if the Bus Pirate needs to be switched to OLS mode each time it is >> opened? >> >> http://stuge.se/findols.sh > > I would love to, but I’m on a Mac, which doesn’t have sysfs. I’ll try whether > this works from a linux VM, but it could take some time to set up. > > Bus Pirate is protocol compatible with OLS, so no explicit setup is needed. So I managed to test this in an Ubuntu 12.10 VM running under Virtualbox on my Mac. The good news is that the technique you employ works, in principle, to detect bus pirates. However, there were several details that I had to tweak to get there: • BusPirate has vendorid/productid of 0403/6001 • The uevent file is at ttyUSB0/tty/ttyUSB0/uevent. Not sure whether virtualbox emulation is playing a role here, but my Arduino Uno had a directory structure that looked like the one you’re probing for, so maybe this really is BusPirate specific. • The BusPirate handles several different protocols, and in particular, feeding it 20 or more \x00 bytes will put it into binary bitbang mode. As long as I keep it to 5 \x00 bytes (I believe any value less than 20 would be safe), it does indeed give an OLS response. Hope this helped Matthias ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

