Contact

If you have some questions or issues please open it on our Github repository here:

https://github.com/Ardulink/Ardulink-2/issues

If you can’t use Github or for other reasons, please send us a message with the following form. We will reply to it as soon as possible.

 

[contact_form lang=en]

 

19 Risposte a “Contact”

  1. Buonasera Luciano,

    sto provando a replicare il programma presente nel video
    https://www.youtube.com/watch?v=mrfu3X1PlY8
    Ho scaricato il pacchetto Ardulink ma non riesco a inserire correttamente le librerie necessarie su Eclipse perché non sono molto pratico.

    In particolare:
    1) col comando “Build path” ho messo in “referenced libraries” i files “ardulink.jar” “ch.ntb.usb-0.5.9.jar” “bluecove-2.1.1-SNAPSHOT.jar” “RXTXcomm.jar”

    2) ho scritto le seguenti righe copiando dal video (con qualche modifica perché dispongo solo di due arduino UNO)

    —— INIZIO ———
    import org.zu.ardulink.*;
    import org.zu.ardulink.connection.*;
    import org.zu.ardulink.connection.bluetooth.*;
    import org.zu.ardulink.connection.proxy.*;
    import org.zu.ardulink.connection.serial.*;
    import org.zu.ardulink.connection.usb.*;
    import org.zu.ardulink.event.*;
    import org.zu.ardulink.gui.*;
    import org.zu.ardulink.gui.customcomponents.*;
    import org.zu.ardulink.gui.customcomponents.joystick.*;
    import org.zu.ardulink.gui.digistump.*;
    import org.zu.ardulink.gui.event.*;
    import org.zu.ardulink.gui.facility.*;
    import org.zu.ardulink.gui.icons.*;
    import org.zu.ardulink.io.*;
    import org.zu.ardulink.protocol.*;
    import org.zu.ardulink.event.DigitalReadChangeEvent;
    import ch.ntb.usb.*;
    import ch.ntb.usb.logger.*;
    import ch.ntb.usb.testApp.*;
    import ch.ntb.usb.usbView.*;
    import com.ibm.oti.connection.btgoep.*;
    import com.ibm.oti.connection.btl2cap.*;
    import com.ibm.oti.connection.btspp.*;
    import com.ibm.oti.connection.tcpobex.*;
    import com.intel.bluetooth.*;
    import com.intel.bluetooth.btgoep.*;
    import com.intel.bluetooth.btl2cap.*;
    import com.intel.bluetooth.btspp.*;
    import com.intel.bluetooth.gcf.socket.*;
    import com.intel.bluetooth.obex.*;
    import com.intel.bluetooth.tcpobex.*;
    import com.sun.cdc.io.j2me.btgoep.*;
    import com.sun.cdc.io.j2me.btl2cap.*;
    import com.sun.cdc.io.j2me.btspp.*;
    import com.sun.cdc.io.j2me.tcpobex.*;
    import com.sun.midp.io.j2me.btgoep.*;
    import com.sun.midp.io.j2me.btl2cap.*;
    import com.sun.midp.io.j2me.btspp.*;
    import com.sun.midp.io.j2me.tcpobex.*;
    import javax.bluetooth.*;
    import javax.microedition.io.*;
    import javax.obex.*;
    import gnu.io.*;

    public class Main {

    public static void main(String[] args) {
    Link linkArduinoUNO1 = Link.createInstance(“arduinoUNO-1”);
    Link linkArduinoUNO2 = Link.createInstance(“arduinoUNO-2”);
    // TODO Auto-generated method stub

    String portNameArduinoUNO1 = linkArduinoUNO1.getPortList().get(0);
    String portNameArduinoUNO2 = linkArduinoUNO2.getPortList().get(1);

    while(true) {
    blink (linkArduinoUNO1, 11);
    blink (linkArduinoUNO2, 10);

    }
    }
    }
    —— FINE ———

    In particolare il comando
    blink (linkArduinoUNO1, 11);
    non viene riconosciuto

    Ho provato anche col comando
    sendPowerPinSwitch (linkArduinoUNO1, 11, 1);
    ma anche quello non viene riconosciuto

    Mi può dare qualche informazione a riguardo?
    Se mi risponde via mail posso inviarle una stampa video dell’albero sulla destra di Eclipse

    La ringrazio
    Francesco

  2. Buonasera Luciano
    stavo provando il tuo esempio del blinking led ma non mi funziona, il circuito è ok perchè l’ho testato con arduino IDE e funziona. ho linkato tutte le librerie nel classpath e ho scelto rxtx e le dll apposite per il mio sistema operativo windows 8.1, l’output della console è il seguente ma il led non si accende:

    set 15, 2016 9:29:22 PM org.zu.ardulink.ConnectionContact writeLog
    INFORMAZIONI: found the following ports:
    set 15, 2016 9:29:22 PM org.zu.ardulink.ConnectionContact writeLog
    INFORMAZIONI: COM3
    Connecting on port: COM3
    set 15, 2016 9:29:22 PM org.zu.ardulink.ConnectionContact writeLog
    INFORMAZIONI: connection on COM3 established
    Connected:true
    Send power:1
    Send power:0
    Send power:1
    Send power:0
    Send power:1
    Send power:0

  3. Hello Luciano,

    I need to print rotary encoder values from arduino in java.
    But cannot catch the serial values in java.

    This is my Java Code:
    private RplyEvent rplyEvent2;

    public void U_speed(int pwm) throws InterruptedException, IOException {
    System.out.println(“pwm of u = ” + pwm);
    link.sendCustomMessage(“encoder”);
    rplyEvent2 = null;
    int reply = (int) rplyEvent2.getParameterValue(“encoder_reply”);
    System.out.println(“it is” + reply);
    }

    This is my arduino code:

    else if(inputString.substring(6,15) == “cust/encoder”) { // Stop Listen Analog Pin (this is general code you can reuse)

    Serial.print(“alp://rply/”);
    Serial.print(“ok?id=”);
    Serial.print(“0”);
    Serial.print(“&encoder_reply=”);
    Serial.print(encoder_val);

    Serial.print(‘\n’); // End of Message
    Serial.flush();
    }

  4. hi all
    spoke to @pfichtner on the github platform but as i understand that is a bug reporting platform so i am doing it here.

    i am new to the whole scene so there is lots i do not understand and i currently lack basic examples and step by step instructions on how to get this thing working.
    after a few hours of playing around(and talking to @pfichtner)
    all i am trying to do is blink the onboard LED. nothing fancy.

    i am using windows 7.
    coding on netbeans.
    i have an arduino uno and have loaded the ArdulinkProtocol.ino file successfully on the arduino.
    these are the imports that i have done

    import java.io.IOException;
    import java.util.List;
    import java.util.Scanner;
    import java.util.concurrent.TimeUnit;
    import org.ardulink.core.Link;
    import org.ardulink.core.Pin;
    import org.ardulink.core.Pin.DigitalPin;
    import org.ardulink.core.convenience.Links;

    import org.ardulink.core.linkmanager.LinkManager;
    import org.ardulink.core.serial.rxtx.SerialLinkConfig;
    import org.ardulink.util.URIs;

    i have found the below code and am running this.

    public static void main(String[] args) throws InterruptedException, IOException {
    SerialLinkConfig config;
    LinkManager.Configurer configurer;
    Link link;// = Links.getDefault();
    String s = “ardulink://serial?port=COM13&baudrate=115200&pingprobe=true&proto=ardulink2&waitsecs=20”;
    link = LinkManager.getInstance().getConfigurer(URIs.newURI(s)).newLink();
    try {
    Pin.DigitalPin pin = Pin.digitalPin(13);
    boolean power = true;
    while (true) {
    System.out.println(“Send power:” + power);

    link.switchDigitalPin(pin, power);

    power = !power;
    TimeUnit.SECONDS.sleep(2);
    }
    } catch(Exception e){
    e.printStackTrace();
    }
    }

    this is the error that i am getting

    Exception in thread “main” java.lang.NoClassDefFoundError: org/ardulink/core/beans/BeanProperties
    at org.ardulink.core.linkmanager.LinkManager$DefaultConfigurer.(LinkManager.java:366)
    at org.ardulink.core.linkmanager.LinkManager$1.getConfigurer(LinkManager.java:544)
    at blinkled.BlinkLed.main(BlinkLed.java:27)
    Caused by: java.lang.ClassNotFoundException: org.ardulink.core.beans.BeanProperties
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    … 3 more
    C:\Users\228525\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
    BUILD FAILED (total time: 0 seconds)

    please help as i do not know how to fix any of this?

  5. Software console refuses to work. Tells of: Can´t run AMD 64 dll on IA 32 machine.
    Using latest JRE. Sad, because proggie looks promising.

  6. Hello. Thank you for getting back to me about my last question (https://forum.arduino.cc/index.php?topic=526130.0). I took a hiatus from the project but now I’m back to finish it. I want to test your solution but I’m afraid I’ve run into another problem.

    I installed and am running Ardulink 2.1.0 on Ubuntu. I renamed the ardulink-mqtt file to “ardulink-mqtt.jar” and put it in my /home/xerocraft folder. Then I executed the command:

    java -jar /home/xerocraft/ardulink-mqtt.jar -d 2

    and I got the following error:

    Error: A JNI error has occurred, please check your installation and try again
    Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/camel/CamelContext
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
    at java.lang.Class.getMethod0(Class.java:3018)
    at java.lang.Class.getMethod(Class.java:1784)
    at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
    Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    … 7 more

    Could the error be caused by a type mismatch with RXTX?

    Thank you,
    Jeremy

  7. I try to run application

    and occurs this errors

    java.lang.IllegalStateException: asciiString must not be null
    at com.connection.util.Preconditions.checkNotNull(Preconditions.java:35)
    at com.connection.util.URIs.newURI(URIs.java:18)
    at com.connection.gui.connectionpanel.ConnectionPanel$1.getListCellRendererComponent(ConnectionPanel.java:90)

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *