EmbeddedRelated.com
Forums

basicX and linux

Started by Ryan Autet June 7, 2013
ok

As you know this group keeps saying oooh yes the BasicX Downloader and compiler will run on linux under wine..
well thats all fine and dandy but it wont open and download ports!! or monitor ports !!
I first i thought it was my usb to serial converter so i got a nother one with the same results . Any one have any answers on how to fix this
Or is all my spare basic X micro controllers now garbage?
Im running linux mint 14 and id realy like to be able to use these agian.. any one have any ideas for i condem this group and company to hell in my head for writing a linux application too.



> ... [be]for[e] I condem[n] this group and company to hell...

Are you pounding your keyboard? Why the vitriol? Take a breath and look at your system for the culprit.

I just pulled out a BX-24, downloaded some code to it, ran it, and captured the BasicX IDE window for you. You will see that it works. https://dl.dropboxusercontent.com/u/91727438/Screenshot-BasicX%20Downloader%20V2.1.png

I use LMDE (Linux Mint Debian), under Wine via an appropriately-modifed (DTR-level-enabled) FTDI USB/serial adapter. http://tech.groups.yahoo.com/group/basicx/message/22182

You should also be able to use a conventional USB/RS232 adapter via a DB-9.

Cool your jets, dude.

Tom

iam indeed pounding the keyboard :(
I have two usb to serial converters neither of them seem to be working. I have a FTDI one and i picked up the one they sell on the basicx site.
Im running linux mint 14 too, Iv installed IDE under wine and drivers giving from the CD for the basicX usb serial converter they sell....
but i still no action here ... any ideas ?
To: b...
From: g...@rightime.com
Date: Fri, 7 Jun 2013 17:18:21 -0400
Subject: Re: [BasicX] basicX and linux

> ... [be]for[e] I condem[n] this group and company to hell...

Are you pounding your keyboard? Why the vitriol? Take a breath and look at your system for the culprit.

I just pulled out a BX-24, downloaded some code to it, ran it, and captured the BasicX IDE window for you. You will see that it works. https://dl.dropboxusercontent.com/u/91727438/Screenshot-BasicX%20Downloader%20V2.1.png

I use LMDE (Linux Mint Debian), under Wine via an appropriately-modifed (DTR-level-enabled) FTDI USB/serial adapter. http://tech.groups.yahoo.com/group/basicx/message/22182

You should also be able to use a conventional USB/RS232 adapter via a DB-9.

Cool your jets, dude.

Tom



i think the most frustrating part here is the fact /dev/ttyUSB0is showing up ... so its being picked up by linux .... maybe this just a wine thing ..

> To: b...
> From: r...@hotmail.com
> Date: Fri, 7 Jun 2013 21:36:30 +0000
> Subject: RE: [BasicX] basicX and linux
>
> iam indeed pounding the keyboard :(
> I have two usb to serial converters neither of them seem to be working. I have a FTDI one and i picked up the one they sell on the basicx site.
> Im running linux mint 14 too, Iv installed IDE under wine and drivers giving from the CD for the basicX usb serial converter they sell....
> but i still no action here ... any ideas ?
> To: b...
> From: g...@rightime.com
> Date: Fri, 7 Jun 2013 17:18:21 -0400
> Subject: Re: [BasicX] basicX and linux
>
>
>
>
>
>
> > ... [be]for[e] I condem[n] this group and company to hell...
>
> Are you pounding your keyboard? Why the vitriol? Take a breath and look at your system for the culprit.
>
> I just pulled out a BX-24, downloaded some code to it, ran it, and captured the BasicX IDE window for you. You will see that it works. https://dl.dropboxusercontent.com/u/91727438/Screenshot-BasicX%20Downloader%20V2.1.png
>
> I use LMDE (Linux Mint Debian), under Wine via an appropriately-modifed (DTR-level-enabled) FTDI USB/serial adapter. http://tech.groups.yahoo.com/group/basicx/message/22182
>
> You should also be able to use a conventional USB/RS232 adapter via a DB-9.
>
> Cool your jets, dude.
>
> Tom
>
>
>
>
>
>
>
>
>
>
Have you made a link in ~/.wine/dosdevices to link com1 to /dev/ttlUSB0?

If no, cd to ~/.wine/dosdevices, and do
$ sudo ln -s /dev/ttyUSB0 com1

Check to make sure root is the link owner, and add the link to the
dialout group with read/write permissions.

Launch the BasicX IDE and see if you can talk to the /dev/ttyUSB0
adapter via com1 in the IDE.

Tom

Actualy yes i did try that ...
ryan@ryan-G74Sx ~/.wine/dosdevices $ dirc: com1 d:: e: e:: f:: g:: z:

what version of wine are you on ?? im using 1.4.1
thanks tom .... To: b...
From: g...@rightime.com
Date: Fri, 7 Jun 2013 18:12:48 -0400
Subject: Re: [BasicX] basicX and linux

Have you made a link in ~/.wine/dosdevices to link com1 to /dev/ttlUSB0?

If no, cd to ~/.wine/dosdevices, and do

$ sudo ln -s /dev/ttyUSB0 com1

Check to make sure root is the link owner, and add the link to the

dialout group with read/write permissions.

Launch the BasicX IDE and see if you can talk to the /dev/ttyUSB0

adapter via com1 in the IDE.

Tom



My Wine version is the same as yours, 1.4.1, apt-get from the standard
repos but with 64-bit assists that are automatically installed on the
first Wine execution. The only other thing that comes to mind is that
you might need to install the standard dlls, which I did via winetricks.

Did you install the BasicX IDE by running its SETUP.exe? If not, do
that; just doubleclick the executable like you would in Windows and let
Wine handle it.

I might have mislead you on the symbolic link ownership; the com1 link
should be owned by the user but /dev/ttyUSB0 must be owned by root and
be in group dialout, read/write.

I have two USB serial adapters on com1 and com3, and Bluetooth serial on
com2. ls -l of ~/.wine/dosdevices shows this on my machine:

mint64ssd1-1 dosdevices # ls -l
total 0
lrwxrwxrwx 1 gtbecker gtbecker 10 Dec 22 19:48 c: -> ../drive_c
lrwxrwxrwx 1 gtbecker gtbecker 12 Jan 13 13:55 com1 -> /dev/ttyUSB0
lrwxrwxrwx 1 gtbecker gtbecker 12 Dec 22 19:48 com2 -> /dev/rfcomm0
lrwxrwxrwx 1 gtbecker gtbecker 12 Dec 22 20:54 com3 -> /dev/ttyUSB1
...

gtbecker@mint64ssd1-1 /dev $ ls -l ttyUSB* rfcomm0
crw-rw---T 1 root dialout 216, 0 Jun 5 20:49 rfcomm0
crw-rw---T 1 root dialout 188, 0 Jun 7 19:18 ttyUSB0
crw-rw---T 1 root dialout 188, 1 Jun 7 17:00 ttyUSB1

Keep at it. You can make it work and it is reliable once you get there.

Tom
yaaaa.........
Im out of ideas .... we tryed re assigning the user
of course i used set up.exe lol
ill double check the user and group .... and get back to you :)
To: b...
From: g...@rightime.com
Date: Fri, 7 Jun 2013 20:11:56 -0400
Subject: Re: [BasicX] basicX and linux

My Wine version is the same as yours, 1.4.1, apt-get from the standard

repos but with 64-bit assists that are automatically installed on the

first Wine execution. The only other thing that comes to mind is that

you might need to install the standard dlls, which I did via winetricks.

Did you install the BasicX IDE by running its SETUP.exe? If not, do

that; just doubleclick the executable like you would in Windows and let

Wine handle it.

I might have mislead you on the symbolic link ownership; the com1 link

should be owned by the user but /dev/ttyUSB0 must be owned by root and

be in group dialout, read/write.

I have two USB serial adapters on com1 and com3, and Bluetooth serial on

com2. ls -l of ~/.wine/dosdevices shows this on my machine:

mint64ssd1-1 dosdevices # ls -l

total 0

lrwxrwxrwx 1 gtbecker gtbecker 10 Dec 22 19:48 c: -> ../drive_c

lrwxrwxrwx 1 gtbecker gtbecker 12 Jan 13 13:55 com1 -> /dev/ttyUSB0

lrwxrwxrwx 1 gtbecker gtbecker 12 Dec 22 19:48 com2 -> /dev/rfcomm0

lrwxrwxrwx 1 gtbecker gtbecker 12 Dec 22 20:54 com3 -> /dev/ttyUSB1

...

gtbecker@mint64ssd1-1 /dev $ ls -l ttyUSB* rfcomm0

crw-rw---T 1 root dialout 216, 0 Jun 5 20:49 rfcomm0

crw-rw---T 1 root dialout 188, 0 Jun 7 19:18 ttyUSB0

crw-rw---T 1 root dialout 188, 1 Jun 7 17:00 ttyUSB1

Keep at it. You can make it work and it is reliable once you get there.

Tom



Another possibility: to get VB6 to run under Wine I installed some
runtime stuff which, I believe, includes Visual Studio scripting
functions. Might be a longshot, but there won't be any damage if you
don't need them to run BasicX.

I could not quickly locate where I found this package so I'm posting the
zip in Dropbox. I assure you it is safe. The zip contains an .exe that
installs the components.
https://dl.dropboxusercontent.com/u/91727438/vbcrt.zip

Tom

oooh vb6, i used to love that... i might even still have a copy kicking around. That thought crossed my mind last night too actualy. how do u download the microcontroller with vb6 though ?
Thanks for zip tom :)

To: b...
From: g...@rightime.com
Date: Sat, 8 Jun 2013 14:08:38 -0400
Subject: Re: [BasicX] basicX and linux

Another possibility: to get VB6 to run under Wine I installed some

runtime stuff which, I believe, includes Visual Studio scripting

functions. Might be a longshot, but there won't be any damage if you

don't need them to run BasicX.

I could not quickly locate where I found this package so I'm posting the

zip in Dropbox. I assure you it is safe. The zip contains an .exe that

installs the components.

https://dl.dropboxusercontent.com/u/91727438/vbcrt.zip

Tom