Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - vnv

2
Open Bench Logic Sniffer / Simple Arduino blink example
Hi all,

is it possible to use Arduino as very simple signal generator from blink example.

So load blink code to Arduino:

Code: [Select]
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(50);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(50);              // wait for a second
}

Now hookup OBLS channel 0 and GND and run it.
Is this setup possible?
3
Open Bench Logic Sniffer / Brand new OBLS - No such port / Detection failed
Hi all,

just got my OBLS today , and was very happy and eager to try it out.
But just after initial adrenaline rush of hapiness reality struck and Logic Analyzer Client reported that it cannot show device metadata
and there is no such port.
I cannot open capture.

I've installed driver from http://http://www.gadgetfactory.net/logicsniffer/index.php?n=LogicSniffer.Download version 3.08.
Client included didn't work probably because JRE, and I've downloaded new client ols-0.9.7.2.

Runned run.bat as Administrator but still no go.
Device is found and shown in Device Manager but no connection?

Any help, is my OPLS DOA or something?

EDIT:

Machine running is T420 Win7.

I've just saw that starting Capture emits error on the windows terminal

Quote
JGoodies Looks: I have successfully installed the 'Sky Bluer' theme.
java.io.IOException: No such port!
        at nl.lxtreme.ols.io.serial.CommConnectionFactory.createConnection(Comm
onnectionFactory.java:111)
        at nl.lxtreme.ols.io.ConnectorServiceImpl.open(ConnectorServiceImpl.jav
:160)
        at org.sump.device.logicsniffer.LogicSnifferDevice.createStreamConnecti
n(LogicSnifferDevice.java:159)
        at org.sump.device.logicsniffer.LogicSnifferDevice.getStreamConnection(
ogicSnifferDevice.java:245)
        at org.sump.device.logicsniffer.LogicSnifferDevice.createAcquisitionTas
(LogicSnifferDevice.java:87)
        at nl.lxtreme.ols.acquisition.BackgroundDataAcquisitionService.acquireD
ta(BackgroundDataAcquisitionService.java:76)
        at nl.lxtreme.ols.client.ClientController.captureData(ClientController.
ava:539)
        at nl.lxtreme.ols.client.action.CaptureAction.actionPerformed(CaptureAc
ion.java:97)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sou
ce)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sou
ce)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sou
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


EDIT2:

Also tried running it on Linux Z61m Ubuntu 14.04.
Attached as ttyACM0 , show device metadata doesn't work.

EDIT3:

Just found command to view status, and it shows up this:

Quote
C:UsersnikDesktopols-0308ols-0308OLS_Upgraderwinbin>ols-loader.exe -p:COM
31 -run -status
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port 'COM31' @ 921600 ... OK
Error reading OLS id

EDIT4:

Ok pressed update and reset together and then runned same command, I got:
Quote
C:UsersnikDesktopols-0308ols-0308OLS_Upgraderwinbin>ols-loader.exe -p:COM
31 -run -status
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port 'COM31' @ 921600 ... OK
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40
OLS status: 00
OLS switched to RUN mode


EDIT5:

Ok I've managed to load 3.07 Demon Core with  3.0 PIC and still nothing.

Code: [Select]
C:UsersnikDesktopols-0308ols-0308OLS_Upgraderwinbin>ols-loader.exe -p:COM
31 -run -status
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port 'COM31' @ 921600 ... OK
Found OLS HW: 1, FW: 3.0, Boot: 2
Found flash: WINBOND W25X40
OLS status: 00
OLS switched to RUN mode
4
Bus Pirate Support / Sniffing SPI on Arduino
Hi people,

just got my china-arduino-nano v3 and have some trouble with SD card SPI.
While working on my original Arduino Uno it all works fine and data goes to SD card but after switching to my small chinese variant
all stops.
I thought it would be good to connect logic sniffer to SPI on my Arduino Uno and get some data out of it, and then try it with nano
to see what is the difference.

I've put SPI clock on 0.5 MHz because BP works on 1MHz so it should be fine.

I am using BP:

Quote
Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8)
http://dangerousprototypes.com


This is Arduino Uno / nano code:

Code: [Select]
#include <SPI.h>
#include <SD.h>

//SPI SD Card Pins
//MOSI = Pin 11
//MISO = Pin 12
//SCLK = PIN 13
int CS_pin = 10;


int data = 5000;

void setup()
{
  //SPI.setClockDivider(SPI_CLOCK_DIV16 );
  SPI.setClockDivider(SPI_CLOCK_DIV32 ); 0.5 MHz
 
  Serial.begin(9600);
  Serial.println("Initializing Card");
  pinMode(CS_pin, OUTPUT);
 
  if (!SD.begin(CS_pin))
  {
      Serial.println("Card Failure");
      return;
  }
  Serial.println("Card Ready");
 
  File logFile = SD.open("LOG.csv", FILE_WRITE);
  if (logFile)
  {
  logFile.println(data);
  logFile.println("n");
    logFile.close();
    Serial.println("Printed to log");
  }
  else
  {
    Serial.println("Couldn't open log file");
  }
 
}

void loop(){ }

In the OLS software I've enabled trigger and mask on (0,1,2,3) for (SCL,MOSI,MISO,CS).

Ratio is 50/50.



After running it says Capture finished, took 14.15s and nothing shows up, any hint?
6
Bus Pirate Support / Re: DS18B20 problem
First thank you for quick response.
I've detected problem , when used with 510(Ohm) resistor as pullup ... finally it WORKED!!!!
It seems that my pull up resistor was to big (somehow skipped doc about that part :( :(

Graham242 thanks for the effort!

For other, how it worked:
=======================
Pirate Bus v3.6

DS18B20
 -- RED - vcc
 -- BLACK - gnd
 -- YELLOW - data (SDA)

1. Connected Red and Black wire to GND.
2. Connected data (SDA) to MOSI
3. Connected +5V through 510(Ohm) resistor to data (SDA) as pull-up

Commands:
> m                // menu
> 2                  // 1-WIRE
> W                // power up device
> (240)          // device should be listed
7
Bus Pirate Support / DS18B20 problem
Hi all,

after days of looking around for Bus Pirate v3.6 , finally it arrived and I was thrilled to get it.
All went out of the window when I tried to use it with my DS18B20 (waterproof package) 1-wire famous device.
In Arduino it works perfectly and there seems no way for me to make it run in Bus Pirate.

For sure it works because I am checking it every time in Arduino (just to be sure DS18B20 works).

I've tried several setup:
1) Arduino
  1.1 With pull-up (red & black together, yellow SDA)  -- WORKS --
  1.2 With no pull-up (internal pull-up / red & black together, yellow SDA)  -- WORKS --

2) il-bus-pirate-cosa-e-come-funziona-esempio-di-comunicazione-con-bus-1-wire (italian guy from buspirate page, cannot post links)
  2.1 With pull-up -- DOESN'T WORK --
  2.2 With internal pull-up -- DOESN'T WORK --
  2.3 With internal and external pull-up -- DOESN'T WORK --
  2.4 With internal and external pull-up ( VCC disconnected)  -- DOESN'T WORK --
  2.5 With internal pull-up ( VCC disconnected)  -- DOESN'T WORK --
  2.6 With external pull-up ( VCC disconnected)  -- DOESN'T WORK --

I made self test and it passed with all OK.

This is becoming nightmare :( ... please help :?

( ! ) 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.01362358680session_write_close ( )...(null):0
20.01392490256ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01392491032Database_MySQL->query( ).../DatabaseHandler.php:119
40.05952629752Database_MySQL->error( ).../Db-mysql.class.php:273