Please login or register.

Login with username, password and session length
 

News:

Latest updates at DangerousPrototypes.com.


Author Topic: Self test results  (Read 2496 times)

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Self test results
« on: July 24, 2009, 06:46:28 AM »
***Illustrated upgrade guide***

Rather than releasing a v0h firmware, I incremented it to v2.0 to sync with the hardware versioning. Final package can be downloaded here.

The update is pretty much the same as v0h-RC2, but it adds a self test for v2go hardware.

Type '~' in the terminal to start a self test, and follow the instructions. You'll need to connect the ADC pin to the 3.3volt supply pin, and the Vpullup (Vpu) pin to the 5volt supply pin.

Quote
HiZ>i
Hack a Day Bus Pirate v2go
http://www.buspirate.com
Firmware v2.0
HiZ>~
Disconnect any devices.
Connect the Vpu pin to the +5V pin.
Connect the ADC pin to the +3.3V pin.
These results are experimental.
Press any key to continue.
Starting test.
Control pin test...
AUX PIN OK
MODE LED PIN OK
PULLUP PIN H OK
PULLUP PIN L OK
VREG PIN OK
Analog pin and power supply test...
5V(4.9) OK
VPULLUP(5.0) OK
3.3V(3.3) OK
ADC(3.3) OK
Bus pins, normal, high...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
Bus pins, open collector, low...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
Bus pins, open collector, high...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
HiZ>
« Last Edit: October 07, 2009, 05:07:38 AM by ian »

broeggle

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
    • View Profile
    • Visit my blog -> phosphorsoft
Re: Firmware v2.0 + self test
« Reply #1 on: July 24, 2009, 07:03:58 AM »
Hey ian - thanks for the new firmware - Is there any possibility to upgrade the firmware using linux?

Thanks,

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #2 on: July 24, 2009, 07:07:02 AM »
I'm sure you could write a pyton script to do it pretty easily. The source and protocol for the bootloader is in the source code download and the Google SVN.

Scorpia

  • Global Moderator
  • Full Member
  • *****
  • Posts: 219
  • Karma: +4/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #3 on: July 24, 2009, 07:13:34 AM »
uploaded, all ok. nice and quick
Quote
HiZ>i
Hack a Day Bus Pirate v2go
http://www.buspirate.com
Firmware v2.0
HiZ>~
Disconnect any devices.
Connect the Vpu pin to the +5V pin.
Connect the ADC pin to the +3.3V pin.
These results are experimental.
Press any key to continue.
Starting test.
Control pin test...
AUX PIN OK
MODE LED PIN OK
PULLUP PIN H OK
PULLUP PIN L OK
VREG PIN OK
Analog pin and power supply test...
5V(4.8) OK
VPULLUP(4.8) OK
3.3V(3.3) OK
ADC(3.3) OK
Bus pins, normal, high...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
Bus pins, open collector, low...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
Bus pins, open collector, high...
MOSI PIN OK
CLK PIN OK
MISO PIN OK
CS PIN OK
HiZ>

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #4 on: July 24, 2009, 07:19:01 AM »
Thanks so much for the report. I'll eventually make this part of a power on self test that blinks a LED if something fails. That should decrease the quality control burden and make Seeed really happy :)

Scorpia

  • Global Moderator
  • Full Member
  • *****
  • Posts: 219
  • Karma: +4/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #5 on: July 24, 2009, 07:34:36 AM »
also, any chance of adding the extra 1-wire device descriptions from the list?

i am using some ds1820 and ds18B20's atm and both are unknown.

see
Quote
(240)
1WIRE ROM COMMAND: SEARCH (0xF0)
Found devices at:
Macro     1WIRE address
 1.0x10 0x36 0x00 0x83 0x00 0x08 0x00 0x83
   *Unknown device family ID
 2.0x10 0xF1 0x00 0x83 0x00 0x08 0x00 0x99
   *Unknown device family ID
 3.0x28 0x6E 0x49 0x66 0x00 0x00 0x00 0x4D
   *Unknown device family ID
 4.0x28 0x1F 0x3B 0x66 0x00 0x00 0x00 0x0C
   *Unknown device family ID
