Was just looking at the download page as well. Think its based on Eclipse from what I remember of the original alpha test IDEs which I had major troubles with.
@Frank B saw this on the the description page:
Morning Frank (well at least for me, probably afternoon for you)
Was just curious on what was being sent and received over USB thats why I used Wireshark. I came across Librtlsdr as well in my search and was looking...
@howie.S - you didn't say which version of Teensyduino you are using. Suggest you download and install the beta7 version: https://forum.pjrc.com/threads/66357-Teensyduino-1-54-Beta-7?p=271199&viewfull=1#post271199
@Frank B - @KurtE
Playing a bit more found that I can use Wireshark as a USB sniffer using PCAB2_interface that is part of Wireshark. Interesting, seems to use URB control as Bulkin - bulkout. Did see 16k data...
@KurtE
Took a break as well today and played with SDR. Got it finally working in windows so now can have some fun listening to radio :)
Anyway made the changes in post#46 but used the SDCard/adapter with 4...
@Frank B - @KurtE
Ok got my radio and saw the same think as posted in post #26.
Setup the radio in windows using Airspy and was following this tutorial to get it working: https://www.youtube.com/watch?v=7EiRZfw8xxU...
That actually makes sense based on the dump and what we did when were originally testing using the SD card.
First we had to attach the device to get the blockdevice (sd.card) then we used sd.card to attached the...
Ok - commented out the MBR and seems to have got it working. But noticed something funny. I modified the drive partitions so Part 1 = Fat32, 2 = Fat32, 3 = extFat, 4 = Fat16. Going through the debug noticed that it...
@KurtE - got it.
Oh just ran across another issue using a SDCard in a USB Adpater.
If I run VolumeName sketch it pulls up the MBR as:
msc # Partition Table
part,boot,bgnCHS,type,endCHS,start,length...
Thanks Kurt will see if I can get everything synched up. Anyway, think that makes sense. Think that goes back to what we were saying earlier, each partition is going to be its own drive: 1 drive = 1 volume, at least...
Morning @KurtE and @all
Very cool what you got managed to accomplish in a short time, relatively speaking, considering how intertwined all this stuff is.
Of course, you know I am a gluten for punishment.
Found this that might be of interest going further: https://www.linuxtv.org/wiki/index.php/RealTek_RTL2832U#Device_info. Interesting so I put it here so I don't loose the link
Short answer is that i2c_t3 doesn’t work with teensy 4.0 or 4.1 you will have to switch to just using standard Wire library. But I don’t think wire supports wire.stautus
@KurtE - @wwatson
Would think you would need a UsbFS pointing to each partition?
Think it was like my thought that for each partition you need a addfilesystem(....,....,..., partition number) so it would know to...
Something like this:
https://www.amazon.com/Digital-Receiver-Antenna-Multi-Picture-Display/dp/B07MBGTVFV/ref=sr_1_4?dchild=1&keywords=dvb-t+receiver&qid=1614605707&sr=8-4
Is this what you are trying to implement:
Child Device 2 : HID Infrared Remote Receiver ?
Be honest - I would plug it in with all the debug turned on and see what it recognizes and start from there.
@Frank B
Might be easier to know what device you are trying to connect to USB host.
When I was trying to add new devices I would start by turning debug on in USBHost, and the different .cpp files for the device -...
Just re-synched and seems to be working. Put in the SD Card Adatpter with 3 partitions:
Waiting up to 5 seconds for USB drive 1
^Waiting up to 5 seconds for USB drive 2
^^^^^^^^~~~~:(Initialize USB...
@defragster
Didn't have the problem with the java exceptions that you saw. SerMon would come to life if I closed it and reopened but would stop again.
I did notice that TyCommander didn't have that problem if I...
@KurtE
Just tried compiling for the T4.1 (VolumeName.ino) in the examples folder and got the following error:
C:\Users\Merli\AppData\Local\Temp\arduino_build_281257\libraries\SdFat\FsLib\FsNew.cpp.o: In function...
Not quite sure how that is being done but I did see in micros() looks like you have to wrap msec = systick_millis_count; with disabling the interrupt and then re-enabling it.
@KurtE
Ran a test with analog read in the interrupt and worked down to 20us. This makes sense since analog read is taking about 17us.
Did get response on github discussion:
So pretty much done until the next...
@KurtE
My advanced c++ skills are limited to looking things up as I go :)
Anyway, what you say seems to make sense, at least to me. Now just to decided where to put all this. At this point maybe stick to the...
Morning @all
@KurtE - ambitious and good luck.
But to your point on SDCards - think you are going to have to implement something similar if it has more than one partition. But I think if you get it to work with...
Morning @KurtE
Yeah me too!
within the interrupt it just calls off to analogRead - nothing fancy going on there. Was thinking about that myself especially since I have the test in post #19 as the base, but that...
SOLVED:
Ok just to say thanks to everyone for helping and let you know that I finally tracked down the issue.
It appears that problem is using analogRead is not interrupt friendly.
The hang was in the...
Just messed up my sdfat lib as well just for a another data point for you.:
This is for a SD Card with 2 FAT32 and 1 exfat:
msc # Partition Table
part,boot,bgnCHS,type,endCHS,start,length...
@KurtE
Was toying with something like this for MTP but don;t think I am passing the right things:
uint32_t sd_addFilesystem(FS &fs, const char *name, const char *volumeID) {
if (fsCount <...
@Frank B
Assume you are talking about the USBHost Shield 2.0: http://shop.tkjelectronics.dk/product_info.php?products_id=43
If you are I have the original version and it works for teensy 3 and 4 with one caveat. ...
@KurtE
Just tried your updated MTP and this is what I am seeing. Look like it works for SSD:
MTP_test
sd_addFilesystem: 0 20006328 RAM1
RAM Storage 0 RAM1 199936 512
sd_addFilesystem: 1 200063f0 RAM2
RAM Storage...
Morning all
Decided to start playing. Ran @defragster's updated sketch on 3 devices: (1) an old 2GB thumb drive (FAT16 only), (2) a 32GB Sandisk thumb and (3) my HP 120GB SSD.
One thing I noticed is that the...
@KurtE
Was just looking over your code snippet so this is a question - it may be buried but I don't see where you are setting up expartVol/partVol .begin for the different partitions and then setting a mscfs based on...
@luni
Found the problem - the program for doesn't like going to USB1 when using a T3.5 and T3.6. Removed it and got everything started working as before. Did test with a T3.2 but it hanging somewhere so the DCC++...
Funny it worked with the code I posted now must have did something to make it fail. Going to run a test just to see with time.h.
EDIT:
Something else must of broke. Just this test sketch and it works fine:
//...
Nope nothing else gets printed as I am playing.
BTW will it work with a Teensy 3.x
Remember when I said it was working for a T3.5 well now its not working - argh. - no start up info from timer.h and no signal.
@luni
Seeing exactly the same thing on startup as you:
init 0x0
setPeriod(58)
attachInterrupt()
start
out of curiosity I switched the prog track to use pins 3/11 just in case. No difference
@KurtE
Did try and putting asm("dsb")'s in different places associated with the interrupts but still had the problem. Tried playing with volatile's as well but no luck.
Ok now have another interesting thing going on.
I wanted to try with a Teensy 3.6 but as soon as turn power on with the sketch loaded the T3.6 is sending signals to the lock to move but its not suppose to.
The...
Oops - thats @Frank B's library = I added it get freemem for the T4.1: https://github.com/FrankBoesing/T4_PowerButton
Sorry about that - forgot I was using it so distracted with the other problem.
Ok lets see if I can explain this without tripping over myself. A virtual timer is set up in Timer.h that calls off to IntervalTimer that does a attachInterruptVector. The sketch then calls off to:
...
Morning all
Actually no, didn't get a chance to look - too many other distractions last couple of days :)
I agree with you Kurt 100%.
Oh - one thing I noticed is that if you put in a SD Card in a USB adapter...
Serial monitor seems to be hanging again similar to what happened in T4 beta testing: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=213179&viewfull=1#post213179
If I run this sketch:
void setup()...
Thanks thought crossed my mind - so I tested yesterday down to 24Mhz. But as a double check after your suggestion I just tested at 150Mhz - still stopped after a couple tries. Even tried tried changing compiler options
Morning all
@defragster - gave your mods a go and all seems to be working.
1. SSD 120GB - 2parts, extFAT/FAT32
2. SD CARD in adapter - 32GB - 2 FAT32 parts
3. 2 GB Thumb drive - 1 FAT16
All worked without a...
Damn - thought I posted the fix:
// VolumeName.ino
// An example of how to retrieve Fat32 and ExFat volume names using SdFat.
// Works with SD cards and USB mass storage drives.
#include "Arduino.h"
#include...
Ok here is the fix for extFat:
Waiting up to 5 seconds for USB drive
Initialize USB drive...USB drive 1 is present.
msc1 Partition Table
part,boot,bgnCHS,type,endCHS,start,length
FAT32:...
@defragster
Wondering if its an issue with MSFT formatted drive. I put a 128GB SD Card in a usb adapter with 2 FAT32 and 1 extFAT. But looks like the exFAT is failing for some reason;
Initialize USB drive...USB...
Now looking at the waveforms between the T3.5 and T4.1 when it works the command takes about 1.2seconds to complete and they look alike (Used a Salae Logic Analyzer). When it fails on the T4.1 the signal just keeps...
Was working on my DCC++ for Model Train Control with Teensy 3.x and Teensy 4.x as a result of problem that some one was running into with running on a T4.1. Going to get complicated so here it goes.
In DCC you have...
@KurtE
Fantastic. I was playing with and trying to make it work like FAT by opening the root directory but failed miserably. Where did you find the rootDirStart?:
msc1.usbDrive()->readSector(partVol.rootDirStart(),...
Just gave it a try and works for me. We all are really hacking away - but its working at least so making progress.
Not sure we are supporting FAT16 - or should we?
As for different types of FAT32 codes that easy...
@KurtE
Fixed this now works for USB devices:
msc1 Partition Table
part,boot,bgnCHS,type,endCHS,start,length
exFAT: 1,0,0x20,0x21,0x0,0x7,0xFE,0xFF,0xFF,2048,204800000
FAT32:...
Out of curiosity I did add a print directory (LS) for the fat just to see if it work:
msc1 Partition Table
part,boot,bgnCHS,type,endCHS,start,length
exFAT: 1,0,0x20,0x21,0x0,0x7,0xFE,0xFF,0xFF,2048,204800000
FAT32:...
@KurtE - @all
Finished my diversions this morning and guess I am going to start playing with partitions again. This stuff is giving me a headache to be honest - a lot of pieces to the puzzle.
@defragster
Glad...
Question:
To set up a volume say for an exFat partion I do a:
expartVol.begin(sd.card(), true, 1);
for an SD Card. Now, if I am using a usb drive (non sd). What do I do for a blockdevice or pointer to the...
Try pulling from Paul's repository for USBHost_t36 - I switched over to that for testing. Just looked looks like its like it should be the same though.
@defragster
Maybe its using an outdated USBHost_t36? or maybe try it from Arduino IDE :
Using library UsbMscFat-main at version 1.0.0 in folder: D:\Users\Merli\Documents\Arduino\libraries\UsbMscFat-main
Using...
@defragster
I am assuming that those libraries in T:\tCode\libraries\ are some linked to the libaries in T:\arduino-1.8.13_t54\hardware\teensy\avr\libraries?
Ok here is one for you all
Out of curiosity I just downloaded it again but used Firefox. No issues with defender and my Norton pop-up came up and said it was a safe file. I added that rule a long time ago.
Now -...
Not 100% sure. In post #435 @wwatson mentioned that the only thing you need in your libraries folder is: https://github.com/wwatson4506/UsbMscFat..
I did delete all the old MSC files - uSDFS, MSC/MSC2 etc. so that...
@wwatson - @KurtE - @defragster
Just ran your test sketch in post #433 and it worked like a charm. Recognized exFATs and FAT32 to get the volume name.
Have to go find my hub to test with again - keep loosing...
@defragster
Nope the those lines are in my version. Note - never created a build.local.txt file that I remember but then who knows may have did that a long time ago and just got use to it being there. Going to add...
Item #1: teensy.exe is staying around 0% with periodic jumps to 0.1%. Java Platform SE Binary goes between 0% and 0.7%
Item #2: see post #10
A couple things for Beta8:
1. USBHS_USBCMD_ITC(0) in usbhost_t36...
@Paul
Just downloaded Beta7 and pretty much saw what @defragster saw in post #4. I did one additional step. Before telling defender to Keep file I clicked on REPORT THIS FILE AS SAFE:
Once you click on report file...
@KurtE
Funny when I put in my SSD it showed the contents of the first partition as I expected.
I was rummaging around mscUSB but I didn't see any linkages back to SDFat for the Volume commands that we need. So...