Search results

  1. G

    NativeEthernet.h hangs NativeEthernet.cpp, while(!link_status){ } (line293) WHY???

    After reviewing the licensing terms, though it is not critical at this time, I can not use QNEthernet.h, so have to find solution for the startup problem with no ethernet or wrongly configured ethernet to get the code running despite that with the NativeEthernet.h I just do not understand, is...
  2. G

    NativeEthernet.h hangs NativeEthernet.cpp, while(!link_status){ } (line293) WHY???

    Thanks for the answers, I have now tested a bit with QNEthernet.h and it removes the startup issue, but seems to have some problems with my REST API implementation, works but after some receptive updates, the update rate comes very slow. This could very well be my primitive REST API at this...
  3. G

    NativeEthernet.h hangs NativeEthernet.cpp, while(!link_status){ } (line293) WHY???

    I found kind of workaround, I am using fixed IP, with it, it does not seem to get through unless link status ok. but like this it gets past the Ethernet.begin after a minute or so even when cable not connected. (this is on Teensy 4.1) //setup Ethernet.begin(mac); //it goes trough this...
  4. G

    NativeEthernet.h hangs NativeEthernet.cpp, while(!link_status){ } (line293) WHY???

    The NativeEthernet.h hangs at Ethernet.begin( unless the Ethernet cable is connected and link ok. the NativeEthernet.cpp seems to have while(!link_status){ } (line293) WHY??? how am I supposed to get on setup past Ethernet.begin( if the network is not yet correctly configured, so that I...
  5. G

    TEENSY 4.0 EEPROM & RAM Questions

    that looks handy
  6. G

    TEENSY 4.0 EEPROM & RAM Questions

    I did not yet fully test, but after first fast test it seems to work as intended, the floats are correctly stored. this stores the 4 bytes per float byte* data_FW = (byte*)&FocusCalib[i][j]; for (int k = 0; k < sizeof(float); k++) {...
  7. G

    TEENSY 4.0 EEPROM & RAM Questions

    Thanks for the fast replies. This gives just the read and write https://www.pjrc.com/teensy/td_libs_EEPROM.html So I used those. (but maybe should look into put and get if they are available) It is a float, so 4 bytes, this does it correctly (or at least seems to do what it should)...
  8. G

    TEENSY 4.0 EEPROM & RAM Questions

    What is the Status with Teensy 4.1 EEPROM? I am writing //float FocusCalib[12][4]; Serial.println("***EEPROM WRITE***"); // Store Focus calibration data addr = 0; for (int i = 0; i < 12...
  9. G

    Teensy 4.1 usb host power question

    Yes and that is the a bit strange thing, when powered from computer via the USB connection no problems, and as I understand that should be limited to 500 mA. When powering from 500 mA good quality POLOLU DC converter*, there is problems. *https://www.pololu.com/product/2843 this should be...
  10. G

    Teensy 4.1 usb host power question

    After some more testing I think the problem is the 5V 500 mA power supply. If everything connected and main power provided, the USB devices do not get power. If the Teensy 4.1 is powered and connecting USB Hub, it gets power. if then also connecting Loupe Deck, to the HUB, also it gets power...
  11. G

    Teensy 4.1 usb host power question

    Funny thing, if I use a USB hub in between the Loupe Deck live and USB Host, it gets power just fine, this is simple USB hub with no power it self. Maybe the problem will be solved when I clear up the code. But strange that with USB connected it works and without not, except if USB Hub in between.
  12. G

    Teensy 4.1 usb host power question

    This is a bit older code, but it works just fine when powered via USB, it has the USB_SER.begin(); is something else needed. USBHost USB_SER; USBHub hub1(USB_SER); USBSerial_BigBuffer USB_serial(USB_SER, 1); // Handles anything up to 512 bytes PTPDevice CAM1(USB_SER); USBDriver *drivers[]...
  13. G

    Teensy 4.1 usb host power question

    An other Teensy 4.1 usb host power question I have similarly 5V to VIN. It seems USB Host has power only if the normal USB is connected. If I disconnect the normal USB after power on the power remains on USB Host. I had at setup, but that should anyway had pass trough after 5 seconds...
  14. G

    Teensyduino 1.58 Released

    Is there some example how to do this? should it be here, how? class HID_Input : public USBHIDInput { public: HID_Input(USBHost &host, uint32_t Usage = 0) : fixed_Usage_(Usage) { INIT(); } uint32_t Usage(void) {return Usage_;} protected: virtual hidclaim_t...
  15. G

    Teensyduino 1.58 Released

    I rather get just the RAW data updates, and decide then what to do with that. for a mouse 8 updates on the buffer would not be good, but not terribly bad either for most use, 8 ms update so 64 ms latency. For some applications it could be good just to get the latest, but most often probably...
  16. G

    Teensyduino 1.58 Released

    So do you think the mouse actually sends x and y zero at the end of the movement? and it is just missed somehow? But over all I would rather just get all the data that belongs to the mouse and is relevant for the control movements detection, unfiltered. I mean, just receive and process it on my...
  17. G

    Teensyduino 1.58 Released

    The actual data comes with these (also above) case 0x010030: { mouse_tmp.MOV[0].x = value; } break; case 0x010031: { mouse_tmp.MOV[0].y = value; } break; case 0x010038: { mouse_tmp.sroll.action[0] = value; } break; case 0x090001: {...
  18. G

    Teensyduino 1.58 Released

    Edit: ignore the below. After looking into my code, it is just the 700xx messages that arrives after mouse movement has stoped. That just triggers my code to reprocess the last received data. I must look a bit more into it to eliminate that it is on my code, but why would the mouse send...
  19. G

    Teensyduino 1.58 Released

    Working with the USBHost_t36.h, after updating to 1.58 Logitech wireless ERGO M575 started providing following messages constantly couple of times per second, I guess it is really sending those, and previously they just did not come trough ? Any idea what they mean? When mouse not moved...
  20. G

    USB Host 36 MIDI RAW data?

    Interesting application, thanks. How ever it seems it does not quite catch all data, usually less than 20 messages, sometimes non. there is 24 potentiometers and 8 sliders. Usually the sliders are not on the messages, so makes it difficult to see, but did not see any 0 values. It probably is...
  21. G

    USB Host 36 MIDI RAW data?

    The complete code I can not provide.
  22. G

    USB Host 36 MIDI RAW data?

    About the 127 Slider problem, Made a video and noticed an additional thing The first startup is by loading the sketch, it seems to work the same as actually cutting the power from Teensy Second is by disconnecting the USB, but noted now, if the sliders where not moved this problem remains...
  23. G

    USB Host 36 MIDI RAW data?

    1. power-on of the Teensy with the LaunchControl connected to the USBhost header? Yes 2. Is there a way to prove that this is not caused by the LaunchControl? No, and I originally thought it is to blame, but it works ok if I disconnect and connect the USB, i.e power on Teensy stays on, just...
  24. G

    USB Host 36 MIDI RAW data?

    Is there a way to get the RAW incoming data instead of doing this? // MIDI message, defined by these 5 numbers (except SysEX) type = USBhostMIDI[LCXL1.port].getType(); // MIDI message, 128-255 channel = USBhostMIDI[LCXL1.port].getChannel(); // MIDI channel, 1-16 data1 =...
  25. G

    Teensyduino 1.58 Beta #3

    I am currently trying to solve a MIDI problem, it is with 1.57.2 I have tested so far. The problem is that the LaunchControl XL sends the slider and potentiometer positions at startup, immediately after power on. If slider(s) are fully up (value 127) they get value 0, if they are just slightly...
  26. G

    Teensyduino 1.58 Beta #3

    Yes, as mentioned Arduino IDE 2.0.5 is by default with 1.57.2, and I have been testing that today. But I could/would very well use beta if that provides help with the wireless mouse etc. and not too badly breaks other stuff. With IDE 2.0.5 how do I install beta, and can I easily select beta or...
  27. G

    Teensyduino 1.58 Beta #3

    Thanks, with the help of /Users/{username}/Library/Arduino15/packages/teensy/hardware/avr/ and Go I found the relevant files It seems the Arduino IDE 2.0.5 is by default with 1.57.2 also after void USBHIDParser::out_data(const Transfer_t *transfer) {...
  28. G

    Teensyduino 1.58 Beta #3

    The big frustration is, I have no idea where this is or how to find that 'Look in the USBHost_t36 directory' This is Mac Arduino IDE 2.0.5 as for "version of Teensyduino" how do I see that. I just installed the 2.0.5 and it took care f everything. (I do know where to find the USBHost_t36...
  29. G

    Teensyduino 1.58 Beta #3

    I think tough the problem, I am having is more related to USBHost_t36.h if I update my code to the board with Arduino 1.8.19 it works fine. if I update it with the 2.0.5 I get glitches on the Stream Deck display (it updates 90x90 pixel are 60 Hz using HID) and also get the terminal...
  30. G

    Teensyduino 1.58 Beta #3

    Double post removed, some glitch on the forum...
  31. G

    Teensyduino 1.58 Beta #3

    I am testing now with the Arduino IDE 2.0.5 and just lost half of day troubleshooting something that I thought was due the code change I made https://forum.pjrc.com/threads/72432-USBHost_t36-h-multiple-serial-and-HID-connect-disconnect?p=322784#post322784 One should never do two changes at the...
  32. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    EDIT, the below is maybe not relevant, just noticed that there is now the problem also with older code. I switched this morning to Arduino 2.x... oh s*** one should never do two changes at same time, it works ok with Arduino 1.8.19... After some more looking into it, the below works on the old...
  33. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    There is still the problem that Loupe Deck USB disconnection goes unnoticed This prints nothing when it is disconnected void HID_Input::disconnect_collection(Device_t *dev) { if (--collections_claimed == 0) { mydevice = NULL; Usage_ = 0; Serial.println("Device...
  34. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    The solution was finally, well short, but took me long time to arrive there. Getting the serial number for every message was not practical due how the USBHost_t36.h is but with this I get the deviceID that is the same ID the device got when it was connected, so with that it can be identified...
  35. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    Well some success ChatGPT can actually get the USBHost_t36.h from GitHub when told so, and provide much better responses This works, but still some problems void HID_Input::hid_input_data(uint32_t Usage, int32_t value) { // Get the device that provided the data Device_t *dev =...
  36. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    Ok, good thanks. The question still, when using virtual void hid_input_begin(uint32_t topUsage, uint32_t type, int lgmin, int lgmax); virtual void hid_input_data(uint32_t Usage, int32_t value); virtual void hid_input_end(); Is there some way to see the VID and PID of the device that...
  37. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    The Transfer_t mytransfers[2] __attribute__ ((aligned(32))); What would be good size to have? In theory there might be joystick, mouse, keyboard, 3d mouse, midi device Loupedeck and/or stream deck connected at the same time? I have now CNT_HIDDEVICES = 18; is there any harm to have it 18...
  38. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    I connected also wireless 3D connexion and needed to at some more devices :) But with this there is some problems, it randomly succeeds to connect often hangs or crashes and despite more ports added does not work together with the mouse. ***DRIVER CONNECTED: *** Device hub1 2109: 2813 -...
  39. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    This is more hypothetical question, but if two mice would be connected, how to tell from witch the data came from. When they are connected they could be given individual name but when HID messages come is there any way to catch that name (from the level I am doing the coding now) I mean for...
  40. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    About receiving the HID messages, I get them now using hid_input_begin, hid_input_data and hid_input_end() That works and using the TopUsage and Usage the parsing will be fine, but is that the way to do it. I mean is there not a way to see from what device that message was? On this mouse...
  41. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    I got both Stream deck and Logitech ERGO M575 working, the mouse just needed a lot of ports, I guess because it uses the Logitech wireless USB module. The connections/disconnection still needs work. Actually connecting/disconnecting currently seems to work pretty ok, if disconnecting the USB...
  42. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    This is the current version, Loupe deck + mouse works and provides printout (for mouse) *******************HID UPDATE*********************** x -2 y 0 s 0 b1 0 b2 0 b3 0 Begin topUsage:10000 type:2 min:0 max:1 Usage 90001 value 0 Usage 90002 value 0 Usage 90003 value 0 Usage 90004 value 0...
  43. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    Some documentation or help would be very Wellcome. the detection of serial stop is still a mystery, and I did not yet set multiple HID devices up, but looking what the void HID_Input::hid_input_data(uint32_t Usage, int32_t value) { Serial.print(" Usage "); Serial.print(Usage, HEX)...
  44. G

    USBHost_t36.h multiple serial and HID, connect, disconnect?

    Hi, I have been trying many things, I can have a HID and USB Host Serial working at the same time, but currently not two HID, With this code it is clear why as it has only one HID, lets see that a bit later, but now working detecting USB HOST serial disconnect. I think it gets now correctly set...
  45. G

    where is printout >>>USBHIDParser::out_data coming from

    Thanks, it must be that, will verify tomorrow
  46. G

    where is printout >>>USBHIDParser::out_data coming from

    Yeah, so you would want to see the 5000 lines of code, to solve an issue that hopefully is clear from >>>USBHIDParser::out_data I do not think the problem is on my code. I think that comes from some library where I activated some debug printout but can not find where, I was hoping someone would...
  47. G

    where is printout >>>USBHIDParser::out_data coming from

    Hi, working with USBHost_t36.h and Teensy 4.1. It is likely I activated the printout somehow half year ago, but can not figure where. On terminal I get constant printout >>>USBHIDParser::out_data >>>USBHIDParser::out_data >>>USBHIDParser::out_data >>>USBHIDParser::out_data...
  48. G

    Teensyduino 1.58 Beta #2

    The Loupedeck issues I got solved, but in general, where to find the latest teensyuino for Mac (Ventura M1)
  49. G

    Connecting Teensy 4.0 to CMOS

    What needs to be considered when connecting Teensy 4.0 to CMOS levels. Is a level shifter needed? The CMOS devise gives specifications CMOS 3.1V, High: min 2.7V, Low:Max 0.4V If level sifter is needed, is there some recommended, I only need to connect 2 lines and rather something easy to solder.
  50. G

    Connection lost to Arduino after editing VENDOR_ID and PRODUCT_ID, How to recover?

    If it is not possible to have VENDOR_ID and PRODUCT_ID separately defined for MIDI and Serial, would it be possible to define them via name.c like MANUFACTURER_NAME and PRODUCT_NAME can be, how? This is what I have now on the name.c that is on same directory as the .ino // To give your...
Back
Top