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

Search:

Type: Posts; User: liuhuan

Search: Search took 0.00 seconds.

  1. Hi Paul, Since I'm having trouble sending data...

    Hi Paul,

    Since I'm having trouble sending data to Teensy while it's in USB Disk+USB Keyboard mode, I'd like to try the difficult path. Can you give some hints/guidelines on how to do this? :)...
  2. Hi guys, I'm having the same problem as Ian...

    Hi guys,

    I'm having the same problem as Ian described earlier: I can receive data from Teensy, but cannot send via the socket. I tried to use the telnet program in Ubuntu and use the python socket...
  3. Replies
    2
    Views
    1,963

    Thanks for the explanation, Paul! From looking...

    Thanks for the explanation, Paul!

    From looking at kern.log, I can see that after Teensy is plugged back in, Teensy Disk/Keyboard is registered as generic-usb, input, hidraw2 and hidraw3 device....
  4. Replies
    2
    Views
    1,963

    question about teensy_gateway

    Dear friends,

    When teensy ++ 2.0 is configured as sdcard+keyboard, I am able to receive data from teensy via the teensy_gateway program by listening to 127.0.0.1:28541.

    The problem is that...
  5. The teensy_gateway program is very sweet indeed....

    The teensy_gateway program is very sweet indeed. Is it opensource? Is its source included in teensyduino? I'd love to learn more about how it works!
  6. Hi Paul, Awesome!!! The localhost networking...

    Hi Paul,

    Awesome!!! The localhost networking approach works for me! Thanks so much!

    Huan
  7. How to receive serial data from Teensy when it is configured as Disk+Keyboard?

    Dear friends,

    I have configured Teensy's USB type to be Disk (SD card) + Keyboard. I hope to receive the serial data from Teensy. Although there is no USB type of Disk+Serial, I think this is...
  8. Haha, got it! Thanks for the tips and advice,...

    Haha, got it! Thanks for the tips and advice, Pete!
  9. Hi Pete, That's it!!! After removing delay()...

    Hi Pete,

    That's it!!! After removing delay() in my interrupt routines, things work as expected!

    Thanks so much for your help!

    May I ask how did you figure out this? Did you figure it out by...
  10. Hi Pete, Thanks for the reminder! The code...

    Hi Pete,

    Thanks for the reminder! The code below shows the timing problem in the attached interrupt function.

    Questions:
    1. From my testing, it seems to me that (1) the attached interrupt...
  11. How does waking up by external interrupt from SLEEP_MODE_PWR_DOWN work?

    Dear Paul and friends,

    I am able to put Teensy++ 2.0 into SLEEP_MODE_PWR_DOWN and wake it up using an external interrupt. However, I do not fully understand the wake up process. I wonder if you...
  12. Replies
    2
    Views
    2,100

    Nice catch, Paul! After switching to...

    Nice catch, Paul! After switching to SLEEP_MODE_PWR_DOWN, Teensy now draws only 18uA!

    Thanks!!!
  13. Replies
    2
    Views
    2,100

    Teensy++ 2.0 low power minimum current

    SOLVED! After switching to SLEEP_MODE_PWR_DOWN, Teensy now draws only 18uA!

    Dear Paul and friends,

    I'm trying to lower the current of my Teensy++2.0 at 5V in SLEEP_MODE_PWR_SAVE following the...
  14. Teensy++ 2.0 low power wake up on external interrupt

    The problem is solved :)
    I simply need to uncomment the attachInterrupt line in setup(). The interrupt can wake up teensy.
    Also, documentation on sleep modes can be found on page 51 of...
Results 1 to 14 of 14