Dangerous Prototypes

Other projects => Open Bench Logic Sniffer => Topic started by: vnv on March 10, 2015, 03:27:02 pm

Title: Simple Arduino blink example
Post by: vnv on March 10, 2015, 03:27:02 pm
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?
Title: Re: Simple Arduino blink example
Post by: thetazzbot on March 17, 2015, 05:04:41 am
Yes, you certainly can.

Here's a little more info.

Setting the OBLS to capture the channel group 0 captures pins 0-7.  Each group I guess  increments by 8 pins.

So I set mine on pin 13 on the sniffer, my group to 1.

Then I set the capture waayyyy down to 50 khz. 

I clicked begin capture, and filled in my com port.  Amazingly, it worked. 
[edit]
ugh.  so pin 13 is also pin 19... which appears at the group 3... its working.
[/edit]

But then I tried again after closing the client, arduino still blinking.. but nothing captured...

And I was ready to throw this thing away because none of the ROM update utilities actually work.  It's very challenging buying something from seeed and having to go through all this hassle to do a "hello world" test.

Now, I haven't figured out why it only captures 24k.  What the hell.  that's not useful at all.  I want to start the capture, then start a process on the target, and capture the stream.

Probably should read the manual....

Cheers,
Mark
Title: Re: Simple Arduino blink example
Post by: vnv on March 17, 2015, 12:09:31 pm
I fully undertand :(

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