Git Product home page Git Product logo

logic-analyzer's People

Contributors

aster94 avatar backmountaindevil avatar yoursunny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logic-analyzer's Issues

processing for android build errors

I tried to build the processing app in Processing 3. I got the following errors:-

. ERROR in C:\Users\dleun\AppData\Local\Temp\android8370208749590542939sketch\app\src\main\java\processing\test\logic_analyser_arduino_pde\Logic_analyser_arduino_pde.java (at line 352)
cursor(HAND);
^^^^
HAND cannot be resolved to a variable

  1. ERROR in C:\Users\dleun\AppData\Local\Temp\android8370208749590542939sketch\app\src\main\java\processing\test\logic_analyser_arduino_pde\Logic_analyser_arduino_pde.java (at line 354)
    cursor(HAND);
    ^^^^
    HAND cannot be resolved to a variable

  1. ERROR in C:\Users\dleun\AppData\Local\Temp\android8370208749590542939sketch\app\src\main\java\processing\test\logic_analyser_arduino_pde\Logic_analyser_arduino_pde.java (at line 356)
    cursor(HAND);
    ^^^^
    HAND cannot be resolved to a variable

  1. ERROR in C:\Users\dleun\AppData\Local\Temp\android8370208749590542939sketch\app\src\main\java\processing\test\logic_analyser_arduino_pde\Logic_analyser_arduino_pde.java (at line 358)
    cursor(HAND);
    ^^^^
    HAND cannot be resolved to a variable

  1. ERROR in C:\Users\dleun\AppData\Local\Temp\android8370208749590542939sketch\app\src\main\java\processing\test\logic_analyser_arduino_pde\Logic_analyser_arduino_pde.java (at line 360)
    cursor(HAND);
    ^^^^
    Please help to fix it.
    Thank you, guys.

Arduino not sending data ?

Hi !

I've been trying to run the project on W7 with an arduino UNO (r3) without success.

I've setup LA_port to COM3 (port used by arduino IDE), baudrate is the same in the .pde and .ino. The ino file was pushed to the arduino UNO without error (except a warning about F_CPU being redefined). I then opened the pde sketch from processing with no errors. The L led on the arduino went off, flashed and then went back on. As no data were printed (not even a timestamp or a horizontal line), I cliked on 'start' but nothing happened except the 'new data coming' line being printed and the RX led of the arduino flashing once. The TX led on the arduino is always off.

So processing is able to send commands to the arduino but the arduino doesn't seems to send any data. So far I've tried rebooting, pushing again the ino file, with various baudrate (also changed in processing), on two usb ports. I've also tested the arduino itself and had no problem to print the reading from a pin on serial port COM3 in the serial monitor.

Any ideas ? Thanks for your help !

Running processing.pde

Hello,
I'm a bit confused on how I'm supposed to run the .pde application. I uploaded the MEGA firmware for my Arduino mega, and then opened processing.pde in the Arduino editor, I get various errors when compiling it, therefore I think I did something wrong.
Thanks for your help

STM32F1 - *'struct GPIO_TypeDef' has no member named 'regs' *

File: https://github.com/aster94/logic-analyzer/tree/master/Microcontroller_Code/STM32F1
I changed the name for "STM32F1.ino" to "STM31F1_LogicAnalyzer.ino"

C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void startLA()':
STM31F1_LogicAnalyzer:48:20: error: 'struct GPIO_TypeDef' has no member named 'regs'
initial = GPIOB->regs->IDR >> 12;
^~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void loop()':
STM31F1_LogicAnalyzer:56:18: error: 'struct GPIO_TypeDef' has no member named 'regs'
state = GPIOB->regs->IDR >> 12;
^~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino: In function 'void reset_timer()':
STM31F1_LogicAnalyzer:87:3: error: 'systick_uptime_millis' was not declared in this scope
systick_uptime_millis = -1;
^~~~~~~~~~~~~~~~~~~~~
STM31F1_LogicAnalyzer:88:3: error: 'SYSTICK_BASE' was not declared in this scope
SYSTICK_BASE->CNT = 0;
^~~~~~~~~~~~
C:\Temp_Sami\Arduino_Examples\STM31F1_LogicAnalyzer\STM31F1_LogicAnalyzer.ino:88:3: note: suggested alternative: 'TIM1_BASE'
SYSTICK_BASE->CNT = 0;
^~~~~~~~~~~~
TIM1_BASE
exit status 1
'struct GPIO_TypeDef' has no member named 'regs'

ESP8266 not working, 'reset' everytime

Thank you for the project, it would be very helpful when debugging protocols.

I am using it on nodemcu (ESP8266), but every time when sending 'G' to the ESP8266, will cause it to reset. The error message:

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

I tried to debug, it looks like collect(); cased this problem.
Do you have any idea?
Thank you.

new features

@sancho11

We need to decide which formattation of the code we will keep because it is becoming a mess of whitespaces, wrong indentation ecc. Which IDE are you using for processing and which one for arduino?
I am using vscode for arduino and the default formatting and for processing the default IDE but the default formatting is not very good, maybe is better to use all on vscode this way the formatting between arduino and processing will be the same

I also made a todo list

  • formatting
  • use of pinMode and digitalWrite outside time-critical task. This will improve readability and won't change the efficency
  • the steps of the mouse wheel when we are in a deep zoom is too big, we should change the steps according to the reducer
  • use of the LED_BUILTIN for readability and easier port to new boards
  • comment out the debug print statemens
  • move the button for the times print in the bottom bar
  • move instructiuon in the readMe
  • change the reducer with the mouse wheel
  • auto adjust the size of the screen based on the pin used, maybe too much work, better to focus on other task ๐Ÿ˜…
  • pass the number of samples directly from processing (this way we won't need to modify the MCU sketches, all the configuration will be in processing)
  • in the code comments use english and add more comments for functions and where needed
  • new images and update readme
  • the first draw is far from the left border
  • clean of the code, slipt of functions, use better names for the variables
  • add custom board and rework pinassigment
  • run on all the boards

What do you think about?
I can work on the communication of the samples number between processing and arduino

Other arduino models

Hi,
do you test your code on other boards?, i have a little arduino nano v3.0.

Possible LA GUI changes.

Hi,

First, this is NOT an issue and like the LA processing frontend, you have created!

Now, I have made a few changes (still ongoing and testing) Would you be interested in them?

I have added a LA query option that will allow for:

  • Give a name for the LA in use.
  • Give the max amount of samples it can read.
  • Tell the number of Lines it has.
  • The line names (pins) can be set by the LA hardware.
  • Give the highest baud rate it can run at.

The GUI now sends the query command to the LA and if the baud rate is different than the current one, it resets it. This is mainly for LA hardware that can easily do more than 115k. The line names sent back are used for the display. The display will be dynamically set for the number of lines (max of 8 for now) This is still on my to-do list but should be doable. Set the number of samples dynamically is still on the list to do as well.

I have added a status line to the bottom and set the window title bar with the current LA connected to it.

Let me know if you would care to use them.

Thanks for your work.
Scott

la_changes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.