Giter VIP home page Giter VIP logo

ms3's People

Contributors

mrharolda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ms3's Issues

Multiple Includes-> Error

First of all thank you for your work.
I have only one problem, when I include your library in two different header files, it throws some errors.
I looked through it and the Headerguards and all #endif are okay. Do you have an idea whats going on?

Errors:
.pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In functionQueue':
(.text+0x0): multiple definition of Queue' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dataOut2' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of bstr_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of bstr_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of bstr_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of mod_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of mod_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of mod_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dd1_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dd1_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dd1_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of fx_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of fx_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of fx_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of rev_G_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of rev_R_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of rev_Y_type' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dbug_data' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here .pio\build\megaatmega2560\src\main.cpp.o (symbol from plugin): In function Queue':
(.text+0x0): multiple definition of dbug_address' .pio\build\megaatmega2560\src\control.cpp.o (symbol from plugin):(.text+0x0): first defined here

USB Communication Error

Hello, huge thanks for creating this library it's pretty widely used in the Boss Katana / Arduino world. You've done a fantastic job simplifying the process to get lots of projects off the ground.

I'm having a recent issue that so far no one on forums has been able to help with:

I get this output:


--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on /dev/cu.usbmodem14301  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
*** USB task state: 20.
*** USB task state: 40.
*** USB task state: 50.
*** USB task state: 51.
TX: F0 7E 00 06 02 41 33 03 00 00 06 00 00 00 F7 (15) *** Transfer error: 13.
TX: F0 7E 00 06 02 41 33 03 00 00 06 00 00 00 F7 (15) *** Transfer error: 13.
TX: F0 41 00 00 00 00 33 12 7F 00 00 01 01 7F F7 (15) *** Transfer error: 13.
*** Up and ready!
Add item 0 to the queue: 0x10000 / 0x11 / 0x2.
Ready To Rock!
Picked up item 0 from the queue: 10000 / 0x11 / 0x2.
TX: F0 41 00 00 00 00 33 11 00 01 00 00 00 00 00 02 7D F7 (18) *** Transfer error: 13.
Performing Test Read
Add item 0 to the queue: 0x60000540 / 0x11 / 0x1.
Picked up item 0 from the queue: 60000540 / 0x11 / 0x1.
TX: F0 41 00 00 00 00 33 11 60 00 05 40 00 00 00 01 5A F7 (18) *** Transfer error: 13.
Performing Test Read
Add item 0 to the queue: 0x60000540 / 0x11 / 0x1.
Picked up item 0 from the queue: 60000540 / 0x11 / 0x1.
TX: F0 41 00 00 00 00 33 11 60 00 05 40 00 00 00 01 5A F7 (18) *** Transfer error: 13.
Performing Test Read
Add item 0 to the queue: 0x60000540 / 0x11 / 0x1.
Picked up item 0 from the queue: 60000540 / 0x11 / 0x1.
TX: F0 41 00 00 00 00 33 11 60 00 05 40 00 00 00 01 5A F7 (18) *** Transfer error: 13.

The Katana and the USB cable all seem fine as Boss Tone Studio works with my mac. Nothing has changed hardware/wiring-wise/ or code wise on my side and I'm using code from my previously working projects.

Running the board_qc example in the USB Host Serial library give me this output:

Circuits At Home 2011
USB Host Shield Quality Control Routine
Reading REVISION register... Die revision 03
SPI long test. Transfers 1MB of data. Each dot is 64K................ SPI long test passed
GPIO test. Connect GPIN0 to GPOUT7, GPIN1 to GPOUT6, and so on
Test failed. Value written: 00 Value read: FF
Press any key to continue...
GPIO test passed.
PLL test. 100 chip resets will be performed
Resetting oscillator

Reset number 0 Time to stabilize - 300 cycles

Reset number 1 Time to stabilize - 300 cycles

Reset number 2 Time to stabilize - 300 cycles

Reset number 3 Time to stabilize - 300 cycles

Reset number 4 Time to stabilize - 300 cycles

Reset number 5 Time to stabilize - 300 cycles

... etc etc

Reset number 99 Time to stabilize - 300 cycles

Checking USB device communication.

Reset complete. Waiting for the first SOF...
Getting device descriptor
Descriptor Length:	12
Descriptor type:	01
USB version:		0200
Device class:		FF
Device Subclass:	00
Device Protocol:	FF
Max.packet size:	40
Vendor  ID:		0582
Product ID:		01D8
Revision ID:		0000
Mfg.string index:	01
Prod.string index:	02
Serial number index:	00
Number of conf.:	01

