Category Archives: Uncategorized

edison and bitscope micro

 

 

IMG_1793

Running the worlds smallest scope with the worlds smallest computer (give or take):

install 32 bit bitscope-server, community-provided ftdi kernel and possibly lib-ftdi1 on top of ubilinux/intel edison. In my case using the “large” arduino break out board. But you should go with  smaller one …  .

Hey! this is UDP client/server over wifi with multiple viewers/clients at 20MHz, dual channel etc etc

wget http://bitscope.com/download/files/bitscope-server_1.0.EA20A_i386.deb
dpkg -i bitscope-server_1.0.EA20A_i386.deb
wget https://communities.intel.com/servlet/JiveServlet/download/276496-92016/ftdi_sio.ko.gz

(cheers,https://communities.intel.com/people/Luis_Bucanero)

gunzip ftdi_sio.ko.gz
insmod ftdi_sio.ko
--
root@ubilinux:/home/leif# bitscope-server -v
Server: BitScope Server 1.0 EA20A starting...
Server: opened device USB:/dev/ttyUSB0
Server: opened UDP socket on "ubilinux" port 16385
Server: starting server process 1976
Server: server idle/start latency 8 ms
Server: downstream thread B693FB70 running
Server: upstream thread B6D3FB70 running
Server: listening for connections (press <ENTER> to terminate).
Client: new connection 192.168.10.6

--
on client:

c++,octave,example

structure.cc: 

#include <octave/oct.h> 
#include <octave/oct-map.h> 

DEFUN_DLD (structure, args, , "quick and dirty demo") 
{ 
~  octave_value_list retval; 
~  Octave_map a (args(0).map_value()); 
~  Octave_map ab (a.contents (a.seek ("b"))(0).map_value()); 
~  ab.assign ("c", -1.0); 
~  a.assign ("b", ab); 
~  retval(0) = a; 
~  return retval; 
} 

$ mkoctfile structure.cc 

octave:1> a.a = 0; a.b.a = 1; a.b.b = 2; a 
a = 
{ 
~  a = 0 
~  b = 
~  { 
~    a = 1 
~    b = 2 
~  } 

} 

octave:2> a = structure (a) 
a = 
{ 
~  a = 0 
~  b = 
~  { 
~    a = 1 
~    b = 2 
~    c = -1 
~  } 

}

logger

Testing

To test if syslog has been set up correctly you can log an event to syslog using the logger command:

logger -t test "Here's an example log entry"

Next check your logs configured in Logentries to see if any events have been recorded.