GithubHelp home page GithubHelp logo

Port Busy about ardulink-2 HOT 11 OPEN

elpmoraes avatar elpmoraes commented on May 30, 2024
Port Busy

from ardulink-2.

Comments (11)

LucianoZu avatar LucianoZu commented on May 30, 2024

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.

elpmoraes avatar elpmoraes commented on May 30, 2024

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.

pfichtner avatar pfichtner commented on May 30, 2024

Perhaps we could localize the problem if the OP would tell has which operating system he is using! ;-)

from ardulink-2.

elpmoraes avatar elpmoraes commented on May 30, 2024

Windows 10, arduino uno :P

from ardulink-2.

pfichtner avatar pfichtner commented on May 30, 2024

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.

elpmoraes avatar elpmoraes commented on May 30, 2024

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.

LucianoZu avatar LucianoZu commented on May 30, 2024

elpmoraes,
could you please try the following?

  1. 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)

  2. Run data receiver sample both with serial and serial-jssc

Thanks

from ardulink-2.

pfichtner avatar pfichtner commented on May 30, 2024

I interpreted the outcommented code lines as things probed that didn't work. Am I right?

from ardulink-2.

LucianoZu avatar LucianoZu commented on May 30, 2024

Do you mean in windows pingprobe=true doesn't work? Maybe. I usually set it to false.

from ardulink-2.

pfichtner avatar pfichtner commented on May 30, 2024

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.

elpmoraes avatar elpmoraes commented on May 30, 2024

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)

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.