Skip to main content
Topic: BusPirate hangs in SPI sniffer mode. (Read 21928 times) previous topic - next topic

Re: BusPirate hangs in SPI sniffer mode.

Reply #15
Can you upgrade to 6.2 or 6.3 and try again?

Re: BusPirate hangs in SPI sniffer mode.

Reply #16
I will try, but where can I find 6.3 version?
Thanks!


Re: BusPirate hangs in SPI sniffer mode.

Reply #18
If you're like me, you find the repositories a bit overwhelming and confusing, they can take quite a bit of digging around.
Try here
http://http://code.google.com/p/dangerous-prototypes-open-hardware/source/browse/#svn%2Ftrunk%2FBus_Pirate%2Fpackage%2FBPv3-firmware 
there is a number of V6.3 builds there for BPV3

Hope that helps :)

Re: BusPirate hangs in SPI sniffer mode.

Reply #19
Hi there,
a bit OT but maybe this can help.
Bus Pirate v3.6 using firmware v6.3-beta1 r2151 Bootloader v4.4, when performing # command (RESET) I get:

HiZ>#
REÿ
Bus Pirate v3.5
Firmware v6.3-beta1 r2151  Bootloader v4.4
DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8)
http://dangerousprototypes.com
HiZ>
 
I guess the word "REÿ" in the beginning should in reality be "RESET" like for previous versions.
There is a little bug.
This don't be annoying but remove it would be better IHMO.
Apologizing me for the OT, thanks in advance.
 
Kindest regards,
sre71

Re: BusPirate hangs in SPI sniffer mode.

Reply #20
Thanks Sleepwalker3, now I have downloaded and installed firmware v6.3 but the problem still happens. Maybe BP sniffs more bytes with v6.3 than with v6.1 but finally it hangs too.

I think the problem is that the serial can't pass the bytes at the rate the SPI sniffs, then the BP buffer overflows and BP hangs.

Re: BusPirate hangs in SPI sniffer mode.

Reply #21
I guess that might be possible, but I would have thought more people would have found the same problem if that was the case. I'll leave it to the experts like Arakis and Tayken.

Re: BusPirate hangs in SPI sniffer mode.

Reply #22
In the beginning of the process, sniff rate is about 310 pair/sec and all is fine, but then the traffic increases and it is when BP hangs. These are the last 10 pair of bytes that BP sniffs:

IN   OUT   TIME (s)
20   ff   7.25218931456
00   98   7.25233626061
83   ff   7.25248320666
00   ff   7.25262959398
81   ff   7.25277598130
23   ff   7.25292236863
83   ff   7.25306903531
84   ff   7.25321570200
07   ff   7.25336180995
00   7a   7.25350819727

So when BP hangs it is sniffing at 1/(7.25350819727 - 7.25218931456) = 7582 pair/sec

Re: BusPirate hangs in SPI sniffer mode.

Reply #23
If you are able to, it would probably be worthwhile keeping the data rate down to see if it handles it fine, even with a lot of data. That might show if it is rate dependant. Of course you might not be able to do that!

Re: BusPirate hangs in SPI sniffer mode.

Reply #24
No, I cant modify data rate.

Maybe Im wrong, but if com speed is 115200 and BP sends 3 bytes per pair sniffed (slash, in and out), the maximum sniff rate would be 115200/3/8=4800 pair/sec. Isnt it?

Re: BusPirate hangs in SPI sniffer mode.

Reply #25
I'm pretty sure that's been covered before and that with the VCP it doesn't work like that. In short I think the 'Baud rate' is more just a token thing.

Re: BusPirate hangs in SPI sniffer mode.

Reply #26
Sorry, I dont understand... what do you mean, Sleepwalker3?

Re: BusPirate hangs in SPI sniffer mode.

Reply #27
Hi juanma,
maybe I'm wrong, it isn't the specific case, but I hope here you can find some hint:
viewtopic.php?f=4&t=5851
 
Best regards,
sre71

Re: BusPirate hangs in SPI sniffer mode.

Reply #28
[quote author="juanma"]Sorry, I dont understand... what do you mean, Sleepwalker3?[/quote]

From my recollection, I think that the speed over the USB is not specifically governed by the Baud rate - not in the way that a real serial port would be. It's using the FTDI chip and the driver creates a 'Virtual Comms Port' (VCP), so the data throughput is more determined by the limitations of the driver and how fast the device on the other end (the BP) can clear it. Some FTDI chips I think have buffers too, so that that also affects things.  I could be wrong here and somebody may well correct me, but I believe the Baud rate only really affects comms at the far end - i.e. the BP processor <--> FTDI.  Anyway, one of the experts on the firmware will probably correct me here.

Re: BusPirate hangs in SPI sniffer mode.

Reply #29
Thanks sre71. Actually this is what I do. I have try both writing in a text file throught  script code and piping the output of the console to a file with the same result.
What is very strange is that BP doesn't hang at the same moment each time (with the same method, I mean).