Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • KurtE's Avatar
    Yesterday, 11:24 PM
    For more fun, I thought I would try out an older disk, I had sitting around, an older Toshiba drive that supports ESATA, was used on our older Directv box when their internal drive failed... It fails on the first...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    Yesterday, 04:10 PM
    @mjs513 - Thanks - still only able to do a little... But thought I would try a few things... Wondered if these libraries could handle USB plug in CDROM/DVD drives... So plugged one in ;) I have a memorex ......
    174 replies | 1908 view(s)
  • KurtE's Avatar
    Yesterday, 02:53 PM
    @wwatson - put in PR for fix to msInquiry, where the length of data to return was 0 in parameter list. Changed it to actual size... This appears to fix one of my SD Cards failing issue.
    174 replies | 1908 view(s)
  • KurtE's Avatar
    Yesterday, 01:17 PM
    You will sometimes get errors like this, if you do output a request and don't wait for the response and issue a new request. The hack I put in was to wait for the response to come back, at which time you have your...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-17-2019, 04:05 PM
    Quick update: I am still distracted and currently can not do much. But: this morning I synced up to the latest libraries, both uSDFS and MFC and tried running the sdfs test on the 1gb cruzer disk and it worked? So...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-16-2019, 06:47 PM
    I think the hack I did for hub is in https://forum.pjrc.com/threads/55821-USBHost_t36-USB-Mass-Storage-Driver-Experiments?p=205833&viewfull=1#post205833
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-16-2019, 02:50 PM
    Yep probably lots of code, but hopefully most of can be derived from existing libraries Back to this library: Also note unless it has changed the libraries and example there is no hub object defined, so if dish...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-15-2019, 07:15 PM
    @defragster - don’t have time at computer to look, at your EzDisk hang but looks like hang on one of my usb stick, where it hangs waiting for media ready... You might see if the initial code is calling some call...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-15-2019, 04:20 PM
    Done I think... done on iPad
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-15-2019, 03:38 PM
    @mjs513 time to merge this new branch back into Bluetooth branch?
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-15-2019, 01:35 PM
    My guess is you want code for the usb host to output in Audio format... Sorry I am probably not the best one to do such as I don’t do much with Audio Also busy with trying to integrate Bluetooth support as well as...
    4 replies | 209 view(s)
  • KurtE's Avatar
    05-15-2019, 01:05 PM
    Great. I am still distracted for maybe a couple of days, but will be fun to see how everything has progressed
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-14-2019, 01:54 PM
    Maybe someone will beat me to it, I did push up a change into my PS3_Motion.... branch, but have not tried to see if it fixes all of the issues yet. May be awhile before I will get a chance to try it out.
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-14-2019, 01:27 PM
    I agree, other than I also put that test in a conditional if (count)... Not sure what it would do with 0 count, but...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-14-2019, 01:03 PM
    for above the 8K transfer (2K * 4) I am thinking that some of the underlying stuff may need to debugged in usbhost_t36... In queue_Data_Transfer - Example this code: for (count=(len >> 14); count; count--) { next...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-14-2019, 12:25 PM
    Good Morning... Sorry I may not be able to help here much... Other diversions.... But in the code that queues the transfer, my version I put in stuff to detect if the calls fail... uint8_t...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-13-2019, 07:44 PM
    @mjs513 - Try first plugging in BT dongle, unplug, and then plug this one in... It should cycle through the colors and hopefully it should automatically try to pair... I believe there are messages stuff that print to...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-13-2019, 01:36 PM
    @wwatson, @WMXZ, @mjs513... I may not have much time to play here today, so thought I would revisit why the 1GB CRUZER (SanDisk) is not working... Endless loop waiting for media available... And document what I...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 10:47 PM
    Thanks @... Not sure how much more I will be able to do here for awhile. Like it might be awhile before I look at the Toshiba hard disk issue. I have not debugged the last command that error-ed out. As you...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 05:38 PM
    @wwatson @mjs513 @WMXZ - Glad we are making some progress here.. As we mentioned earlier on Bluetooth thread, it would be great to support some mass storage devices. I thought I would try with an Toshiba 1GB...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 04:10 PM
    @mjs513 and ... Neither did I know about descriptor 0x24... It is a class specific descriptor... Took me awhile to find:...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 02:58 PM
    Sounds good, I posted possible code for you try in previous posting (previous page)
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 02:58 PM
    Follow on to this... Looking at the line: WaitMediaReady RSP:70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 Looking at the structure returned, the interesting info is the 0x3A Which from the site:...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 02:40 PM
    @mjs513 and @wwatson - follow on to previous post... Maybe something like: bool msController::claim(Device_t *dev, int type, const uint8_t *descriptors, uint32_t len) { println("msController claim this=",...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 02:18 PM
    Should be easy enough: Just setup index to first endpoint in buffer set index or like for IN/OUT endpoints in code to something like 0xff , increment by the size (7), and then check the end point, if it is a Bulk...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 01:35 PM
    Actually sort of interesting. In particular this one shows 3 end points (The others show 2) 07 05 01 02 00 02 01 Endpoint = 1 OUT Type = Bulk Max Size = 512 Polling Interval = 1 07 05 82 02...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-12-2019, 01:17 PM
    @mjs513 - Sorry to hear that... I assume you already tried plugging it into your computer to maybe see if the battery will charge some... I know that helped on at lest one of the two other PS3 ones I received off of...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-12-2019, 12:55 PM
    @mjs513 and @wwatson and others... Wonder if your 1GB is hanging the same way as my 1GB... Note: I have additional debug stuff turned on: void msController::new_dataOut(const Transfer_t *transfer) { uint32_t...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 09:09 PM
    @all - With the one change I mentioned above: .CommandData = {CMDINQUIRY,0x00,0x00,0x00,sizeof(msInquiryResponse_t),0x00} One of my Thumbdrives worked... Then I removed the debug stuff (it still...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 06:42 PM
    Hi @wwatson, Thanks, Not sure yet what is the correct way of programming this yet - Still just starting to trace my way through... But so far it looks like for each command you output you are receiving a...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 03:57 PM
    @wwatson - Understand... I did a little more hacking and maybe some of the issue is handling conditions and errors. That is I hacked up your function: void msController::new_dataIn(const Transfer_t *transfer) {...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 02:00 PM
    @PaulStoffregen - Wondering how best to do something using usbhost_t36 library. I have done some stuff in the library, but am unsure about some of the low level stuff and how best to do it... Example: The USB...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 12:56 PM
    Thanks @wwatson - Lots of information in there about the different commands and structures! The Document I linked to in #29 from the USB Spec documents did not have any of those details, but does have some...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-11-2019, 02:40 AM
    Thanks @wwatson, Will try it. As I mentioned in the T4 thread, with my two thumb drives the call to mscInit is hanging, in the call to msDeviceInquiry, which has called msDoCommand, msDoCommand has the flags of...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-10-2019, 10:17 PM
    @WMXZ and @WWatson and others - I have been doing a little debugging of the hang.. I have added a bunch of print statements in the code, specifically in the MSCInit code... Here is current debug output: ## mscInit...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-10-2019, 06:28 PM
    @WMXZ Will try. Note I tried SDFormatter, including allowing resize... and it still does not read... But it now acts more like the other disk in that it does not repeat.... Just stops...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-10-2019, 04:07 PM
    Not sure if here or the T4 thread is the best place to discuss/debug... I tried with the current updated library(libraries) and still having issues with the thumb drives... @WMXZ and @wwatson - First probably need...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-10-2019, 12:31 PM
    @PaulStoffregen @defragster @mjs513 - Glad you are getting it isolated and fixed. Sorry I did not also report it more directly earlier... I noticed it earlier as well, but figured it was a known issue... Yes - Now...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-09-2019, 09:57 PM
    As I mentioned in the other thread, I fixed the compiler error by including wiring.h in MassStorage.h Some of the beginning looked like: #ifndef _MASS_STORAGE_H_ #define _MASS_STORAGE_H_ #include <wiring.h> ...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-09-2019, 09:44 PM
    Hopefully someone with more current electronics experience will chime in. The TTL level shifters are good that if for example you have a signal that is either 0 or 3.3v and you want it to output something like 0 and...
    4 replies | 88 view(s)
  • KurtE's Avatar
    05-09-2019, 08:01 PM
    Do you have a volt meter? If so can you measure the voltage coming into the board from USB? VIN(or VUSB) to GND... i.e to both verify that you are getting power and something is not screwed up with the voltage coming...
    46 replies | 3138 view(s)
  • KurtE's Avatar
    05-09-2019, 04:12 PM
    I tried editing in some of the changes, but maybe made things worse... I edited the uSDFS file sd_msc.cpp to change: int MSC_disk_status() {return 0;} to: int MSC_disk_status() { int stat = 0;...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-09-2019, 01:27 PM
    @wwatson - Sounds great, will try it. Will be interesting to see how to integrate this back in with the current stuff on uSDFS where some of your previous stuff was brought in... Don't need to copy your files any...
    174 replies | 1908 view(s)
  • KurtE's Avatar
    05-09-2019, 12:49 PM
    Thanks @WMXZ, I sort of figured that I did not need to copy those files, as I saw that you had made several changes to them. As per your previous post, I had turned on the debug printing code in USBHost_t36 but...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-08-2019, 11:00 PM
    Do I still need to copy his version of files into your library (ones like diskio.c?) WinMerge does show they are not the same... So far I have not tried to copy in these files... Did try running with a couple...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-08-2019, 10:00 PM
    @WMXZ and @mjs513 - Are you just using your stuff or do you still need the MSC stuff changed from the zip file? Will try to take a look.
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-08-2019, 08:27 PM
    Sorry, maybe I am missing something. Which USB port are we talking about? That is I believe there are two USB ports. a) The one that you use to talk to the Host computer... The one which configuring the Teensy...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-08-2019, 01:48 PM
    @WMXZ and @mjs513 - I was also wondering if I needed to use the zip file with the MSC files or not or... Would be great to be able to easily use a USB storage device! as for the static versus extern "C" - More...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 11:08 PM
    @WMXZ and @mjs513.. About the source file sd_msc.cpp... #include "sd_msc.h" #define HAVE_MSC 1 #if HAVE_MSC == 1 #if defined __MK66FX1M0__ || defined __MK64FX512__ #include "msc.h"
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 10:40 PM
    The issue is how C/C++ Packs the variables in memory... That is typically when you define something like uint16_t it wants to be aligned a 16 bit boundary, likewise a 32 bit variable wants to be aligned to a 32 bit...
    5 replies | 85 view(s)
  • KurtE's Avatar
    05-07-2019, 09:09 PM
    If your circuit really needs a 5v output, you may need to use some form of level shifter. There are many different varieties of level shifters, as no one shifter is perfect for all cases. Some or one direction...
    4 replies | 88 view(s)
  • KurtE's Avatar
    05-07-2019, 08:59 PM
    Note: The first thing I would check is did you get any compiler warnings? I would strongly guess you would. If you have not already done so, you should make sure that you are seeing all of the warnings. Open up...
    12 replies | 155 view(s)
  • KurtE's Avatar
    05-07-2019, 08:51 PM
    @mjs513 - Thanks, Some of it was just figuring out what files were on one computer (Windows and not on the RPI version). So did a search on RPI for: c++config.h (find | grep c++config.h ) Probably more direct...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 08:23 PM
    7E1 is sending 8 bits, 7 data bits and the parity bit. See https://en.m.wikipedia.org/wiki/Serial_port. As I mentioned the high bit is parity, so if you echo to Serial, you will see junk. You might try anding off...
    3 replies | 47 view(s)
  • KurtE's Avatar
    05-07-2019, 06:28 PM
    @PaulStroffregen and @manitou (and others) RPI3 with Teensy4... Got it now to build and run! Note: I have Arduino 1.8.9 installed on my desktop... As I mentioned in the previous post: To fix the compiles, I...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 02:35 PM
    Made some progress: Found this folder did not exist: /home/pi/Desktop/arduino-1.8.9/hardware/tools/arm/arm-none-eabi/include/c++/5.4.1/arm-none-eabi/armv7e-m/fpu/fpv5-d16 Which on PC appeared to have exact copy of bits...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 01:55 PM
    I am assuming that whatever you are using to receive the data is also configured to receive the data at 7E1 format? That is when you output at 7E1, and for example you output "AB" one of these two will end up with...
    3 replies | 47 view(s)
  • KurtE's Avatar
    05-07-2019, 01:06 PM
    I have now installed on RPI3 on Arduino 1.8.9 and all of my compiles for Teensy4 are failing to compile: Arduino: 1.8.9 (Linux), TD: 1.47-beta2, Board: "Teensy 4-Beta2, Serial, Faster, US English" ...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-07-2019, 12:42 PM
    Hi Paul, I am installing now on RPI3... Just installed on Windows 10 64 bit... Now getting different Java exception... Or maybe just more information .... Still heap space... Exception in thread...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-06-2019, 08:21 PM
    Will be interesting to see how fast the USB stuff can for example read in BMP files as compared to SDCard. I have been experimenting with a question someone asked about a couple of months ago, but only saw a day or...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-06-2019, 06:23 PM
    Hi @jwatte, I know at one point I was able to get Arduino command lines to sort of work with Teensy, but it has been awhile. I don't remember if I was able to specify the type/variant like combination to get it to...
    3 replies | 78 view(s)
  • KurtE's Avatar
    05-06-2019, 05:54 PM
    Starting to play around with updating my experiment of an RPI shield from using T3.2 to using a T4... This is more like notes to self, but suggestions are always wanted. The 3.2 version looked something like: ...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-06-2019, 01:32 PM
    That was Windows 10 64 bit Arduino 1.8.9
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-06-2019, 01:05 PM
    @Paul - Looks great, other than Java exception: Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Now all you need to do is to rewrite the Java code ;) count=86447975,...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-05-2019, 04:45 PM
    @mjs513 Follow on to above, I am not really sure about the data structure for the Move data... That is if I map that data into textual form, it is something like: // data Buttons (mentioned 4 as well but appears...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-05-2019, 02:35 PM
    @mjs513 @defragster (and of course anyone else) I pushed up my latest changes in the branch: https://github.com/KurtE/USBHost_t36/tree/PS3_Motion_WIP2-Bluetooth Note: I squashed all of the commits into one, as to...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-05-2019, 12:56 AM
    KurtE replied to a thread New Teensy user in General Discussion
    Both the Wire library as well as i2c_t3 library define and use a bunch of the same resources. As such any one sketch can use one or the other but not both. This includes any libraries that is included in your sketch...
    19 replies | 435 view(s)
  • KurtE's Avatar
    05-05-2019, 12:48 AM
    @mjs513 - Thanks for the information, I had sort of figure out some of these from looking at other sources, but wondering if we more or less leave it alone... That is the callers get this information in that order? Or...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-05-2019, 12:34 AM
    @NaokiS - sorry I did not see this thread back in February, Are you still active on it? As @Frank B mentioned - The T3.6 DMA is a lot nicer than it is on the 3.5. But I was able to get some of it to work in...
    4 replies | 258 view(s)
  • KurtE's Avatar
    05-04-2019, 10:23 PM
    Just pushed up some more changes to the new branch. I now have it talking using Bluetooth. I still have not gone through mapping all of the axis. I think it has mostly gyro and aceel data... But I do have the...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-04-2019, 03:30 PM
    @mjs513 - Pushed up new branch based on the WIP bluetooth branch... https://github.com/KurtE/USBHost_t36/tree/PS3_Motion_WIP2-Bluetooth Now off to some other distractions
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-04-2019, 02:47 PM
    @mjs513 and @Paul... I have not merged yet - Paul is the owner of the library and the BT stuff is in a current PR... For some reason Paul has been busy with some other stuff ;) Kurt
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-04-2019, 02:12 PM
    @mjs513 - Thanks As I mentioned, I have been a little distracted, but have made a little progress with this... I know have the setLEDs working... Note, I created a new version of this API that allows you to pass...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-03-2019, 08:58 PM
    It looks like the PS3Move controller is a completely different beast! If you look at the Host Shield 2 stuff: https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information It looks like it does not send any...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-03-2019, 08:41 PM
    You are welcome, glad you got it up and running... Been there... Not sure if any of it would be beneficial, but my first Linux install was for an RPI2 and then I went through trying several different boards.... While I...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-03-2019, 08:21 PM
    Hi @mjs513... I am not the biggest Linux expert, but been playing with it for a few years (mainly on secondary machines and or RPI or BBBK or, UP boards...). What I do is to install Arduino and Teensyduino... ...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-03-2019, 05:24 PM
    Hi Pramilo, As for issues of losing data, the answer is typically no. That is anything missed is typically because my program on one side or the other was not working properly... That is: The host side knows...
    22 replies | 464 view(s)
  • KurtE's Avatar
    05-03-2019, 01:36 PM
    8) - Yup runs pretty fast :D Last line before it hung: count=12309685, lines/sec=173172 Windows 10... This is also using Paul's first post for test output to Serial monitor: Serial4 shows lots of 00400080...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-02-2019, 09:57 PM
    Today I received my Sony Motion Controller... Looks like it might take a little work... Linux information from RPI3: pi@raspberrypi:~ $ lsusb Bus 001 Device 004: ID 054c:03d5 Sony Corp. PlayStation Move motion...
    674 replies | 13318 view(s)
  • KurtE's Avatar
    05-02-2019, 05:40 PM
    @... I picked up the latest stuff and I tried on Windows10 64 bit and it does complete. Also does make a big difference when I have turned off the two printf statements (one in usb.c and other in usb_serial.c) As...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-02-2019, 05:26 PM
    Note: If you are using the standard SPI stuff of all of the Arduino boards, like described in the reference docs like: https://www.arduino.cc/en/Reference/SPITransfer Calls like SPI.transfer(x); Will wait for the...
    4 replies | 91 view(s)
  • KurtE's Avatar
    05-02-2019, 03:37 PM
    As has been mentioned by several people already in this thread, there is often a conflict in performance between throughput and latency... What I find somewhat interesting, is you talk about FTDI as the reference. ...
    22 replies | 464 view(s)
  • KurtE's Avatar
    05-02-2019, 01:29 PM
    There are many ways of doing things here... First off (but I don't recommend as the primary way) - There is code in place for the Teensy to emulate the AVR registers... Easy way: Using an asynchronous version of...
    4 replies | 91 view(s)
  • KurtE's Avatar
    05-01-2019, 11:02 PM
    @Paul @defrag and @mjs... I put up a new branch: https://github.com/KurtE/cores/tree/T4B2_PIns30_31 Which I think I properly fixed pins 30 and 31... At least they blink now with my blink any pin... So nice to be...
    2888 replies | 337877 view(s)
  • KurtE's Avatar
    05-01-2019, 10:44 PM
    Sorry just got back... Wondering if core_pins.h is correct? I did not double check some of these as I did not change this area for pins 30-31.... (Did in first PR... Need to double check)... Assuming my...
    2888 replies | 337877 view(s)
More Activity
About KurtE

Basic Information

Statistics


Total Posts
Total Posts
4,543
Posts Per Day
2.33
Last Post
USBHost_t36 USB Mass Storage Driver Experiments Yesterday 11:24 PM
General Information
Last Activity
Today 12:32 PM
Join Date
01-12-2014