Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Teensy 4.0 Serial monitor with USB RawHID?

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Location
    Phoenix
    Posts
    15

    Teensy 4.0 Serial monitor with USB RawHID?

    Is there any way to get the Serial monitor to work when the USB Type is Raw HID?

    Thanks

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,543
    Yes

    The USB Type of RAWHID,

    generates two interfaces:
    RAWHID

    And

    the Serial emulator (SEREMU), and the Teensy Serial monitor knows how to talk to SEREMU as well as TyCommander

  3. #3
    Junior Member
    Join Date
    Jun 2017
    Location
    Phoenix
    Posts
    15
    Hmm.. I tried that but still don't see anything in the Serial Monitor. The title of the window says "TeensyMonitor: Closed".

  4. #4
    Junior Member
    Join Date
    Jun 2017
    Location
    Phoenix
    Posts
    15
    I still have not figured out how to get the TeensyMonitor to work with RAWHID and the serial emulator.

    My connection on the bottom of the Arduino window says:
    Teensy 4.0, Raw HID, 600 MHz, Faster, US English on fake serial

    When I open the Serial Monitor the top of the window says:
    TeensyMonitor: Closed

    Is there something I need to add to my program to get it to work?

    Thanks,
    Hartley

  5. #5
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,543
    Again Hard to know what exactly what is going on, with your setup.
    I am running Windows 10 Arduino 1.8.19 Teensyduino 57 beta 3...

    But I just loaded the basic example under USB type rawhid, and configured for RAWHID Teensy 4
    And I ran the EXE for demo RAWHID from: https://www.pjrc.com/teensy/rawhid.html
    After the program uploaded, I made sure that I had the proper Serial port selected...
    And:
    Click image for larger version. 

Name:	screenshot.jpg 
Views:	3 
Size:	107.1 KB 
ID:	28788

    Note: I also needed to make sure I was not running TyCommander at the time as it might have connected up to the port.

    As it it too knows how to talk SEREMU...
    Click image for larger version. 

Name:	screenshot2.jpg 
Views:	5 
Size:	385.1 KB 
ID:	28789

  6. #6
    Junior Member
    Join Date
    Jun 2017
    Location
    Phoenix
    Posts
    15
    Weird... I just can't get it to work.

    I did download the TyCommander repo and built it for my Linux machine. It does see both the RadHID and Seremu interfaces:

    Click image for larger version. 

Name:	TyCommander_info.png 
Views:	1 
Size:	66.4 KB 
ID:	28790

    But I get nothing in the Serial output:

    Click image for larger version. 

Name:	TyCommander_serial.png 
Views:	1 
Size:	48.1 KB 
ID:	28791

    I did make sure that the Serial interface is started in my program:

    Code:
    void setup() {
        Serial.begin(9600);
    And I do have a number of messages being sent to the Serial interface:

    Code:
        TSPoint p = getRotatedPoint();
        if (ts.isTouching()) {
            Serial.print("T: ");
            Serial.print(p.x);
            Serial.print(",");
            Serial.print(p.y);
            Serial.print(" Z: ");
            Serial.println(p.z);
    But nothing is ever received.

    Maybe an issue with Arduino 1.8.13 and Teensyduino 1.53?

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,543
    Some Hints: Linux... Which? Something like Ubuntu? Which version?
    And you are running 1.8.13 and 1.53...

    Maybe time to boot up my Ubuntu 22.04 setup.

  8. #8
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,543
    Again it appears to work on my Ubuntu 22.04 machine.
    Click image for larger version. 

Name:	Screenshot from 2022-06-23 17-57-20.png 
Views:	1 
Size:	95.7 KB 
ID:	28792

    Note, I am running TyCommander here 0.9.0-107...
    Which I built from current sources

    Edit oops, the picture before was without focus...
    Click image for larger version. 

Name:	Screenshot from 2022-06-23 18-16-36.png 
Views:	0 
Size:	216.9 KB 
ID:	28793

  9. #9
    Junior Member
    Join Date
    Jun 2017
    Location
    Phoenix
    Posts
    15
    I finally got it to work. Not sure what fixed it or what I was doing wrong before but now it works.

    Thanks for putting up with my confusion.

    Now I can try to figure out why I sometimes get odd touch results with the Teensy 4.0 board.

    The TouchScreen library works fine with the Teensy 3.2 But with the Teensy 4.0 I occasionally get garbage results when I hold my finger on the touchscreen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •