EmbeddedRelated.com
Forums

basicX and linux

Started by Ryan Autet June 7, 2013
> ... how do u download the microcontroller with vb6 though...

You can't. VB6 just yields Windows code - most of which you can run in
x86 Linux under Wine. VB6 can build some nice desktop control clients
for AVR projects, but not the AVR code.

That said, BasicX and ZBasic have VisualBasic roots.

Tom

ryan@ryan-G74Sx / $ ls -lah ~/.wine/dosdevicestotal 8.0Kdrwxr-xr-x 2 ryan ryan 4.0K Jun 8 15:51 .drwxr-xr-x 4 ryan ryan 4.0K Jun 8 15:28 ..lrwxrwxrwx 1 ryan ryan 10 Dec 26 22:05 c: -> ../drive_clrwxrwxrwx 1 ryan ryan 12 Jun 8 15:51 com1 -> /dev/ttyUSB0lrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 d:: -> /dev/sddlrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 e:: -> /dev/sr0lrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 f:: -> /dev/sdelrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 g:: -> /dev/sdclrwxrwxrwx 1 ryan ryan 1 Dec 26 22:05 z: -> /

I have this registered ....
this looks the same as yours lol
but it still wont open com1 for me :? i tryed installing this under wine and with crossover lol
any other ideas ?
Im stumped so is my friend.
To: b...
From: g...@rightime.com
Date: Sat, 8 Jun 2013 16:32:10 -0400
Subject: Re: [BasicX] basicX and linux

> ... how do u download the microcontroller with vb6 though...

You can't. VB6 just yields Windows code - most of which you can run in

x86 Linux under Wine. VB6 can build some nice desktop control clients

for AVR projects, but not the AVR code.

That said, BasicX and ZBasic have VisualBasic roots.

Tom



wow that didnt paste well at all..

> To: b...
> From: r...@hotmail.com
> Date: Sat, 8 Jun 2013 22:11:50 +0000
> Subject: RE: [BasicX] basicX and linux
>
> ryan@ryan-G74Sx / $ ls -lah ~/.wine/dosdevicestotal 8.0Kdrwxr-xr-x 2 ryan ryan 4.0K Jun 8 15:51 .drwxr-xr-x 4 ryan ryan 4.0K Jun 8 15:28 ..lrwxrwxrwx 1 ryan ryan 10 Dec 26 22:05 c: -> ../drive_clrwxrwxrwx 1 ryan ryan 12 Jun 8 15:51 com1 -> /dev/ttyUSB0lrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 d:: -> /dev/sddlrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 e:: -> /dev/sr0lrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 f:: -> /dev/sdelrwxrwxrwx 1 ryan ryan 8 Dec 26 22:05 g:: -> /dev/sdclrwxrwxrwx 1 ryan ryan 1 Dec 26 22:05 z: -> /
>
> I have this registered ....
> this looks the same as yours lol
> but it still wont open com1 for me :? i tryed installing this under wine and with crossover lol
> any other ideas ?
> Im stumped so is my friend.
> To: b...
> From: g...@rightime.com
> Date: Sat, 8 Jun 2013 16:32:10 -0400
> Subject: Re: [BasicX] basicX and linux
>
>
>
>
>
>
> > ... how do u download the microcontroller with vb6 though...
>
> You can't. VB6 just yields Windows code - most of which you can run in
>
> x86 Linux under Wine. VB6 can build some nice desktop control clients
>
> for AVR projects, but not the AVR code.
>
> That said, BasicX and ZBasic have VisualBasic roots.
>
> Tom
>
>
>
>
>
>
>
>
>
>
> ... $ ls -lah ~/.wine/dosdevices
> ... lrwxrwxrwx 1 ryan ryan 12 Jun 8 15:51 com1 -> /dev/ttyUSB0

What about ls -l /dev/ttyUSB0?

Tom

ryan@ryan-G74Sx / $ ls -l /dev/ttyUSB0crw-rw---- 1 root dialout 188, 0 Jun 8 15:30 /dev/ttyUSB0

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

> ... $ ls -lah ~/.wine/dosdevices

> ... lrwxrwxrwx 1 ryan ryan 12 Jun 8 15:51 com1 -> /dev/ttyUSB0

What about ls -l /dev/ttyUSB0?

Tom



Ryan, I just deliberately:
- pulled my USB adapters
- deleted my ~/.wine/dosdevices/com1 and ...3 links and /dev/ttyUSB0
and ...1
- rebooted
- plugged the adapters in
- lsusb -l to see both adapters
- dmesg to see that they were on ttyUSB0 and ...1
- made the .wine links
- started the IDE and opened Com1 for download and monitor

It worked.

Subsequent playing, though, somehow moved the ttyUSB0 adapter to
ttyUSB1, and replugging created a ttyUSB2, so the com1 link was broken.
I don't know why it changed, but it appears that error doesn't get back
to the Win app at open, so it thinks the port is fine. Rebooting put
the adapters back where they should be.

Try suspecting that the adapter has actually connected to /dev/ttyUSB1
instead of ...0. To test that, create two links: com1 to /dev/ttyUSB0
and com2 to ...USB1. Start the IDE and try both Com1 and Com2.

Tom

