Search found 17 matches

by thatbruce
Tuesday 14th September 2021 2:53pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

:evil: I even tried to send a simple "S334\n" command (should make the scanner just bleep) but eben that did not work. COULD all this issues be becuase I am opening as incoming only? (like from device to Computer and no both way communcation or is 2way the default for the comport in gambas?) I don't...
by thatbruce
Monday 13th September 2021 5:51pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

https://support.algpos.co.uk/images_help/barcodeReader-incoming.png this is just to show you I am getting data from the scanner side (so the scanner/scale is communicating to the Computer) No, AFAICT it tells me that you are getting data from the scanner unit and not particularly the scanner and th...
by thatbruce
Sunday 12th September 2021 11:17pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

Woah! Where'd that
Write #RS232Scanner, "S14\n"
come from?
by thatbruce
Sunday 12th September 2021 12:31am
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

I copied your code and I got a error saying End of file in FMain:108 and it is heighlighting the line Line Input #RS232Scanner, Global.ScaleData Good! Now we are getting somewhere. It looks like there is nothing in the input buffer as the Line Input is not waiting for some data. Try this version Pu...
by thatbruce
Saturday 11th September 2021 5:42pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

Morning Andy, Another side-ways question: Is there a device access controller (DAC or sometimes EAC, LAC or DCU or even FIIK depending on the POS brand)? Because if so we may need to find out how to talk to it rather than the individual parts. Regardless of that, good a DB9 connector usually means w...
by thatbruce
Friday 10th September 2021 7:39pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

I'm not sure what it means but i bet the other Bruce has a pretty good idea after seeing their example of sending the command. far easier to understand than "what are you doing wrong" Hey man, it took me three whole days to set up the GF's cash register in the pub. The people who write these POS ma...
by thatbruce
Friday 10th September 2021 11:10am
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

Just to summarise where we are at the moment regarding Gambas. Your program is using a Write command to send a request to the scale. Your program waits a little while It then attempts to get the scale's response using a Try Read construct Now this read succeeds because it almost always will* . By us...
by thatbruce
Friday 10th September 2021 10:51am
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

Hoowee. We are really going to have to go back to basics here. Going back to your original post : You appear to be setting STX, which I presume is the ANSI "start transmission" character, to &H53. But 53 is the printable "S" character ? STX is $H02 Any reason for this discrepancy? Also, according to...
by thatbruce
Thursday 09th September 2021 9:35pm
Forum: General
Topic: RS232 / Serial Scale Help
Replies: 28
Views: 595

Re: RS232 / Serial Scale Help

@BruceS, Yes I was going to suggest the same but I still haven't got an answer from AndyGable to my question At the Code: Select all If Len(Global.ScaleData) > 0 Then line have you inserted a breakpoint and inspected the value of the Global and the value of Global.ScaleData? @AndyGable, I have done ...
by thatbruce
Thursday 09th September 2021 9:09pm
Forum: General
Topic: Create Install package for debian
Replies: 17
Views: 400

Re: Create Install package for debian

What I am about to tell you is absolutely top secret and you should not show it to any one else! The Gambas packager assumes that you have installed Gambas from a packaged origin i.e. as binaries from some distro or other. However, not all distros package Gambas in the structure recommended in the w...