Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-15 Thread Fernando Cabral
Gláucio I see our systems and environment are quite similar, although not exactly the same. Have you installed something different that might have changed the IDE behavior? If I have, I have not been able to determine what it could be. What I know for sure is that one moment everything was working

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread Mike Crean
If you are talking about a byte the likes of that used in modbusrtu you will need to do some high low bit manipulation on it. RegardsMike On Monday, 15 May 2017, 13:19, Alexie wrote: Following should work for you: Public Sub XXX_Read()   Dim iLen As Integer   Dim aData As Byte[]   i

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread nando_f
My reply to the comment: > Gambas Strings are not null-terminated and can > contain any sequence of bytes, which includes non-printable characters > (which I think is what you meant by "unreadable" characters). You should always consider String as an array of bytes. Just because humans can't read

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread alexchernoff
Thanks, it works (both with .tostring and reading one by one... But I get values I don't know how to convert, e.g. where I expect a decimal 83 or hex 53 I get byte value of 253 ... Or instead of Decimal 15 I get 225 :( cheers! -- View this message in context: http://gambas.8142.n7.nabble.com

Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-15 Thread Glaucio Araujo
Let's see...​ > Have you installed something different that might have changed > the IDE behavior? ​Not that I know. The problem happened just after Gambas fresh install. > > Now, after running gambas as superuser ("sudo gambas3") I have given up the > keyboard hypothesis (at least for now

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread alexchernoff
Hmm eureka, it's 02 53 = 0x53 Or 02 25 = 0x25... Where could that 02 be from? Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58986.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread d4t4full
&H02 is ASCII for STX, a special char that for some protocols mean "start transmission". Some protocols frame their data payload between chars STX (&H02) and ETX(&H03). These also normally use some checksum mechanism either before or right after ETX. Of course it could also be a misleading UTF8

Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-15 Thread Fernando Cabral
Gláucio wrote: > gda@acer:~$ sudo gambas3 > [sudo] senha para gda: > X Error: BadAccess (attempt to access private resource denied) 10 > Extension:130 (MIT-SHM) > Minor opcode: 1 (X_ShmAttach) > Resource id: 0x141 I don´t get this error. It runs smoothly. But then, I am running Mint 18.1 (a

Re: [Gambas-user] ​ Re: Keyboard locked -- insisting one more time

2017-05-15 Thread Cristiano Guadagnino
Fernando, did you try setting up a new user on your system and trying to run gambas as the new user? Cris Sent with Mailtrack On Mon, May 15, 2017 at 12:53 PM, Fernand

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread ML
Alex, Without knowing the protocol/device you're communicating with, I don't think anyone will be able to give substantial help. But, after years of interfacing very diverse hardware via RS-232 (fiscal printers, cash-hanlding hardware, GPS, you name it!), I can tell you that it's not always easy,

[Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted

2017-05-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #3 by zxMarce: (sorry for the delay in replying) Hehe... you're right. But I also quoted IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languag

[Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted

2017-05-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #9 by PICCORO LENZ MCKAY: for close this bug, we need > * or update the gambas wiki documentation (please all languajes) * or provide better handle of the rs.count that perdon me, its very confuse provide such method and

[Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted

2017-05-15 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: for close this bug, we need > * or update the gambas wiki documentation (please all languajes) * or provide better handle of the rs.count that perdon me, its very confuse provide such method and

Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-15 Thread Jussi Lahtinen
Can you both send Xorg.0.log (usually in /var/log/)? Jussi On Mon, May 15, 2017 at 5:01 PM, Fernando Cabral < fernandojosecab...@gmail.com> wrote: > Gláucio wrote: > > gda@acer:~$ sudo gambas3 > > [sudo] senha para gda: > > X Error: BadAccess (attempt to access private resource denied) 10 > > E

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread alexchernoff
it works fine - it was a strange serial port hardware issue. All the "Read" methods suggested above work, Thanks to all! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58995.html Sent from the gambas-user mailing list archive at Nabble.com.