Found 0x04 devices.
The first 10 device IDs are available by MACRO, see (0).

Also the ability to edit posts would be great. i cant see h ow to do it.

thanks

Peter

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #6 on: July 24, 2009, 07:38:01 AM »
I'll see if I can figure out permissions for editing posts.

Which is which? I'll add it to the tracker.

Scorpia

  • Global Moderator
  • Full Member
  • *****
  • Posts: 219
  • Karma: +4/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #7 on: July 24, 2009, 07:44:03 AM »
as per the link in your source. http://owfs.sourceforge.net/commands.html

0x10 = DS18s20 (DS1820) <- is the older model
0x28 = DS12B20

currently have 2 of each.

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #8 on: July 24, 2009, 07:53:49 AM »
http://code.google.com/p/the-bus-pirate/issues/detail?id=31

Got it. I have a feeling there's a subtle bug in the 1-wire code, probably an incorrect delay. I don't have any problems, but there are occasional bug reports. I'm going to redo the 1-wire and I2C eerprom demos using v2go next week, I'll add these devices and check the code then.

Scorpia

  • Global Moderator
  • Full Member
  • *****
  • Posts: 219
  • Karma: +4/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #9 on: July 24, 2009, 07:59:04 AM »
thanks for doing that so quick.
now i just need to wait for the next compile

Since your going to redo the demo's anyway. you might want to add a small part about using the pullup on the v2go as i havnt been able to get it to work yet. im using an external 4.7k resistor atm


ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #10 on: July 27, 2009, 04:37:52 AM »
Practical guide to pull-up resistors will be on my blog in a few hours.

Update: Here it is:
http://dangerousprototypes.com/2009/07/27/bus-pirate-practical-guide-to-pull-up-resistors/
« Last Edit: July 27, 2009, 12:49:52 PM by ian »

gigyz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #11 on: September 13, 2009, 08:13:30 AM »
Hi, self test on my bus pirate v2.go failed, this is result:

HiZ>~
Disconnect any devices
Connect (Vpu to +5V) and (ADC to +3.3V)
Press a key to start
Control
AUX OK
MODE LED OK
PULLUP H OK
PULLUP L OK
VREG OK
Analog pin and pwr supply
5V(0.0) FAIL
VPU(0.0) FAIL
3.3V(3.2) OK
ADC(3.2) OK
Bus normal, high
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z, low
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z, high
MOSI FAIL
CLK FAIL
MISO FAIL
CS FAIL

ian

  • Crew
  • Hero Member
  • *****
  • Posts: 2861
  • Karma: +61/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #12 on: September 13, 2009, 08:44:03 AM »
I'm sorry your Bus Pirate didn't work. It looks like your 5volt regulator isn't turning on, or isn't getting power to the pin.

Check around VR4, and make sure none of the pins are unsoldered or bridged. These are problems you might be able to fix yourself with a soldering iron. It's also possible that VR4 is broken. Please let me know what you find so I can track defects.

Seeed has been really good about replacements, just give them a shout if you need a repair.

gigyz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Firmware v2.0 + self test
« Reply #13 on: September 13, 2009, 11:29:33 AM »
Tanks very much for you quick reply, just checked VR4 and doesn't work, Vin OK, signal on enable OK but Vout=0, I think I will try to replace it.
Bye.

pandroid

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Self test results
« Reply #14 on: November 11, 2009, 12:43:50 PM »
Here is the result of the self-test routine from a v3 board, running firmware v3.0

Code: [Select]
HiZ>i
Bus Pirate v3
Firmware v3.0
DEVID:0x0447 REVID:0x3043 (B5)
http://dangerousprototypes.com

HiZ>~
Disconnect any devices
Connect (Vpu to +5V) and (ADC to +3.3V)
Press a key to start
Ctrl
AUX OK
MODE LED OK
PULLUP H OK
PULLUP L OK
VREG OK
ADC and supply
5V(4.8) OK
VPU(4.8) OK
3.3V(3.3) OK
ADC(3.3) OK
Bus high
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 0
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 1
MOSI OK
CLK OK
MISO OK
CS OK