Search results

  1. T

    Serial.write delay on Teensy 3.6

    The first call of sizeof(msg2) returns the amout of memory the array is using, whereas the second call sizeof(msg2[0]) returns the amout of memory one element is using. Dividing these two returns the amout of elements in the array.
  2. T

    Serial.write delay on Teensy 3.6

    This seems to be the issue. I set up the buildin LED to toggle(third channel) when the teensy is reading data like you suggested and it seems like it only collects the data "every four bytes". When I send less data, it seems to wait until it would have received a fourth byte. Sending a...
  3. T

    Serial.write delay on Teensy 3.6

    @BriComp I really appreciate you taking the time to help me :) Its a leftover of a previous iteration of the code that i forgot to delete. I probably should have listed all the approaches Ive tried before. Increasing the serial input/output buffer also doesnt help since it never really fills...
  4. T

    Serial.write delay on Teensy 3.6

    Thank you for you effort @BriComp ! Unfortunately there seems to be no difference but I appriciate you help.
  5. T

    Serial.write delay on Teensy 3.6

    The arduino code is nothing special but if it helps: int msg1[] = {0x00, 0xB3 , 0x11, 0x05, 0xF5, 0x23}; int msg2[] = {0x02, 0xB2 , 0x14, 0x45, 0x45, 0x34, 0x45, 0x34}; void setup() { Serial.begin(9600); Serial.setTimeout(1); } void loop() { for(byte i=0; i <...
  6. T

    Serial.write delay on Teensy 3.6

    Sorry, I didnt include all header files. I was hoping someone would spot an issue in my code without having to compile anything. I rewrote a shorter version of my code for the teensy so it does compile. It also has the same timing issue as before. #include <Arduino.h> // msg.length, adress...
  7. T

    Serial.write delay on Teensy 3.6

    Hi, I am sending serial messages of different sizes from an arduino uno to a teensy 3.6 at 9600 Baud. The Teensy is then reading the first byte of the message, which is representing the data payload, and determins the entire length of the message (6 Bytes default + data payload) aka how many...
Back
Top