All tests passed. Press RESET to restart test

So it seems to be able to see the Katana on the other side.

If I add:

#define DEBUG_USB_HOST
#define EXTRADEBUG

to 'Usb.h' I can get slightly more info, but I don't quite understand it.

> Executing task: platformio device monitor <

--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on /dev/cu.usbmodem14301  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
*** USB task state: 20.
*** USB task state: 40.
*** USB task state: 50.
*** USB task state: 51.
TX: F0 7 Length:02 41 33000F00 00 06 00 00 00 F7 (15)SendSysEx:
 Total pktSize: 0005
 wptr:  04
 *** Transfer error: 13.
TX: F0 7 Length:02 41 33000F00 00 06 00 00 00 F7 (15)SendSysEx:
 Total pktSize: 0005
 wptr:  04
 *** Transfer error: 13.
TX: F0 4 Length:00 00 33000F7F 00 00 01 01 7F F7 (15)SendSysEx:
 Total pktSize: 0005
 wptr:  04
 *** Transfer error: 13.
*** Up and ready!
Add item 0 to the queue: 0x10000 / 0x11 / 0x2.
Ready To Rock!
inTransfer():0D
Picked up item 0 from the queue: 10000 / 0x11 / 0x2.
TX: F0 4 Length:00 00 33001200 01 00 00 00 00 00 02 7D F7 (18)SendSysEx:
 Total pktSize: 0006
 wptr:  04
 *** Transfer error: 13.
inTransfer():0D
inTransfer():0D
inTransfer():0D
inTransfer():0D

... (lots of the above repeated)

inTransfer():0D
inTransfer():0D
inTransfer():0D
inTransfer():0D
inTran

I appreciate the issue might be somewhere inside the USB Host Serial Library and not with the MS3 library, but I am yet to find anyone who apparently understands both that might be able to help!

Huge thanks!
Steve

Compiling error with Teensy 3.6

Hello,
I have this library working well with an Arduino Uno, however, I get an error when compiling the sample sketch on a Teensy (which is what I want to use for my finished project).

Is there a way to fix this?
Thank you.

Here is the error:

Arduino: 1.8.8 (Mac OS X), TD: 1.45, Board: "Teensy 3.6, All of the Above, 16 MHz (No USB), Debug, US English"

In file included from /Users/steve/Documents/Arduino/deleteMe/deleteMe.ino:12:0:
/Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h: In member function 'bool MS3::receive(long unsigned int&, byte&)':
/Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h:184:46: error: no matching function for call to 'MS3::RecvData(unsigned int*, byte [64])'
if (MS3::RecvData(&rcvd, incoming) == 0) {
^
In file included from /Users/steve/Documents/Arduino/libraries/MS3-master/MS3.h:75:0,
from /Users/steve/Documents/Arduino/deleteMe/deleteMe.ino:12:
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:75:17: note: candidate: uint8_t USBH_MIDI::RecvData(uint16_t*, uint8_t*)
uint8_t RecvData(uint16_t bytes_rcvd, uint8_t dataptr);
^
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:75:17: note: no known conversion for argument 1 from 'unsigned int
' to 'uint16_t
{aka short unsigned int*}'
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:76:17: note: candidate: uint8_t USBH_MIDI::RecvData(uint8_t*, bool)
uint8_t RecvData(uint8_t outBuf, bool isRaw=false);
^
/Users/steve/Documents/Arduino/libraries/USB_Host_Shield_2.0-master/usbh_midi.h:76:17: note: no known conversion for argument 1 from 'unsigned int
' to 'uint8_t* {aka unsigned char*}'
Error compiling for board Teensy 3.6.

Some questions

Hey Harold!

First of all, thanks a lot for all the information you have provided.

I've done some research and I was playing around sending/receiving MIDI messages to/from my Boss GT-1 using a C# application I've built and everything seems to be working fine.

I'm planning on building a simple arduino midi controller with an USB host shield inside a standard guitar pedal enclosure and some foot switches. I've ordered an Arduino Pro Mini 3.3V and a mini USB host shield.

Do you think that's enough to make it work (Any comments)?

Last thing: I assume the GT-1 will send 5V data. If that's right, I also assume that the chip in the host shield will also be fine with it even though it's powered with 3.3V. Should I be worried about this?

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.