tom .... thank you ... for humoring me ... I just did the same thing ....
heres a screen shot lol
http://thetatechnology.com/error.png
sorry its a little cut out :? im not good with gimp lol

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

Ryan, I just deliberately:

- pulled my USB adapters

- deleted my ~/.wine/dosdevices/com1 and ...3 links and /dev/ttyUSB0

and ...1

- rebooted

- plugged the adapters in

- lsusb -l to see both adapters

- dmesg to see that they were on ttyUSB0 and ...1

- made the .wine links

- started the IDE and opened Com1 for download and monitor

It worked.

Subsequent playing, though, somehow moved the ttyUSB0 adapter to

ttyUSB1, and replugging created a ttyUSB2, so the com1 link was broken.

I don't know why it changed, but it appears that error doesn't get back

to the Win app at open, so it thinks the port is fine. Rebooting put

the adapters back where they should be.

Try suspecting that the adapter has actually connected to /dev/ttyUSB1

instead of ...0. To test that, create two links: com1 to /dev/ttyUSB0

and com2 to ...USB1. Start the IDE and try both Com1 and Com2.

Tom



for humor sake, i took my second serial converter and pluged it in two so i have one on USB0 and USB1
neither would open in IDE

> To: b...
> From: r...@hotmail.com
> Date: Sun, 9 Jun 2013 04:05:59 +0000
> Subject: RE: [BasicX] basicX and linux
>
> tom .... thank you ... for humoring me ... I just did the same thing ....
> heres a screen shot lol
> http://thetatechnology.com/error.png
> sorry its a little cut out :? im not good with gimp lol
>
> To: b...
> From: g...@rightime.com
> Date: Sat, 8 Jun 2013 23:08:33 -0400
> Subject: Re: [BasicX] basicX and linux
>
>
>
>
>
>
> Ryan, I just deliberately:
>
> - pulled my USB adapters
>
> - deleted my ~/.wine/dosdevices/com1 and ...3 links and /dev/ttyUSB0
>
> and ...1
>
> - rebooted
>
> - plugged the adapters in
>
> - lsusb -l to see both adapters
>
> - dmesg to see that they were on ttyUSB0 and ...1
>
> - made the .wine links
>
> - started the IDE and opened Com1 for download and monitor
>
> It worked.
>
> Subsequent playing, though, somehow moved the ttyUSB0 adapter to
>
> ttyUSB1, and replugging created a ttyUSB2, so the com1 link was broken.
>
> I don't know why it changed, but it appears that error doesn't get back
>
> to the Win app at open, so it thinks the port is fine. Rebooting put
>
> the adapters back where they should be.
>
> Try suspecting that the adapter has actually connected to /dev/ttyUSB1
>
> instead of ...0. To test that, create two links: com1 to /dev/ttyUSB0
>
> and com2 to ...USB1. Start the IDE and try both Com1 and Com2.
>
> Tom
>
>
>
>
>
>
>
>
>
>
dear tom :)
today installed linux mint 15, i gotta say its not as stable as 14 ... but ... i followed these steps agian with a fresh OS install ....
AND IT WORKED! :)
thanks for trying to help befor.... im back trucking now!

To: b...
From: r...@hotmail.com
Date: Sun, 9 Jun 2013 04:08:30 +0000
Subject: RE: [BasicX] basicX and linux

for humor sake, i took my second serial converter and pluged it in two so i have one on USB0 and USB1

neither would open in IDE

> To: b...

> From: r...@hotmail.com

> Date: Sun, 9 Jun 2013 04:05:59 +0000

> Subject: RE: [BasicX] basicX and linux

>

> tom .... thank you ... for humoring me ... I just did the same thing ....

> heres a screen shot lol

> http://thetatechnology.com/error.png

> sorry its a little cut out :? im not good with gimp lol

>

> To: b...

> From: g...@rightime.com

> Date: Sat, 8 Jun 2013 23:08:33 -0400

> Subject: Re: [BasicX] basicX and linux

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

> Ryan, I just deliberately:

>

> - pulled my USB adapters

>

> - deleted my ~/.wine/dosdevices/com1 and ...3 links and /dev/ttyUSB0

>

> and ...1

>

> - rebooted

>

> - plugged the adapters in

>

> - lsusb -l to see both adapters

>

> - dmesg to see that they were on ttyUSB0 and ...1

>

> - made the .wine links

>

> - started the IDE and opened Com1 for download and monitor

>

>

>

> It worked.

>

>

>

> Subsequent playing, though, somehow moved the ttyUSB0 adapter to

>

> ttyUSB1, and replugging created a ttyUSB2, so the com1 link was broken.

>

> I don't know why it changed, but it appears that error doesn't get back

>

> to the Win app at open, so it thinks the port is fine. Rebooting put

>

> the adapters back where they should be.

>

>

>

> Try suspecting that the adapter has actually connected to /dev/ttyUSB1

>

> instead of ...0. To test that, create two links: com1 to /dev/ttyUSB0

>

> and com2 to ...USB1. Start the IDE and try both Com1 and Com2.

>

>

>

> Tom

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

> [Non-text portions of this message have been removed]

>

>

>

>

>

>
> ... it worked!

Glad to hear it. Try VB6/SP6, too. There is a wine.org install
procedure that works for me.

Tom