I am currently having problems using multiple arduinos at the same time using JArduino.
What I have done is copy the blink example, changed the actions and class name, then made the main method a regular method and just ran it from an external main method passing args to it. I do this twice.
My arduinos are on COM4 and COM5.
When I launch my program I enter COM4 but the second window that pops up for the next one only has the emulator as an option.
I have tried to just replace the choosing port window and just directly pass the com port as a string "COM4". However this tries to run the COM4 code on both of the arduinos, ignoring the other code I wrote for the other arduino.
Is there a work around for working with multiple arduinos or a proper way to use multiple arduinos?
UPDATE:
Working with the normal arduino rxtx library from the arduino playground, allows me to communicate to the second arduino at the same time but not through the JArduino. But the main thing is, is that I got an error if I tried to initialize it after doing the JArduino "start" method. (It could connect, but not write to data to the port, it would return that all ports are null)
I think the port is being turned off, cloned or somehow disabled when "starting the first JArduino"
Hello,
I am currently having problems using multiple arduinos at the same time using JArduino.
What I have done is copy the blink example, changed the actions and class name, then made the main method a regular method and just ran it from an external main method passing args to it. I do this twice.
My arduinos are on COM4 and COM5.
When I launch my program I enter COM4 but the second window that pops up for the next one only has the emulator as an option.
I have tried to just replace the choosing port window and just directly pass the com port as a string "COM4". However this tries to run the COM4 code on both of the arduinos, ignoring the other code I wrote for the other arduino.
Is there a work around for working with multiple arduinos or a proper way to use multiple arduinos?
UPDATE: Working with the normal arduino rxtx library from the arduino playground, allows me to communicate to the second arduino at the same time but not through the JArduino. But the main thing is, is that I got an error if I tried to initialize it after doing the JArduino "start" method. (It could connect, but not write to data to the port, it would return that all ports are null)
I think the port is being turned off, cloned or somehow disabled when "starting the first JArduino"