Serial Port Error

0 views
Skip to first unread message

Zita Lifland

unread,
Aug 4, 2024, 11:30:23 PM8/4/24
to werolawee
Ihave the same problem with VISA. Before I used an USB-SERIAL adaptator with my notebook and I thought the adaptor was the problem but now I work with a normal computer (without adaptor) and comes the same error menssage...

I also had issues with having serial messages coming from several different LabVIEW sub-vi's and the "collisions" led to scrambled messages. Once I enforced that no messages would be sent simultaneously, that problem went away. I also used semaphores to protect against this as well.


Finally another issue is that I had to calculate the delay to allow the characters to be sent. When I had long messages, I had to make sure there was enough time to get the message out before the next was to be sent out.


I'm working with the serial communication without flow control, then I don't have a TermChar or a order from my device to transfer. Also, I run my Labview program and I transfer and receive continually strings all time. My strings of the communication have only header bytes.


Oh, sorry ... what we had to do was to connect the RTS/CTS flow control lines properly and then enable hardware flow control from the VISA configure serial port. I have attached my code as an example. I also had to configure the port to handle the end character, in my case there wasn't any.


Sorry I probably didn't make that clear. in Tools>Port> it shows connection as COM3. But the error in the program is showing that it can't find COM1, there is no COM1 listed under tools, just the COM3.


Wow, that's very strange. I haven't seen that one before. Arduino IDE 1.6.10 just came out and does have a couple of bugs. You might try installing Arduino IDE 1.6.9 from this page: Maybe that would solve your issue.


I've given it another go, went into device manager and physically changed com3 to com1 as default for the Arduino. COM1 now shows under tools>ports> I'll try selecting it and see what happens before I download the earlier version of the IDE.


Well I've tried all suggestion so far but still end up wit the error previously mentioned. I'm going to try a sketch that is in the arduino list rather than the one that goes with my sensors to see if that works.


After pressing the reset, my program loaded no problem, so another question - is it necessary to use the reset button before any new program is uploaded, or should it just overwrite any existing program on the arduino board?


The Arduino does need to reset at the start of the upload process but this should happen automatically. Very old Arduino boards didn't have the auto-reset feature and so they did need to be manually reset but that was a while back. I have ones older than 3 years that have the auto-reset feature.


i had this problem and it drove me up the wall for two weeks. i began to think i made a bad investment but with ALOT of patience , and asking questions i eventually discovered what was wrong. ive been looking around the forum and noticed i wasnt the only one with this problem. its a very simple problem thats easily fixed, but can aggrivate you beyond belief. heres my remedy to the situation and i hope it helps anyone now and in the furture.


1. in the Control Panell, open System, click the hardware tab, click the Device Manager button, and under Ports find your cutter. right click, and select properties. now click the port settings tab. look at what the Bits Per Second option is set to. mine was set to 19200. i find it worked best to use what the computer picks by default. remember that number.


2. on your cutters lcd screen, scroll through the settings to your baud setting. change it to what you found in the device manager, in this case, 19200. make sure it saved that setting by restarting the cutter and checking it.


3. in your project manager, when you select what cutter to use, right click on that, select cutter options or properties ( depending on what program you use) and make sure that the bit rate for your cutter matches the previous two.


once all these numbers matched up, i have not had a problem since. although, every once in a while, one of those three numbers will change itself for no apparent reason. havent figured that one out yet. but for the time being. im glad i figured this out and im actually starting to have fun with this.


I found out that serial adapters hardly never work right dont know if your using one or not. I use flexi 10 and wether using serial or usb works just fine . try connecting USB and try it . I like flexi 10 because has built in rip and don't have storage problem with large cuts or prints also for the first question unplug the cutter from the computer....open up your device manager ...now plug back in cutter and turn it on...you will see a new com port open up. that will be the setting you need


i get ready to send my image and it holds it for a sec then says ready right as production manager pops up with a save window. i save it and pull up the job and it only cuts about half of the image.i lucked out before fixing itbut restarting my laptop but that won't work. i'm using flexistarter v10 and mh721 cutter. if anyone could help me and answer me thank you


First off best to use your cutter on serial or usb to serial for better connection. Please post some screen shots/pictures of your problem. I have never seen Flexi tell you to save a file when sending to cut. Show us a walk thru of your problem..


OK, I have Flexistarter10 installed. Same cutting functions as Flexistarter8.6.. My question to you is : why are you wanting to save that file before you cut it? When you don't need to, to be able to cut it. Why are you not sending the file directly to your cutter?


i am sending it directly to my cutter i'm not wanting to save it my flexi won't let me cut it with out saving it first and then it does not cut it fully. i have been trying to find a way to reset it were it just starts cutting when i hit send


It is because you have SAVE TO FILE in the SEND MODE. I can see it on your screen shot. And as I stated before, in the "SEND MODE" BELOW MATERIAL sizes 25.000 x 18000 in Click the arrow to the right, I can see it has an arrow. It is a drop box. With multiple options. There is SEND NOW ... HOLD IN LIST... AND SAVE TO FILE. Put it on SEND NOW. and cut your design directly.


There was no real problem before that you had to uninstall Flexi for. you have it set up on... SAVE to FILE... instead of SEND NOW.. As long as you have it set to SAVE TO FILE, you will have the same problem.


I have been experiencing problems with my electric long board lately and am desperate to get it up and running for the summer! I have done a little research about VESCs and have a background in mechanical engineering, but don't know too much about software and firmware. I would be extremely appreciative if anyone could help me with my issue that I describe below. First, let me get into the hardware I have in my setup:


I noticed one day after turning on my board and hitting the acceleration on my controller, the motor starter wigging out, moving back and forth rapidly with no control . I was not able to ride it and it couldn't provide the power to push the board forward. At first I started inspecting all the hardware and electrical connections and nothing seemed wrong so I figured it was the hardware. I plugged my board into the VESC tool 1.16 and tried messing around with installing new firmware without watching any tutorials (first mistake I know). I have updated the firmware once before and remember it was pretty simple, so I figured it wouldn't be an issue. I went to either (I can remember) the firmware tab or the boot loader tab, and installed the 4.12 software. I understand that if I installed a new boot loader, it messes everything up in the VESC, but idk if this is the problem or not. The board wouldn't reconnect after the upload, wouldn't update firmware, and I would have to restart the process. For a video of the problem that I made for someone else, see this link: =0. For a more solid procedure, please see my exact steps below:


I am having this same issue. My VESC came with firmware 3.5 and I need to update to 3.58 in order to use the tool. It's odd because I was able to update one of my VESCs from 3.5 to 3.58 but not the other.


Hi everyone, I have the same problem too. After the last update to version 3.58 the VESC program no longer communicates with the hardware, even when switched on it only connects if I use the auto connection key. The upload and read keys do not give any result. I also tried to reload an old Bootloader using the ST link st32 programmer and then reload the latest version from the VESC tool. Thanks to anyone who wants to solve the problem.


Hi, I think the problem is due to the ST link programmer driver. In fact, after disconnecting it, connecting VESC directly to the USB, in the resource manager the com port corresponding to the VESC signals an STM driver instead of the correct one. Unfortunately, even if the STM driver is deleted, the port no longer recognizes the VESC preventing its programming. I am running various tests to solve the problem.


If the bootloader is broken, you can always reinstall it in the bootloader tab (firmware menu). If everything fails, you can re-flash the ESC via SWD prog. Basically you use any other VESC you have to program the broken ESC. Watch Benjamin Vedders YouTube channel. He has a SWD Prog video up. Mi ute 5:30 onwards.


If the bootloader is broken, you can always reinstall it in the bootloader tab (firmware menu). If everything fails, you can re-flre-flash the ESC via SWD prog. Basically you use any other VESC you have to program the broken esc. Watch Benjamin Vedders YouTube channel. He has a SWD Prog video up. Mi ute 5:30 onwards.

3a8082e126
Reply all
Reply to author
Forward
0 new messages