Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unable to send and receive images between 2 Raspberry connected to Zigbee via UART.
Forum Updated to NodeBB v4.3 + New Features

Unable to send and receive images between 2 Raspberry connected to Zigbee via UART.

Scheduled Pinned Locked Moved Unsolved General and Desktop
42 Posts 4 Posters 8.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM mrjj

    @J-Hilk
    When i goggle Zigbee , i do see max payload mentioned.
    Do you think that could be the cause here ?
    I never used Zigbee so not sure if its even an issue.

    J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by J.Hilk
    #41

    @mrjj uh, I should read the opening post more clearly,

    You're right, that is most likely the issue, ZigBee is a low data transfer protocol and from what my quick google search told me, limited to about 100 - 200 bytes, which fits exactly here

    for a quick and dirty test, we could split the test byte array and send it delayed, that should work

    void serial::on_pushButton_2_clicked()
    {
            static QByteArray ba;
               int index(0);
               ba.fill('A', 1000);
               if(serialPort->isOpen()==true){
                   QTimer *t = new QTimer();
                   auto sendSection = [=,&index]()->void{
                       serialPort->write(ba.data() + index * 100, 100);
                       index ++;
                       if(index == 10)
                           t->deleteLater();
                   };
                   QObject::connect(t, &QTimer::timeout, sendSection);
                   t->start(1000);
            //       quint64 send = serialPort->write(ba);
                   qDebug()<< ba.size()<<"size_send:";
               }
    }
    

    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    1 Reply Last reply
    2
    • R Offline
      R Offline
      Rika
      wrote on last edited by
      #42

      @mrjj @J-Hilk Sorry for my late reply. The problem is when I try to send from PC with Realterm (Pc is also connected to Zigbee), on Pi4 I still get pictures.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved