When more connections are established, the library pauses every now and then.
This stops the whole program for a few seconds.
How can I fix that.
I am using version 1.0.5
Thanks in advance.
Hello
I can't compile for teensy4.0.
If i try Arduino Uno, It succeed to build.
Tried on Arduino IDE.
Arduino 1.8.19 and Teensyduino 1.57
source code
int i;
My SSD could connect with the 'DriveInfo.ino' sketch and 'DriveInfoAll.ino' sketch. But I ran 'DriveInfoAll.ino' sketch, which Unable to display File system information in SSD. However I could get my 64G Kingston...
In C and freestanding C, it is provided by <stdint.h>, which is available even when the standard C library is not.
In C++ and freestanding C++, it is provided by <cstdint>, which is available even when the standard C++...
@hupool - Something to keep in mind is a lot of thumb drives have small write buffers. I have a 16G Kingston DataTraveler 3.0 that can only do 1.5- 1.6 MB/s. This a fairly old thumb drive. A newer 128G Kingston drive...
None, except a sketch typically includes Arduino.h by default in the IDE
This works to build and upload:
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while (!Serial &&...
Hi,
for a sketch with Teensy 3.5, developped on Arduino IDE/Teensyduino, I want to use data types uint8_t and uint16_t.
What header file has to be included to know these data types?
bump bump...
Right now, playing with other things... Having fun with tablets right now.
Probably can try to answer questions. don't have hardware to debug, so you may need to instrument the mouse code and see...
Sounds good. What right now I am most interested in seeing are the messages that start off: HPID...
So hopefully with debug on: you should see several of them, which will show me the length, the report ID...
So...
I don't really know but I doubt there are any side effects.
I don't believe you will see any speed improvement in using the i2c_t3 unless you use the added functions that the library provides.
If you use the...
sorry, i am away from my wacom now... will retry tomorrow. but touch was working before this last commit, i got correct results for one axis (0-65000 ish) and on the other axis i got repeated messages between 0-2000...
in this message i sent a whole bunch of messages with the stylus moving on the tablet, so not sure what you mean with do you have a stylus? in fact, i am only interested in the stylus response in the end :-) will sync...
Thanks, there is a little information for me to go query.
I pushed up some changes for processing the 64 byte message
Would be good if you synced up and see if you get anything.
Do you have a stylus? What do...
also with HIDDeviceInfo i have the buttons on the stylus visible again:
HID(10002): 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Begin topusage:10000 type:2 min:0 max:1
usage=90001, value=1 (BUTTON 1)
...
I think we’ve shown that malloc is not reliable from threads other than main on T3. Let’s talk about why you need String in more than one thread. There is no reason to use multiple threads for anything that is logically...
That's another very interesting library I will definitively check. Once again, thanks Joe. I am already using the arduino-printf library which was your suggestion and so far it fits my code like a glove. Barely had to...
In a closer look maybe poor solder joints on pins 19-23? Out of habit, I usually make sure that my solder flows and I'll check the other side to make sure solder made it through the 'through hole'. I would just...
As noted in #2 above that's exactly the problem - AudioEffectEnvelope (and pretty much all audio library classes) inherits from AudioStream.
The documentation already specifies that AudioEffectEnvelope::release()...
and the output from HIDDeviceInfo:
USB HID Device Info Program
This Sketch shows information about plugged in HID devices
*** You can control the output by simple character input to Serial ***
These guys didn't make finding the information easy. It is documented in this application note on page 16.
https://www.nxp.com/docs/en/application-note/AN5078.pdf
Yep. Hacked up the wacom lib a bit and did manage to get one packet before it stop:
HPID(16): 0A C0 FF 7F 99 49 00 00 00 00 00 00 00 00 00 00
begin, usage=D0000
type= 2
min= 0
max= 1
...
I have an interrupt driven application that worked fine on a teensy 3.2. Due to the supply chain problems I'm porting it over to a teensy 4.0 with an external SPI driven DAC and and two I2C devices. On the teensy 3.2 I...
@lokki - would be interesting to see the startup of the sketch. For example with my Bamboo one it starts with:
USB Host Testing
960
*** Device HID1 56a:d8 - connected ***
manufacturer: Wacom Co.,Ltd.
...
Wouldn’t the fact that this function is directly attached to an instance of the envelope class make it pretty obvious which one is being called? Unless audio stream is inherited by the envelope class, is that the...
Yup ... change your calls to AudioEffectEnvelope functions to use float values for the parameters, so for example env2.release(0.0f).
You've passed an integer to the function, and as the error messages are saying,...
I decided to attach a Teensy 3.6 and rerun the DeviceInfo sketch. This time it looks like it picked up both devices but with errors on the tablet:
USB HID Device Info Program
This Sketch shows information about...
thanks so much for this effort again.
i did some testing with this version and i got good response from the buttons now, i touched and pressed each of them from top to bottom. what is interesting that you get en...
Hi, I am working on a project using the Teensy audio library and am running into a strange error when trying to use the envelope object:
MTG_Tomb_081122_FullHeartbeat:95: error: call of overloaded 'release(int)' is...
In the Tools drop down menu, select USB TYPE, and within that drop down menu select Serial + MTP Disk (Experimental). You need Teensydunio 1.57 for this. In earlier Teensydunio's, you could only select MTP Disk...
If I attach the tablet to a RPI4 and run LSUSB -V it does pick it up.
Bus 001 Device 004: ID 256c:006d
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
...
More information from Ubuntu iusing journalctl
Aug 11 08:48:38 kurte-750-435st kernel: input: Wacom Intuos S Pen as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:056A:0374.0007/input/input32
Aug 11 08:48:38...
While playing with the new WACOM Library (https://forum.pjrc.com/threads/70824-USB-host-Teensy-4-1-with-Wacom-Intuos5/page2) I plugged in a HUION Inspiroy H640P Graphics Drawing Tablet and ran @KurtE's new HIDDeviceInfo...
I try to modify these codes to improve the transmission rate of the MSC equipment and the MTP_TX_SIZE and MTP_RX_SIZE has been modified, but the transmission rate has not been improved. For beginners, it is not clear...
Yeah that worked as a temporary expedient. Definitely don't love the idea of having to just into library code tho.
For now I'm using the built-in DAC on the Teensy 3.2, so I don't have to use any of the control...
I picked up a replacement small one I mentioned earlier as I think I lost stylus for the old one:
So far the HID information for it:
USB HID Device Info Program
This Sketch shows information about plugged in...
Thanks for the suggestions. Like I said, a test setup for this project is not an option, eventough I would have liked to do that too. That's why I mentioned in my first post that I would rather have a sort of...
Thank you. I should have known it was the serial buffer. I have to figure out how big the block actually is and how to get it through with the code. I appreciate the information.
The Big Buffer version was setup mainly for a few USB To Serial devices whose USB Interface Descriptors are setup to transfer 512 byte records instead of 64, like most of the others do.
My guess it would not have...
@lokki and all, I thought I would mention that we have been hacking away on the Wacom Tablet stuff and making some progress with a few of the tablets.
Instead of continuing to post zip files and the like, I have put...
I'm trying to understand the difference between USBSerial_BigBuffer userial(myusb, 1) and USBSerial userial(myusb) and how it effects my project. The project I'm working on has the Teensy attached to a 3d printer...
My solution was to edit the 6 control files in the Audio library like this example for one of the files:
#include <Arduino.h>
#include "control_sgtl5000.h"
//#include "Wire.h"
#include "i2c_t3.h"
Perhaps...
@Paul: just created Teensy-4-x-Hooks-before-setup()
> note the time added for PSRAM:
#ifdef ARDUINO_TEENSY41
configure_external_ram();
#endif
@CollinK: also there are notes on startup timing and while looking...
Below is a sample sketch that shows creation of local hook() functions called before entry to setup as the Reset process proceeds.
It makes some notes on what can be expected to work in each of the three hooks and...
I think that's correct. It's not just TeensyThreads, but rather any RTOS with a stack per task. And T4.x is okay because it uses smalloc() rather than malloc?
I tried this malloc alternative...
Hi, I am trying to use the i2c_t3 library (found linked on the Teensy website i2c page) to do fast DMA based i2c to control an LED driver.
Simultaneously, I am trying to run an audio library program.
Because the...
Best I can offer you the number of times the 7 Teensyduino software files meant for Arduino 1.8.x use have been downloaded from the PJRC website over the last 14 days (our server retains only 2 weeks of log files).
...
PaulStoffregen yes, it is one computer. I only own one "real" computer. It is only 8 months old. i7 32GB RAM, 1 TB NVMe SSD, relatively modern. System76 with PopOS 22.04 installed on it now. Originally it had Ubuntu...
Thanks, taking out the call to Serial.begin really did cut down the start up time. Now I can get output within 1/2 a second of boot time as reported by millis(). That's probably fast enough for my uses. The problem I...
Forgive me, as I haven't kept up with every message (been really distracted by supply chain issues), but is this problem confined to just 1 laptop computer?
Regarding Arduino CLI:
Today Teensyduino support...
Defragster, I tried to run the code with the modifications you mentioned in your last post (#48) and could also reproduce the behavior you have shown. Very weird. I have no idea what caused this.
That's...
Remote execution of Arduino and TyCommander on an RPI4-64 bit works ok, albeit slowly. Seems ridiculous to me that a sub $100 computer and SSD run the code just fine and a $1500 laptop with much fancier HW can't. Have...
Did a quick edit to setup for Alloc/Free and no diff now in current code - except the indication of TThreads data issues.
Works with 80 and fails with 100 stack DWord edits.
...
Thread 0 malloc 1024. Addr =...
Yes, I know he is busy. Unfortunately, I am busy with getting this stuff to work without it dumping its bits all over me!
Wondering if there is a USB controller test of some sort that doesn't require cooperating...
I'll go through the whole thing, might be a lot of stuff you already know, but clarity is nice for other readers:
So basically a Position Loop of a servo drive has two numbers it cares about and
It runs a whole...
interesting but I don't know if I fully understand. is the servo drive the master for two SSI channels and it thinks there are 2 encoders (slave) ?
but you are doing something where there are not encoders but you...
When working with a 3v3 microcontroller, the VL input needs to be 3v3 so it expects and presents the correct level to the controller. The voltage at VA determines the analog voltage used as reference for analog audio...
Sorry I am not Paul...
But as for USB Controllers? I am not an expert, but I know on my older machine (now being replaced by my not as older machine), it had a USB 3 controller in it, that was not
100% complete to...
Oof, looks like a bit of work to get that going, but it's doable. One quick question, is it effectively a complete new install unto its own? (Independent of any existing installation?)
When you originally worked on...
I tried a few more things, including having the thread stacks on the stack of the main thread, and I think the fundamental problem is the same. If you call malloc() with different stack pointers, you can overwrite...
I wouldn't be surprised if this were the case. I have seen the crash problem on both the active hub and a direct connect, so I think it might be the laptop USB controller chip. The hub is powered by a 4A power supply...
Based on this note code was added when threads start:
void thread_loop( int threadID )
{
//bool fail = false;
uint32_t fCnt = 0;
#define STK_CHK_SIZE 80
int stkSig;
for ( int ii = 0; ii < STK_CHK_SIZE;...
UPDATE: Solved it... I guess third time's a charm because I put in a 3rd MAX3485 and things started working!
I wasn't aware that my RX line going low with the enable line was wrong. I saw the "break condition" in my...
Maybe try using Arduino CLI. It's not as lightweight as a makefile, but you do get excellent compatibility. Newest Teensyduino 1.57 packages for CLI / IDE2 are supposed to detect if you're running headless and avoid...
Can you install sw and run in a live system? I guess it would remove all other "rogue" software on the system... Kind of painful to go through all the configuration for a one shot deal, but maybe worth it.
The cli...
I personally would suspect some kind of hardware issue, possibly related to a ground loop, or a very hardware-buggy USB controller chip (especially if early USB 3.0 one).
(My bet is that the powered USB 3 hub draws a...
Made a script for the teensy_loader_cli with an argument for the file name. Makes it a little easier to use, instead of typing out all the arguments.
Name of the script is progteensy. Make it executable....
As yet another data point, eliminating all of the middle-man interference introduced by your VM environment, what about booting from a "live CD/DVD" & trying to program your Teensy from that, as the closest thing to...
Sorry, have no idea what did not work means...
Also the one warning, I left in as it was there before and the owner should look at it and decide if just adding a default: break;
is OK or was he supposed to something...
Built the loader cli for the real machine. As expected, it seems to work fine. (This time.) I will try to figure out a way to get this into my work process. Compiling to hex seems to pop up the teensyloadergui. It...