Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Controller Software not finding a serial port
wandrson
Newbie
Posts: 23
Permalink
Post Controller Software not finding a serial port
on: June 14, 2014, 02:05
Quote

Well, I have gotten all of the electrical connections and tested that everything is working by running the Motor Shield example sketches, and the servo sketch. Both operated as expected. But after loading the firmware the controller software is saying that it can't find a serial port.

Here are the stats:
My machine is an Ubuntu 14.04 64-bit machine.
The Arduino is a genuine Mega 2560 R3
The motor shield is an Adafruit v2
The controller software is the precompiled java from:
https://code.google.com/p/polargraph/downloads/list/Polargraph 1.7-1.6.zip (using the 64-bit linux directory)

and I am using this firmware on the Mega:
https://github.com/euphy/polargraph_server_a1

I have verified the settings for the Adatfruit v2, and have monitored the output in the Serial Monitor of the Arduino 1.0.5

Any suggestions for debugging the problem?

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 08:24
Quote

I'm almost useless when it comes to Linux, but the forum's search feature returned some possibly helpful hints:
http://www.polargraph.co.uk/forum/polargraphs-group2/troubleshooting-forum5/no-comm-ports-listed-using-linux-thread244/
http://www.polargraph.co.uk/forum/polargraphs-group2/code-software-forum2/serial-communications-under-gnulinux-thread133/

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 17:55
Quote

Hello, if arduino can connect and see the READY... statements that spam the serial port, that's good.

The problem with the precompiled binaries is that they include the RXTX library that does the comms. I think it's not very good, and because this app is based on processing 1.5, it isn't the newest version of rxtx either. I remember reading something about 64 bit versions being especially bad, but I can't place the discussion now.

When you say that the controller can't find a serial port, that means that the pop up window listing the serial ports is just empty?

sn

wandrson
Newbie
Posts: 23
Permalink
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 18:31
Quote

The second post that kongorilla pointed to provided a solution to getting the app to recognize my serial ports. Basicallly, it appears that the RXTX library only looks for serial ports with the names of /dev/ttyS##, while the Arduino's will either have serial ports of /dev/ttyACM# (newer models) or /dev/ttyUSB# (older models and most clones).

By issuing the command(s) from the post above like so

sudo ln -s /dev/ttyACM0 /dev/ttyS40
sudo ln -s /dev/ttyACM1 /dev/ttyS41
sudo ln -s /dev/ttyACM2 /dev/ttyS42
sudo ln -s /dev/ttyACM3 /dev/ttyS43
sudo ln -s /dev/ttyUSB0 /dev/ttyS50
sudo ln -s /dev/ttyUSB1 /dev/ttyS51
sudo ln -s /dev/ttyUSB2 /dev/ttyS52
sudo ln -s /dev/ttyUSB3 /dev/ttyS53

The controller application will then recognize when a serial port is occupied by an Arduino.

Right now, I am using an Arduino Mega an Adafruit V2 motor shield since that combination allows me to have all features on a test bed that should work. Ultimately, I plan to make use of a Chipkit UNO32 to replace the Mega if I can get it to work (I have had it laying around and don't really use it), or I have picked up two UNO sized clone boards that use a 1284 chip that has more than enough flash for all of the code, plus it has more ram memory than even the Mega. Either option will allow me to play with the firmware without concerns about memory.

Right now, I have verified that the controller software will raise and lower the pen servo, as well as turn the main servos. I just need to walk through your instructable on setting up the proper configuration before I run my first plot.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 18:34
Quote

Hurray, good work, and thanks Kong for collecting that wisdom.

wandrson
Newbie
Posts: 23
Permalink
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 22:37
Quote

Thanks Sandy. Now I am having some issues understanding how the controller software works.

After connecting to the serial port and taking the queue off of pause I can use the oen up and pen down, as well as the move to point (kind of), but if I try to push the buttons for set machine width, etc... Nothing happens.

Another button, the Select Area will let me select an area, but then it seems to stay in the select area mode.

Any ideas?

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Controller Software not finding a serial port
on: June 14, 2014, 22:57
Quote

Hello, the UI library has a few foibles, and I guess my design has a few too.

Select area (and a few other functions), is modal. So click select area, then select your area, then click again to come out of 'select area' mode.

Move image is like this too, it's a common pattern in this app.

The interface buttons that have a lighter coloured arrow on their left-side (for instance 'machine width', 'pen tip size') are number spinners, so you change the value by clicking on one and dragging up or down.

sn

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.032 seconds.