Well I used to know Serial Ports
-
I use Termite: a simple RS232 terminal[^] and wcom32[^]. Both work fine in W11.
Mircea
Strange, going to have to look at Termite again used it on tried this morning with 11 and it wouldn't install...
-
Strange, going to have to look at Termite again used it on tried this morning with 11 and it wouldn't install...
Just installed it on a new W11 machine and works fine (Termite 3.4)
Mircea
-
Need to add that to Free Tools[^]
I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com Latest Article: SimpleWizardUpdate
I added it to tools.
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
Yep ... There are query functions and commands. I spent a lot of time making sure the scale was "centered", "not moving", not in an "error state", etc. A button for "Weigh Now" instead of polling blindly erased a lot of "issues".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
Just installed it on a new W11 machine and works fine (Termite 3.4)
Mircea
Must give it another go!
-
Been a long time since I did serial ports but to be fair you are describing a problem with the device and not the port. Which is what I remember. Devices were all odd. Even worse if one had to code to a spec rather than the actual device.
glennPattonWork3 wrote:
Combined with the lack of Vis Studio .NET beyond version 2003
Not sure why that matters? The serial port code itself is going to be different when you move up?
Thing was .NET1.0 had no native serial ports, you had to come up with a method (many and varied my favorite was to use MSCOMM32 imported from Visual Studio 6) which was an ugly way to do it. NET2.0 had a native serial port class which was better/easier.
-
Yep ... There are query functions and commands. I spent a lot of time making sure the scale was "centered", "not moving", not in an "error state", etc. A button for "Weigh Now" instead of polling blindly erased a lot of "issues".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
Oh it gets worse. Despite me saying do we need to do it this something will break. An expensive, new set of scales was bought disassembled and made to mimic what worked. Problem was what worked didn't and there was so much trouble is trying to get it working and they were so sensitive they were unusable for Production use. So muggins here cobbled together a Phidget thing (link [Phidgets Inc. - Products for USB Sensing and Control](https://www.phidgets.com/) to get something workable. My Phidget journey is just starting which me luck!!
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
-
Check the wires. Can't tell you how many days I wasted on a not quite completely broken ground wire. The only thing worse than no grounding is intermittent grounding.
Don't worry, I have checked the ground (& TX, RX) lines multiple times!
-
Hi, Are you sure that after a zero the tare weight should be zero? Usually the zero command zeroes the NET weight, not the tare
I was going by the garbled instructions I had. A method of Zeroing everything is required. I have contacted the scale manufacturer to try to get some data on how to do it.
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
Per Vanniaz’s comment, maybe there is another “T\r\n” Tare command? I could see Z meaning there is nothing on it/initial setup. Empty truck/container/beaker is set on scale, send T to set Tare. Later send P once truck/container/beaker is filled. Documentation rules!
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
-
Hi All, Time for a rant, I know how to get PC's to talk to the outside world given sufficient hardware and info. I am playing with a set of scales that we are abusing for a test rig. The device is a little odd and the timing of it is strange. You send it a 'Z\r\n' to zero it 'beep' (which according to the docs means received & understood) and period of time T it zero's, then reading is made via 'P\r\n' 'beep' and the reading is returned. The reading packet seems to hold the current tare weight, the number of readings made and a total. All we care about is the tare weight. If the unit is zeroed the tare weight according to logic should be 0.00 but no it is not there?? force a zero by the on scale function it returns a 0.00 tare weight? Combined with the lack of Vis Studio .NET beyond version 2003 (.NET 1.5??) means I have to make notes of how the software behaves and do the mods with 2008 all despite having the OK for a new version (2017 possibly needed for compatibility issues) I still don't have it. I'm doing my best with what I have (if some else tells me to use Python I will stick a fork in their eye) Glenn
I often use this handy tool to debug serial issues: [Device Monitoring Studio: High-Performance Connections Data Logging & Analyzing Software](https://www.hhdsoftware.com/device-monitoring-studio) Despite the fact that it is a paid for product, thier is a "Free" version that has reduced features, but is perfectly usable for basic serial comms spying. If the scale has a sample program with it for example, just run this, attach to the serial port, then run the demo app and see exactly what it's doing, byte for byte. I've used it many times to do exactly that. In one case I figured out that the "visible" commands I could see, where actually all prefixed by a non visible 0x01 byte, and whoever had put the manual together, had not known this byte was in front, and thus just typed the manual up as "ABC..." rather than "0x01ABC" (I was told when I contacted the devices support team to report my findings.) If you elect to go for the paid version, it does all sorts of neat things like Modbus protocol analysis and lot's of other protocol decoders.