You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues transmitting onto my port with the CANable adapter plugged in. I have downloaded ANT and Netbeans, and am working through the Netbeans IDE.
My CANable is plugged into an Anker USB splitter as I am working on a Microsoft Surface laptop (which only has one USB port), and it is also wired up to an Arduino Uno which is connected to the bottom of an Arduino CAN-Bus shield (See Below:)
I have double checked that everything is connected properly, with the red wire being the GND wire, yellow wire being the CANL wire, and orange wire being the CANH wire.
I also adjusted my COM ports in the windows device manager to ensure that each USB device has its own unique COM port. The CANable adapter is set to COM7 as seen in the screenshot:
When I run the Netbeans file, it opens up the cantact program window via Netbeans IDE. I then click over to the Config Window tab on the left:
then I select the COM7 port and the correct KBPS of 500 KBPS (based on the selected KBPS thru the Arduino IDE):
And for some reason, nothing happens when I click Start. I then go over to the Transmit Window to transmit the message, where it gives me the following error message:
FULL ERROR MESSAGE IN TEXT:*
jssc.SerialPortException: Port name - COM7; Method name - writeString(); Exception type - Port not opened.
at jssc.SerialPort.checkPortOpened(SerialPort.java:862)
at jssc.SerialPort.writeString(SerialPort.java:374)
[catch] at org.cantact.core.CantactDevice.sendFrame(CantactDevice.java:132)
at org.cantact.core.DeviceManager.transmit(DeviceManager.java:39)
at org.cantact.ui.TransmitTopComponent.transmitButtonActionPerformed(TransmitTopComponent.java:214)
at org.cantact.ui.TransmitTopComponent.access$000(TransmitTopComponent.java:35)
at org.cantact.ui.TransmitTopComponent$1.actionPerformed(TransmitTopComponent.java:187)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I would appreciate any guidance at all on what I am doing wrong and how to gain some progress towards a solution!
-Nathan
The text was updated successfully, but these errors were encountered:
Hi there,
I am having issues transmitting onto my port with the CANable adapter plugged in. I have downloaded ANT and Netbeans, and am working through the Netbeans IDE.
My CANable is plugged into an Anker USB splitter as I am working on a Microsoft Surface laptop (which only has one USB port), and it is also wired up to an Arduino Uno which is connected to the bottom of an Arduino CAN-Bus shield (See Below:)
I have double checked that everything is connected properly, with the red wire being the GND wire, yellow wire being the CANL wire, and orange wire being the CANH wire.
I also adjusted my COM ports in the windows device manager to ensure that each USB device has its own unique COM port. The CANable adapter is set to COM7 as seen in the screenshot:
When I run the Netbeans file, it opens up the cantact program window via Netbeans IDE. I then click over to the Config Window tab on the left:
then I select the COM7 port and the correct KBPS of 500 KBPS (based on the selected KBPS thru the Arduino IDE):
And for some reason, nothing happens when I click Start. I then go over to the Transmit Window to transmit the message, where it gives me the following error message:
FULL ERROR MESSAGE IN TEXT:*
jssc.SerialPortException: Port name - COM7; Method name - writeString(); Exception type - Port not opened.
at jssc.SerialPort.checkPortOpened(SerialPort.java:862)
at jssc.SerialPort.writeString(SerialPort.java:374)
[catch] at org.cantact.core.CantactDevice.sendFrame(CantactDevice.java:132)
at org.cantact.core.DeviceManager.transmit(DeviceManager.java:39)
at org.cantact.ui.TransmitTopComponent.transmitButtonActionPerformed(TransmitTopComponent.java:214)
at org.cantact.ui.TransmitTopComponent.access$000(TransmitTopComponent.java:35)
at org.cantact.ui.TransmitTopComponent$1.actionPerformed(TransmitTopComponent.java:187)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I would appreciate any guidance at all on what I am doing wrong and how to gain some progress towards a solution!
-Nathan
The text was updated successfully, but these errors were encountered: