Ravenous Travis
Member
Hey everyone,
I've been working on a project that requires ubs serial communication between a desktop running Windows 10 via powershell, and a TeensyLC. I began developing for this project with a Teeny 2.0, which has been and still is working great, but as soon as I swap the 2.0 out for the LC I run into a snag immediately. I'd suspect I'm just missing some crucial difference between the two boards that I was taking for granted when using the 2.0, but after many hours of reading forum posts and documentation I haven't come any closer to a solution.
To make things simple, I've recreated the problem with just a couple lines of code:
The powershell commands I use are:
I am aware that the COM port is subject to change, and I check the COM port the boards are using each time.
With a Teensy 2.0 the led will turn on immediately (I of course use pin 11 for the led on a 2.0) when opening the port through powershell, however an LC will sit inside of that while loop forever. What leads me to believe that I am simply missing something is that if I use the arduino serial monitor, both boards will make it through that while loop just fine. I've tried about 5 different LC boards, one of them being brand new, all showing the same results so I don't think I have defective boards. I think that covers just about all of the relevant information.
If anyone has any ideas I would be very happy to hear them.
Thanks in advance,
Travis
I've been working on a project that requires ubs serial communication between a desktop running Windows 10 via powershell, and a TeensyLC. I began developing for this project with a Teeny 2.0, which has been and still is working great, but as soon as I swap the 2.0 out for the LC I run into a snag immediately. I'd suspect I'm just missing some crucial difference between the two boards that I was taking for granted when using the 2.0, but after many hours of reading forum posts and documentation I haven't come any closer to a solution.
To make things simple, I've recreated the problem with just a couple lines of code:
Code:
void setup() {
Serial.begin(9600);
while(!Serial);
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
}
void loop() {
// put your main code here, to run repeatedly:
}
The powershell commands I use are:
Code:
$port = New-Object System.IO.Ports.SerialPort COM40,9600
$port.open()
I am aware that the COM port is subject to change, and I check the COM port the boards are using each time.
With a Teensy 2.0 the led will turn on immediately (I of course use pin 11 for the led on a 2.0) when opening the port through powershell, however an LC will sit inside of that while loop forever. What leads me to believe that I am simply missing something is that if I use the arduino serial monitor, both boards will make it through that while loop just fine. I've tried about 5 different LC boards, one of them being brand new, all showing the same results so I don't think I have defective boards. I think that covers just about all of the relevant information.
If anyone has any ideas I would be very happy to hear them.
Thanks in advance,
Travis