Hi there,
At the moment I'm trying to get a setup working involving an Arduino, PPC Mac Mini (OSX Leopard) and Flash. I want to use Serial Proxy to get the connection between Arduino and Flash. I installed the FTDI drivers for virtual comm port and configured Serial Proxy as seen on many locations on the net, I'm positive that I have the correct port configured in Serial Proxy. However, an issue I'm not getting over is that when I have Serial Proxy running and I start my Flash app, I get the following error in the Serial Proxy terminal window: "failed to open comm port - connection refused". I also get this when I try to telnet to the designated port which I've configured in the Serial Proxy .cfg file. When I attempt the above in Windows I'm able to connect to the port using telnet ("telnet localhost 5331") just fine (must of course have the Arduino connected to the PC or else the comm port doesn't exist).
I've been able to upload a program from the Arduino IDE to the Arduino on this Mac Mini, but can't can't can't seem to get communication with Flash working. What's going on here!???
Could use some insights, hope you have some.
Adriaan
To elaborate a little bit:
Here's what's in the cfg file of serproxy:
Config file for serproxy
See serproxy's README file for documentation
Transform newlines coming from the serial port into nils
true (e.g. if using Flash) or false
newlines_to_nils=true
serial_device1 = /dev/cu.usbserial-A600490m
Comm ports used
comm_ports=1
Default settings
comm_baud=9600
comm_databits=8
comm_stopbits=1
comm_parity=none
Idle time out in seconds
timeout=300
Port 1 settings (ttyS0)
net_port1=5331
And here's what I get when I have serproxy running and I type "telnet localhost 5331" in a Terminal window:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
.. and here's what the serproxy window outputs:
Failed to open comm port - connection refused
Seems like initially there's a connection but it's closed right away after that..... Still no clue what's going on here.... What to look for..... permissions? Firewall? Somehow a service not up and running or..... ???? Any help is appreciated, tnx!
I've just tracked down the root of my problem. I'll remind you of how I had the Arduino's device name defined in the cfg file of serproxy:
serial_device1 = /dev/cu.usbserial-A600490m
Guess what the problem was? You shouldn't use spaces in the syntax!!
This works:
serial_device1=/dev/cu.usbserial-A600490m
I no longer have trouble getting serial messages from the Arduino to my Flash app through serproxy.
Hope this helps someone 