Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant' make work the example_SLIP-OSC #12

Open
moebiussurfing opened this issue Apr 25, 2016 · 5 comments
Open

cant' make work the example_SLIP-OSC #12

moebiussurfing opened this issue Apr 25, 2016 · 5 comments

Comments

@moebiussurfing
Copy link

moebiussurfing commented Apr 25, 2016

hey @bakercp , thanks for the addon and the new improvements!

I had errors of out of memory on the Arduino code (using the Arduino IDE ). Then I uploaded the code with the Eclipse Arduino IDE and then upload worked. But the LED do not switch his state.

When the OF app is not linked to Arduino, it hangs blinking like if it was looped on the setup function. When they are linked, nothing happens on Arduino when clicking the OF app. Seems that LEDcontrol function is not called to run...

I am using an Arduino Mega.

@bakercp
Copy link
Owner

bakercp commented Apr 25, 2016

Hmm ... honestly I haven't tested this much -- it was contributed by @avilleret -- @avilleret do you have any thoughts?

avilleret added a commit to avilleret/ofxSerial that referenced this issue Apr 27, 2016
@avilleret
Copy link
Contributor

afair, I tested it on a Teensy 3.2 which has a lot more memory than Arduino UNO.
but I may have fixed the issue by reducing buffer size
@moebiussurfing could you try this : avilleret@3ffcc85
I can't test it on Arduino UNO yet

@moebiussurfing
Copy link
Author

moebiussurfing commented Apr 29, 2016

Hey @avilleret , thanks for replay! I tried your fix:

-PacketSerial_<SLIP, SLIP::END, 8192> serial;
+PacketSerial_<SLIP, SLIP::END, 128> serial;

but I can't make it work neither...
Nothing received on the Arduino side I think.

BTW, You are using two times the :

  serial.setPacketHandler(&onPacket);
  serial.begin(115200);

on the 'setup' and on the 'LEDcontrol' functions. I tried to bypass the second one too...

In the OF side '/src/ofApp.cpp', I also tried to change this from 8192 to 128 just in case..:

    // sender.sendMessage(m);
    // this code come from ofxOscSender::sendMessage in ofxOscSender.cpp
    static const int OUTPUT_BUFFER_SIZE = 8192;

any idea?

@moebiussurfing
Copy link
Author

hey @bakercp ... I have no success on this yet.. :(

Any recommendation of what can I use to do this kind of job? (USB serial communication)

I don't need to make the control using OSC on the project I am working now. I want to learn something solid to implement a stable and fast bidirectional control between a Raspberry and an Arduino.

What do you think I can learn to use on future jobs too?

@moebiussurfing
Copy link
Author

moebiussurfing commented Jan 20, 2017

It worked! 0.9.8 (ofxIO with stable branch) / Windows VS. Arduino UNO and Mega. Thanks @bakercp @avilleret !
all the examples are working fine.
This one just switch the Arduino LED on/off by clicking the mouse.
(It whould be nice to complete the example by adding backwards communication; by sending an osc -or packet- message from Arduino to OF)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants