Comments (11)
Have you something attached to 0 o 1 PINs on your Arduino? Have you another software already listening on COM3 (maybe Ardulink console or Arduino Serial Monitor)?
from ardulink-2.
No other software open when I've tried.
I'd tested with a led connected at some ports, including 0 and 1, but seems it's made no difference when i tried without the leds or something else.
from ardulink-2.
Perhaps we could localize the problem if the OP would tell has which operating system he is using! ;-)
from ardulink-2.
Windows 10, arduino uno :P
from ardulink-2.
Ah Windows! I guess I found the problem! ;-)
For localizing the problem could you please tell us:
- Does jssc work with Ardulink Console?
- Does Ardulink Ardulink Console works reliable?
- Does unplug/plug help sometimes?
@LucianoZu I guess the problem could actual be Windows 10 related, there was a similar problem within Arduino IDE: arduino/Arduino#4792 (comment)
from ardulink-2.
Does jssc work with Ardulink Console? Yes, works fine
Does Ardulink Ardulink Console works reliable? I found no problem so far
Does unplug/plug help sometimes? I still got "port busy" in my code. Unplugging did not solve.
I'll take a look in this thread
Thanks in advance
from ardulink-2.
elpmoraes,
could you please try the following?
-
Run your code with serial connection instead of serial-jssc (this use RXTX library and you have to put right .dll in the same folder of your code)
-
Run data receiver sample both with serial and serial-jssc
Thanks
from ardulink-2.
I interpreted the outcommented code lines as things probed that didn't work. Am I right?
from ardulink-2.
Do you mean in windows pingprobe=true doesn't work? Maybe. I usually set it to false.
from ardulink-2.
There is no reason why pingprobe should not work when running on windows. Additionally pingprobe is just a shortcut: The maximum time to wait for a ping response is the same time a non-pingprobe connection waits/sleeps. So after that amount of time the pingprobe connection should work even if there has no ping response been received.
from ardulink-2.
java -jar example-datareceiver-2.0.1.jar
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
Error 0x5 at ..\src\termios.c(892): Acesso negado.Exception in thread "main" java.lang.RuntimeException: gnu.io.PortInUseException: Unknown Application
at org.ardulink.util.Throwables.propagate(Throwables.java:22)
at org.ardulink.core.linkmanager.LinkManager$DefaultConfigurer.newLink(LinkManager.java:468)
at org.ardulink.DataReceiver.createLink(DataReceiver.java:147)
at org.ardulink.DataReceiver.work(DataReceiver.java:94)
at org.ardulink.DataReceiver.doMain(DataReceiver.java:90)
at org.ardulink.DataReceiver.main(DataReceiver.java:78)
Caused by: gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:467)
at org.ardulink.core.serial.rxtx.SerialLinkFactory.serialPort(SerialLinkFactory.java:108)
at org.ardulink.core.serial.rxtx.SerialLinkFactory.newLink(SerialLinkFactory.java:69)
at org.ardulink.core.serial.rxtx.SerialLinkFactory.newLink(SerialLinkFactory.java:51)
at org.ardulink.core.linkmanager.LinkManager$DefaultConfigurer.newLink(LinkManager.java:466)
... 4 more
AND, when i've tried with serial-jssc:
java -jar example-datareceiver-2.0.1.jar -connection ardulink://serial-jssc
Exception in thread "main" java.lang.IllegalArgumentException: No factory registered for "serial-jssc", available names are [ardulink://serial, ardulink://proxy]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.ardulink.util.Optional.newException(Optional.java:159)
at org.ardulink.util.Optional.getOrThrow(Optional.java:152)
at org.ardulink.core.linkmanager.LinkManager$1.getConfigurer(LinkManager.java:540)
at org.ardulink.DataReceiver.createLink(DataReceiver.java:147)
at org.ardulink.DataReceiver.work(DataReceiver.java:94)
at org.ardulink.DataReceiver.doMain(DataReceiver.java:90)
at org.ardulink.DataReceiver.main(DataReceiver.java:78)
@pfichtner
Yes, the outcommented lines isn't working.
I had uploaded the ArdulinkProtocol sketch before, is that right, or doesn't make diff ?
from ardulink-2.
Related Issues (20)
- Servo HOT 1
- Does Ardulink-2 support Arduino Mega2560 board/Onewire HOT 3
- Can`t read data sent from arduinio in java. HOT 2
- NullPointerException when connecting via network proxy server HOT 8
- Console HOT 4
- UniqueID example HOT 1
- URISyntaxException Thrown while Calling Links.getDefault() HOT 22
- eclipse palettes HOT 2
- serialversionUID HOT 2
- LCD control HOT 3
- jSSC and RXTX crashing JVM in Windows 10 HOT 7
- Custom components panel HOT 2
- OpenHAB Binding HOT 4
- Getting it to run in Windows 10, IntelliJ HOT 12
- Doc / WebPage improvements HOT 6
- [security enh.] Setting board name / password HOT 3
- ardulink.org is down HOT 3
- Migrate to (at least) Java 8 HOT 2
- Migrate to JUnit5 (with or wo assertj?) HOT 1
- Problem with link understanding + pin setup. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ardulink-2.