octows2811 movie2serial problem

Status
Not open for further replies.

simon

New member
I am currently building a 32x60 led backdrop for my band using teensy 3's and the octows2811 library

So far i only have 1 reel of leds but have managed to automate them with MIDI control changes recorded into ableton live
The plan will be to design a light show in sync with our backing tracks inside ableton


Im also looking into using VideoDisplay and movie2serial to do more complex animations but cant seem to get it working

i keep getting:

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Serial Ports List:
[0] "/dev/tty.usbmodem18991"
[1] "/dev/cu.usbmodem18991"
[2] "/dev/tty.Bluetooth-PDA-Sync"
[3] "/dev/cu.Bluetooth-PDA-Sync"
[4] "/dev/tty.Bluetooth-Modem"
[5] "/dev/cu.Bluetooth-Modem"
RXTX Warning: Removing stale lock file. /var/lock/LK.018.018.058


not really sure what to do, I've tried each serial port on the list and different versions of processing.
Any help would be appreciated!


Also is it possible to have both midi and serial as the usb type for the teensy?

Thanks
 
Does movie2serial print anything else? The serialConfigure() function prints a number of different messages, depending on what goes wrong. None of those appear in the text you posted.

In can't it's not obvious, you MUST put that port name into setup(), where it says "change these to your port names", like this:

Code:
void setup() {
  String[] list = Serial.list();
  delay(20);
  println("Serial Ports List:");
  println(list);
  serialConfigure("/dev/cu.usbmodem18991");  // change these to your port names
  if (errorCount > 0) exit();
  size(480, 400);  // create the window
  myMovie.loop();  // start the movie :-)
}

Your Teensy 3.0 must also be running the VideoDisplay example, of course.
 
Thanks Paul

Apologies for the lack of info

I had serialConfigure as /dev/tty.usbmodem18991
and nothing else was getting printed

But oddly i tried that on my macbook and it works fine
I just cant for the life of me get it to work on the mac mini, which is not a big deal now i guess


As for USB midi and serial

Im gonna try editing USB_desc.h to

Code:
#if defined(USB_SERIAL)
  #define VENDOR_ID		 0x16C0
  #define PRODUCT_ID 		0x0483
  #define DEVICE_CLASS		 2	// 2 = Communication Class
  #define MANUFACTURER_NAME	{'T','e','e','n','s','y','d','u','i','n','o'}
  #define MANUFACTURER_NAME_LEN	11
  #define PRODUCT_NAME		{'U','S','B',' ','S','e','r','i','a','l'}
  #define PRODUCT_NAME_LEN	10
  #define EP0_SIZE		64
  #define NUM_ENDPOINTS         6
  #define NUM_USB_BUFFERS	28
  #define NUM_INTERFACE		3
  
  #define CDC_STATUS_INTERFACE	0
  #define CDC_DATA_INTERFACE	1
  #define CDC_ACM_ENDPOINT		2
  #define CDC_RX_ENDPOINT       3
  #define CDC_TX_ENDPOINT       4
  #define CDC_ACM_SIZE          16
  #define CDC_RX_SIZE           64
  #define CDC_TX_SIZE           64
  
  #define MIDI_INTERFACE        2	// MIDI
  #define MIDI_TX_ENDPOINT      5
  #define MIDI_TX_SIZE          64
  #define MIDI_RX_ENDPOINT      6
  #define MIDI_RX_SIZE          64

  #define MIDI_DESC_OFFSET	(9 + 9+5+5+4+5+7+9+7+7 + 9)
  #define CONFIG_DESC_SIZE	(9 +9+5+5+4+5+7+9+7+7 +9+7+6+6+9+9+9+5+9+5)
  
  #define ENDPOINT2_CONFIG	ENDPOINT_TRANSIMIT_ONLY
  #define ENDPOINT3_CONFIG	ENDPOINT_RECEIVE_ONLY
  #define ENDPOINT4_CONFIG	ENDPOINT_TRANSIMIT_ONLY
  #define ENDPOINT5_CONFIG	ENDPOINT_TRANSIMIT_ONLY
  #define ENDPOINT6_CONFIG	ENDPOINT_RECEIVE_ONLY

Im not sure about the desc_offset though?

and usb_inst.cpp

Code:
#ifdef USB_SERIAL
usb_serial_class Serial;
usb_midi_class usbMIDI;
#endif


Is there anywhere else i would need to edit?

Or am i completely on the wrong track and this is way above my head?
 
Status
Not open for further replies.
Back
Top