Tuesday 3 February 2009

First Files

Hi everyone,

HERE are the basic connector/example files I went over last session. As i mentioned, we will be starting work tomorrow during class, so it is important that you have figured out who you are working with and that you bring some basic materials.

see you tomorrow

8 comments:

  1. Nick,

    Im trying to establish a connection between my arduino sensors and the browser page you send us, but I keep getting the error message "Failed to open comm port - connection refused" in my Terminal window (im on OSX).

    Maya is working fine, as is my ardunio board and sensors (Ive tested them in Max MSP). Ive uploaded the arduino sketchbook to my board, edited the serproxy.cfg file and ran the serproxy file.

    Any suggestions?

    thanks!

    Rich

    ReplyDelete
  2. Hey Rich-
    every time I've ever gotten that error it was because of a small error in the serproxy.cfg file.

    I would:

    open the Arduino IDE:

    Under tools, check what port the arduino is connected on. (It can happen that they change)

    in the serproxy make sure you put the number in both places for the port

    for example if it is on COM3:
    comm_ports=3 //this value is 3
    net_port3=5331 //change the name to net_port3

    for example if it is on COM4:
    comm_ports=4 //this value is 4
    net_port4=5331 //change the name to net_port4

    ReplyDelete
  3. thanks Nick,

    the problem Im having though is that I cant find out which port Im on!

    under Tools I have a 'Serial Port' drop down menu which tells me im on /dev/cu.usbserial-A6006klf, but I have nothing telling me what COM port im using...

    are the serial/com ports different things?!

    cheers

    ReplyDelete
  4. I didn't realize you were on a Mac. If you notice there is a seperate section for OSX and they are called serial ports on macs. If you:

    open serproxy.cfg
    delete all the text in it.
    replace it with the text below / save it
    it should work
    --------------------------------------

    newlines_to_nils=true

    # Default settings
    comm_baud=57600
    comm_databits=8
    comm_stopbits=1
    comm_parity=none

    # Idle time out in seconds
    timeout=300
    Serial_device1=/dev/cu.usbserial-A6006klf
    comm_ports=1
    serial_device1=/dev/cu.usbserial-A6006klf
    net_port1=5331

    ReplyDelete
  5. hmm Im still having no luck with this im afraid, I still get the "connection refused" message...

    Am I supposed to have the serproxy file running when I open the swf? And am I right in thinking that the swf should read the sensor values without me needing Maya open?

    thanks

    ReplyDelete
  6. Well I now feel like an idiot after mistaking an "l" for an "I" (a lower case L for an upper case i)

    got things working anyway, now to try to get the communication with Maya...

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. NICK,
    I'M TRYING TO INSTALL YOUR VERSION OF MAYA AT HOME, WOULD LIKE TO USE IT FOR MY THESIS BUT I'M HAVING DIFFICULTIES INSTALLING THE LICENSE.
    THE PROBLEM IS THAT WHEN BROWSING FOR THE LICENSE FILE AND CHOOSING THE AW.DAT FILE IS THROWS THE FOLLOWING MESSAGE:
    INVALID HOST IDENTIFIER OF "00173f351A9.(LINE1)
    BTW I HAVE VISTA64 AS O.S. DO YOU THINK THATS A PROBLEM.
    COULD YOU PLEASE ADVICE?
    THANKS,
    ALEJANDRO

    ReplyDelete