Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: Garug

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    31
    Views
    1,079

    Is there a way to power the teensy 4.1 or 4.0 via...

    Is there a way to power the teensy 4.1 or 4.0 via the USB host connection, taking power from the camera?

    The Camera can power SSD disk when connected to the same USB C connector. The camera is...
  2. Replies
    31
    Views
    1,079

    Yes some of those printouts where not fully...

    Yes some of those printouts where not fully accurate, however 0xd002 is Shutter Angle command, it is working now.

    This is just a fast test, put some commands on setup to demonstrate before it is...
  3. Replies
    31
    Views
    1,079

    Thanks, I have first version of the camera...

    Thanks, I have first version of the camera control working, and did my own printing routines.

    There is some remaining issues, but I think they all are on the camera custom command set.

    The MTP...
  4. Replies
    31
    Views
    1,079

    Just an update: After a lot of learning of USB...

    Just an update: After a lot of learning of USB PTP and C++ and a lot of more work than I originally thought some good progress. The camera is connected correctly, its features listed and it reports...
  5. Replies
    31
    Views
    1,079

    That looks much like the library I have been...

    That looks much like the library I have been using, https://github.com/PaulStoffregen/USBHost_t36 confusing that there is many versions of the same, without much explanation what is the difference...
  6. Replies
    31
    Views
    1,079

    I got it finally to the point that the...

    I got it finally to the point that the USBHost_t36 does its thing, detects attachment or removal of USB device and gets basic information. This does not include yet any attempt to actually implement...
  7. Replies
    31
    Views
    1,079

    After some experimenting, I can delete everything...

    After some experimenting, I can delete everything else from the MassStorageDriver.cpp but this and the "msController msrive(myusb);" must be on the main code.



    #include <Arduino.h>
    #include...
  8. Replies
    31
    Views
    1,079

    After looking more the code maybe there would...

    After looking more the code maybe there would have been a very simple way to enable the debug printing, but I just do not understand it so got rid of it. The debug printing on enumeration.cpp is now...
  9. Replies
    31
    Views
    1,079

    And this is how the ehci.cpp and...

    And this is how the ehci.cpp and MassStorageDriver.cpp functions get called. Booting the teensy and removing USB stick after result provided.





    MSC TEST

    Initializing USB Drive(s)...
  10. Replies
    31
    Views
    1,079

    But the problem is it prevents using the normal...

    But the problem is it prevents using the normal Serial.print as they have defined #define print USBHost::Print_

    Also the question is, where is this printing?

    I have now changed these to


    ...
  11. Replies
    31
    Views
    1,079

    This is giving me big headache #define print ...

    This is giving me big headache

    #define print USBHost::print_
    #define println USBHost::println_

    Why is it, what is it, where does it print and why can I not use the normal Seria.print
    ...
  12. Replies
    31
    Views
    1,079

    The MSC example seems to run happily with these...

    The MSC example seems to run happily with these files (all these files on the .ino directory and reference to library changed to USBHost_t36_.h so it should be using these files only for the USB host...
  13. Replies
    31
    Views
    1,079

    Thanks, I look into it. The library comments say...

    Thanks, I look into it. The library comments say

    "// Transfer_t: These are used for all communication. Data transfers
    // are placed into work queues, to be executed by the EHCI in
    // ...
  14. Replies
    31
    Views
    1,079

    The mscTesting.ino works fine, and I have now...

    The mscTesting.ino works fine, and I have now edited it so that PC sends nothing, just receives this on terminal. (teensy receives this from USB stick)



    MSC TEST

    Initializing USB Drive(s)...
  15. Replies
    31
    Views
    1,079

    I am trying to figure out how the...

    I am trying to figure out how the MassStorageDriver.cpp sends an inquiry, how it gets the address, endpoint pipe etc. but it is pretty hopeless for me. Edit: After writing this it seems maybe the...
  16. Replies
    31
    Views
    1,079

    I have now been going trough the USBHost_t36 ...

    I have now been going trough the USBHost_t36

    The ehci.cpp says



    // All USB EHCI controller hardware access is done from this file's code.
    // Hardware services are made available to the...
  17. Replies
    31
    Views
    1,079

    The USB Host HIDDeviceInfo example looks...

    The USB Host HIDDeviceInfo example looks promising starting point, this is what BlackMagic Pocket 4k camera reports when connected





    USBDeviceInfo claim this=20005DE8
    ...
  18. Replies
    31
    Views
    1,079

    The problem was I did not understand what MTP...

    The problem was I did not understand what MTP responder meant, now I do.

    I think if I could just request and get camera info using USB Host, from there I could make it using the PTP standard and...
  19. Replies
    31
    Views
    1,079

    I thought I try the MTP first, but it seems I am...

    I thought I try the MTP first, but it seems I am badly lost with the very basics.

    1. The Teensyuino 1.54 has the USB type MTP Disc (experimental), but are these selections not for the standard...
  20. Replies
    31
    Views
    1,079

    Thanks of pointing to MTP. I do have Teensy...

    Thanks of pointing to MTP.

    I do have Teensy 4.1 and have played with the USB Host somewhat but not MTP, I do have several cameras supporting the PTP, not sure but maybe even smart phones have that...
  21. Replies
    31
    Views
    1,079

    The ISO 15740 standard cost almost 200 euro, so...

    The ISO 15740 standard cost almost 200 euro, so did not get it yet, but the PIMA 15740: 2000 is available for free.

    it seems to be from time ISO 15740 was not ready yet.

    "The technical content...
  22. Replies
    31
    Views
    1,079

    Teensy 4.1 Camera Control

    Modern cameras support USB PTP camera control. It looks like Teensy 4.1 has all the HW needed. Is there SW support for this, any existing projects that I just did not find?

    Here is one project I...
  23. Replies
    94
    Views
    9,943

    On obvious serious errors like this, it should...

    On obvious serious errors like this, it should not warn but refuse to compile. The warnings I find not useful at all, super difficult to read with the long paths included.
  24. Replies
    94
    Views
    9,943

    Well maybe it would be time to have an option on...

    Well maybe it would be time to have an option on compiler to validate them...

    one would not need to run that every time, but when problems if would be super useful and time saving tool.

    I...
  25. Replies
    94
    Views
    9,943

    With LabView I can easily make what ever...

    With LabView I can easily make what ever plotting, the problem just is I only have that on Windows and I am done with Windows unless I absolutely need to go there (and when I do it always takes hours...
  26. Replies
    94
    Views
    9,943

    "that is why it's called undefined behavior " yes...

    "that is why it's called undefined behavior " yes I guess so :)

    but wonder, for the compiler it should be easy to see something gets written outside the limits. Why does it let to compile this?
  27. Replies
    94
    Views
    9,943

    " Best to have the sketch limit what is sent, or...

    " Best to have the sketch limit what is sent, or problems can be expected."

    The thing is, I need to see all samples to see they are correctly sampled and no jitter. I really hope the serial...
  28. Replies
    94
    Views
    9,943

    After some more investigation this morning with...

    After some more investigation this morning with fresh eyes, found the problem, and it is on my code. The strange thing though is sometimes this fails, and with the same problem the millis() may work...
  29. Replies
    94
    Views
    9,943

    This problem feels it is not my code or even...

    This problem feels it is not my code or even libraries, but something under them. The code needs i2c IMU to run. Also as said the same code edited again from older version works fine. So it is very...
  30. Replies
    94
    Views
    9,943

    Thanks, I uninstalled Java and reinstalled, and...

    Thanks, I uninstalled Java and reinstalled, and now the hangs at least when accessing file seems to be gone.

    But any idea how micros() could break like that? I do not see how that could be Java...
  31. Replies
    94
    Views
    9,943

    Is there a version for macOS Big Sur 11.4 ? I...

    Is there a version for macOS Big Sur 11.4 ?

    I am currently using long time a go installed 1.53 and having some hangs on UI, like when accessing files. also now some weird issues with micros() a...
  32. Replies
    10
    Views
    2,294

    Yes, the usb_desc_copy.c was a bad idea, I really...

    Yes, the usb_desc_copy.c was a bad idea, I really could not imagine compiler would use it just because it is on that directory and prefer it over usb_desc.c that I was editing. Anyway, now the...
  33. Replies
    19
    Views
    3,653

    What is the current status on this, does Teensy...

    What is the current status on this, does Teensy 4.0 have true HW support to upload FW over HW serial?
  34. Replies
    206
    Views
    264,260

    I do not understand. That is very strange, but...

    I do not understand. That is very strange, but seems to be the case. I removed the file form the directory, and still compiles just fine.

    But after restarting Arduino environment does not compile...
  35. Replies
    206
    Views
    264,260

    Here is a video the usb_desc.c has been renamed...

    Here is a video the usb_desc.c has been renamed usb_desc_d.c there is no usb_desc.c

    The joystick name has been edited on the usb_desc.h that is on the same directory, so the directory should be...
  36. Replies
    10
    Views
    2,294

    My main problem is that edits or deletion of...

    My main problem is that edits or deletion of usb_desc.c are not effective. I spend couple of hours reading forums and trying things before realising I can delete the file and it compiles just the...
  37. Replies
    206
    Views
    264,260

    "If building for Teensy 4.x you use the files in...

    "If building for Teensy 4.x you use the files in cores\teensy4"

    The problem is exactly that I can delete usb_desc.c from the teensy4 directory and it builds (and joystick works). The usb_desc.h on...
  38. Replies
    206
    Views
    264,260

    Where is the correct usb_desc.c to be modified...

    Where is the correct usb_desc.c to be modified located??

    Teensy 4.0 Teensyuino 1.53, I can delete it from Teensy4 and Teensy3 folders and makes no difference, nor the changes I do on them.
  39. Replies
    10
    Views
    2,294

    I do not get it, I have changed all usb_desc.c to...

    I do not get it, I have changed all usb_desc.c to Uusb_desc.c and it just compiles and works as before, where are the USB Joystick definitions??
  40. Replies
    10
    Views
    2,294

    Was there any solution to this? how do I reduce...

    Was there any solution to this? how do I reduce the number of buttons to 10?

    Some practical and working example how to change something simple like this would be very useful.

    what I edit in...
  41. Replies
    21
    Views
    1,134

    There was stubit mistake I had, forgot the...

    There was stubit mistake I had, forgot the adc->adc0->startTimer(18000); //frequency in Hz is for both separatelly and one of them was at 3000 so it was limiting also the other one.

    This is...
  42. Replies
    21
    Views
    1,134

    Now, but in practise how would that be different...

    Now, but in practise how would that be different by doing it with interrupt timer?

    Could the teensythreading use the CPU time for something else while the analogueRead() waits the conversion to...
  43. Replies
    21
    Views
    1,134

    Currently I get around 10k speeds when the MCU is...

    Currently I get around 10k speeds when the MCU is not busy doing anything else. the problem is, when there is movement on the screen, there is a lot of pixels to calculate and the analogue read...
  44. Replies
    21
    Views
    1,134

    The startSynchronizedSingleRead() sounds...

    The startSynchronizedSingleRead() sounds interesting but should get that working with DMA. Maybe that is what is happening with the above /* uses startSingleRead() example, should just find how to...
  45. Replies
    21
    Views
    1,134

    I am not sure if I did read long enough but looks...

    I am not sure if I did read long enough but looks like that uses analogueRead() that waits for the reading to be ready.

    The reason I want to use DMA is to free processor resources and keep reading...
  46. Replies
    21
    Views
    1,134

    It is totally ok to read Joystick X and Y for 6...

    It is totally ok to read Joystick X and Y for 6 ms and then Potentiometer 1 and 2 for 6 seconds and continue like that. But I would like to have as many good samples during the 6 ms as possible so...
  47. Replies
    21
    Views
    1,134

    This works now pretty nicely, but update rates...

    This works now pretty nicely, but update rates are much lower than above.

    Value up to 10 000 Hz can be put to startTimer(4000); //frequency in Hz but it provides no better update-rates than 4000...
  48. Replies
    21
    Views
    1,134

    I got this working surprisingly well with quick...

    I got this working surprisingly well with quick and thirty method, modifying it from the exambles. There is currently at least the problem that

    pabdma->userData(average_value);

    does not get...
  49. Replies
    21
    Views
    1,134

    Ok, so the problem was the old libraries on...

    Ok, so the problem was the old libraries on Teensyuino 1.53. I deleted the /ADC contents and copied the Ginthub contents there and now get it compiling and this seems to work



    #include <ADC.h>...
  50. Replies
    21
    Views
    1,134

    The DMA examples compile but never enter setup,...

    The DMA examples compile but never enter setup, or at least do not print Serial.print("START"); that is right after the while (!Serial && millis() < 5000) ; when cleaning them up of all the #if...
Results 1 to 50 of 181
Page 1 of 4 1 2 3 4