Giter VIP home page Giter VIP logo

Comments (4)

L1ikhith avatar L1ikhith commented on August 16, 2024

Hello @samkristoff @spathiwa i had some success with the communication but I am stuck at Load Device config vi,
Error: in the Load Device config all the modules are working until the LSB reaches 10, once it reaches 10 instead of sending all the response packet at once the data is splitting into multiple packets(see example)

for example
when the LSB is at 10 if the data size is 0 the response packet is 255, 6, 0,10,0,0 instead of 255,6,0,10,0,15 and in the second iteration its sending 0 and 15
i am not sure why its causing this issue i sent couple of days to understand the issue but no luck, can you please let me know what's causing this issue

from linx.

samkristoff avatar samkristoff commented on August 16, 2024

Can you post a screenshot of the error.
Did you modify any of the LINX VIs?

from linx.

samkristoff avatar samkristoff commented on August 16, 2024

A couple thoughts. The UART buffer size on the device is defined here . This determines the max packet size since it has to fit in the buffer. Yours looks fine.

Decimal 10 is LineFeed (LF) in ASCII. I think the VISA driver uses LF as a delimiter by default but the LINX VI should disable that under the hood.

from linx.

L1ikhith avatar L1ikhith commented on August 16, 2024

Thanks for the reply @samkristoff i didn't modified any Linx vi's. "Decimal 10 is LineFeed (LF) in ASCII." this makes sense whenever the LSB or MSB bit reaches 10 its chopping the data into two
for ex if the data packet is[ 255,6,0,10,0,15] at 10 instead of sending the whole packet i am seeing [255,6,10,0,0] and [0,15,0,0,0]
this issue is only happening on STM 32 board when i tried with Arduino Uno the data was not corrupted at bit 10

One more issue that i am facing was with set device baud rate Vi, the issue was during the execution of this vi it will first disconnect the existing serial communication and reinitializes with the new baud rate right, when its reinitialize the communication instead of using the same COM port a new alias resources was created with Port binding and initializing the communication with the new alias; this is only happening on STM 32 board there was no issue with UNO

My guess was the port was not getting closed properly is there any way to make sure the port closes properly?

Note: the device was connected to COM 9
new alias were created every time when the serial was initialized
Screenshot (3)

from linx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.