Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Development => Topic started by: canghaiwuhen on March 11, 2011, 03:02:50 pm

Title: Is this a Bug?
Post by: canghaiwuhen on March 11, 2011, 03:02:50 pm
My Bus Pirate Update to Firmware 5.10,but I found some questions:

1. The "h" command cann't use.
2. The "}" command cann't use.
3. The "c/C" control CS pin ,but the dislpay is also AUX.

The Last,I'm a chinese user,my english is not good,so my words maybe speak wrong.
Please don't laugh me.
:-D
Title: Re: Is this a Bug?
Post by: ian on March 11, 2011, 03:19:32 pm
Hi canghaiwuhen,

These should all work.

Please make sure you use 'h' and not 'H', but all other keys should work.

Maybe check the terminal emulation type (VT-102).

Also: you can try to update the firmware again in case something is wrong.

Please let me know, I will help the best I can.
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 11, 2011, 04:26:00 pm
Hi ian,

'h' and 'H' are all cann't use,and all other keys is ok.

Termnal is work.

And I have update the firmware again,but it have the same questions.

[attachment=2]

[attachment=1]

[attachment=0]
Title: Re: Is this a Bug?
Post by: ian on March 11, 2011, 04:55:53 pm
Ah, I understand now.

h was removed in 5.10. Now use up and down arrows to scroll through the history. That should be removed from the menu.

{} are only for use in UART and MIDI mode, else use []

The AUX seems to work, but the display is off. See this example:
Code: [Select]
SPI>c
a/A/@ controls AUX pin
SPI>a
AUX LOW
SPI>i
Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3042 (24FJ64GA002 B4)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR)  2.(RD)  3.(OR)  4.(YW)  5.(GN)  6.(BL)  7.(PU)  8.(GR)  9.(WT)  0.(Blk)
GND    3.3V    5.0V    ADC    VPU    AUX    CLK    MOSI    CS      MISO
P      P      P      I      I      O      O      O      O      I
GND    0.00V  0.00V  0.00V  0.00V  L      L      L      H      L
Power supplies OFF, Pull-up resistors OFF, Normal outputs (H=3.3v, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls AUX pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 0 )
*----------*
SPI>A
AUX HIGH
SPI>i
Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3042 (24FJ64GA002 B4)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR)  2.(RD)  3.(OR)  4.(YW)  5.(GN)  6.(BL)  7.(PU)  8.(GR)  9.(WT)  0.(Blk)
GND    3.3V    5.0V    ADC    VPU    AUX    CLK    MOSI    CS      MISO
P      P      P      I      I      O      O      O      O      I
GND    0.00V  0.00V  0.00V  0.00V  H      L      L      H      L
Power supplies OFF, Pull-up resistors OFF, Normal outputs (H=3.3v, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls AUX pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 0 )
*----------*
SPI>C
a/A/@ controls CS pin
SPI>a
AUX LOW
SPI>i
Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3042 (24FJ64GA002 B4)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR)  2.(RD)  3.(OR)  4.(YW)  5.(GN)  6.(BL)  7.(PU)  8.(GR)  9.(WT)  0.(Blk)
GND    3.3V    5.0V    ADC    VPU    AUX    CLK    MOSI    CS      MISO
P      P      P      I      I      O      O      O      O      I
GND    0.00V  0.00V  0.00V  0.00V  H      L      L      L      L
Power supplies OFF, Pull-up resistors OFF, Normal outputs (H=3.3v, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls CS pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 0 )
*----------*
SPI>A
AUX HIGH
SPI>i
Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3042 (24FJ64GA002 B4)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR)  2.(RD)  3.(OR)  4.(YW)  5.(GN)  6.(BL)  7.(PU)  8.(GR)  9.(WT)  0.(Blk)
GND    3.3V    5.0V    ADC    VPU    AUX    CLK    MOSI    CS      MISO
P      P      P      I      I      O      O      O      O      I
GND    0.00V  0.00V  0.00V  0.00V  H      L      L      H      L
Power supplies OFF, Pull-up resistors OFF, Normal outputs (H=3.3v, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls CS pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 0 )
*----------*
SPI>
the AUX and CS respond correctly. That should be updated too.

Thanks for the bug reports!

Ian
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 12, 2011, 12:19:52 am
yeah,I know.

hehe, and bus pirate is so useful that I'm admire you.

And I'm writing a guide for chinese user.

O(∩_∩)O~
Title: Re: Is this a Bug?
Post by: ian on March 12, 2011, 08:47:40 am
That is fantastic, thank you. It would be great to see more Chinese users of the Bus Pirate.

Feel free to add it to our wiki, I think it will support all UNICODE characters.
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 12, 2011, 11:07:11 am
OK!

When I complete the guide,I should sent it to you.
But my job is busy,so it's not faster.
(*^__^*)
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 15, 2011, 01:26:51 pm
Hello
I read the wiki and try all the use or Bus Pirate,but there are some use that I don't found in firmware 5.10,such as JTAG and PC Keyboard.
Title: Re: Is this a Bug?
Post by: ian on March 15, 2011, 01:51:24 pm
Firmware got too big, so we made main and "extras". Extras has PC Keyboard and some others.

JTAG terminal mode is removed, only JTAG by OPENOCD is possible now.
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 15, 2011, 02:16:09 pm
oh!
And how to enter the raw binary bitbang mode?
I'm trying the DIO mode~~
hehe,the guide will finished soon.
Title: Re: Is this a Bug?
Post by: ian on March 15, 2011, 02:28:50 pm
send binary value 00 20 times to enter BBIO mode.
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 15, 2011, 02:37:02 pm
[attachment=1]

[attachment=0]

Am I misunderstood your meaning?
Code: [Select]
HiZ>00:20
WRITE: 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here
 0x00ERROR: command has no effect here

Syntax error at char 5
HiZ>

Title: Re: Is this a Bug?
Post by: Sjaak on March 15, 2011, 04:46:15 pm
You need to send 20 times 0x00 to the buspirate.

http://dangerousprototypes.com/docs/Bitbang (http://dangerousprototypes.com/docs/Bitbang)
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 15, 2011, 05:01:50 pm
I have try to send it,but it have no result.
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 17, 2011, 01:13:28 pm
And I found that the BASIC script can not control then pin.
What wrong with it?
Title: Re: Is this a Bug?
Post by: ian on March 18, 2011, 09:57:05 am
Quote
I have try to send it,but it have no result.
You need to send the raw 0x00 byte value, not type the ASCII into the terminal. You'll need to use a program or terminal that supports HEX, for example I use hw-group.com's Hercules utility:
[attachment=0]

Quote
And I found that the BASIC script can not control then pin.
Please start a new thread in support and post:
*Script you tried
*What you wanted
*What you got
Title: Re: Is this a Bug?
Post by: canghaiwuhen on March 20, 2011, 02:32:33 am
Yeah,thank you very much,I konw,the bitbang mode is OK.
The Buspirate specific basic commands which I tried,such as:

1 START
4 AUX 1
5 CLK 1
6 AUX 1
7 DELAY 10000
8 STOP
10 END

But the voltage of pin have no changed.
And This is my Bus Pirate v3b and v4(PS:the elements of v4 is very difficult to buy in china,I have to buy them in mouser,but it need some times.)

[attachment=0]
Title: Re: Is this a Bug?
Post by: Sjaak on March 21, 2011, 10:07:13 am
Dunno which pin you try to wiggle. If it is the CS pin and opencollector output-mode is selected, you need to enable the pullups and connect a voltage to Vpu. The AUX pin cannot be set to opencollector mode and should measure a voltage.

With the command 'AUXPIN' you can select which pin is toggled with the 'AUX'

http://dangerousprototypes.com/docs/Bus ... _.7Bval.7D (http://dangerousprototypes.com/docs/Bus_Pirate_BASIC_script_reference#AUXPIN_.7Bval.7D)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01582144864session_write_close ( )...(null):0
20.01612276456ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01612277232Database_MySQL->query( ).../DatabaseHandler.php:119
40.06162415968Database_MySQL->error( ).../Db-mysql.class.php:273