Git Product home page Git Product logo

Comments (6)

Martyx00 avatar Martyx00 commented on June 11, 2024

Sending any character via serial causes Hard Fault and register dump on the screen.
PXL_20230119_110040407

from la104.

gabonator avatar gabonator commented on June 11, 2024

Try this
webosc213.zip

from la104.

Martyx00 avatar Martyx00 commented on June 11, 2024

The issue is the same (except that the PC during the crash is now at 0x80644D0).

from la104.

gabonator avatar gabonator commented on June 11, 2024

I have just tried it and everything works well - at least on OSX. Make sure you have following page opened: https://rawgit.valky.eu/gabonator/LA104/master/system/apps_featured/69_webusbosc/web/v3/index.html

But I confirm that it crashes when I send a single character through serial link with
screen /dev/tty.usbmodem101 9600
as well as with
minicom -D /dev/tty.usbmodem101

This is a bit strange and I will investigate this issue following days

from la104.

Martyx00 avatar Martyx00 commented on June 11, 2024

Just made it work, I had to add permissions for USB control to my current user:

echo 'SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev"' > /etc/udev/rules.d/00-usb-permissions.rules
udevadm control --reload-rules

Than just add the user into the plugdev group and it should work.

from la104.

gabonator avatar gabonator commented on June 11, 2024

Found the bug, fixed here: 5ecea19

Unfortunately it is not possible to verify the remote procedure call interface with minicom. Every packet sent over USB is processed as a single command. There was a bug when the RPC did not expect unterminated messages to be received and sending single character caused a null pointer dereferencing. There is an easy trick how to test the RPC interface from command line:

echo 'DBG::Print("Hello!");' > /dev/cu.usbmodem1101
echo 'LCD::Bar(CRect(20, 20, 300, 150), 0xaaaa);' > /dev/cu.usbmodem1101
echo 'LCD::Print(50, 80, 0xffff, 0xaaaa, "Hello world!");' > /dev/cu.usbmodem1101

(in OSX redirecting to /dev/tty.usbmodem1101 did not work)

Thank you very much for reporting this issue and for the permissions hack

This is fixed app which should not crash (in worst case it should only freeze with assertion message)
69webos1.zip

from la104.

Related Issues (20)

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.