Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Virtual USB-port for AVR
Goto page Previous  1, 2, 3 ... 19, 20, 21, 22  Next
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Petr_

Bascom Member



Joined: 24 Mar 2010
Posts: 66

blank.gif
PostPosted: Mon Nov 26, 2012 7:24 pm    Post subject: Reply with quote

Found the reason the error.
You need to add these lines to the code.
Code:
#if _build >= 20076
  Config Error = Ignore , 380 = Ignore
#endif
But I'm not sure that the version 2.0.7.6, _build = 20076.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5920
Location: Holland

blank.gif
PostPosted: Mon Nov 26, 2012 10:44 pm    Post subject: Reply with quote

no the best solution is to fix the code so arrays are properly used. the config error is a solution if you have no time to change the source. but best is to fix up the source.
it is explained in the history.txt. i probably can remove the autoshow option in the next update Laughing

_________________
Mark
Back to top
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Wed Nov 28, 2012 3:40 pm    Post subject: Reply with quote

Quick and dirty solution:
(2012-12-04: below i inserted a download with changes...)


there are more than 3....

replace all faulty lines like this:

replace Txstate with _usb_tx_rawbuffer


...and enjoy

best Michael Cool

_________________
For technical reasons, the signature is on the back of this message.


Last edited by six1 on Tue Dec 04, 2012 7:49 am; edited 1 time in total
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Fri Nov 30, 2012 4:38 am    Post subject: Reply with quote

Easy way to do it:

Press "Replace All" and enjoy.
Thanks Mister six1!
Back to top
View user's profile
DK5BU

Bascom Member



Joined: 06 Aug 2012
Posts: 23

germany.gif
PostPosted: Fri Nov 30, 2012 3:07 pm    Post subject: Reply with quote

Well,

thanks to six1 and Mrshilov for their suggestions.

But it did not work for me.

I tried to fix my swusb-morsekeyboard. It compiled but did not work.

It was recognized by the PC, but jumped into nirvana when I released the morse key.


As Petr_ reported in his message, the incompatibility started already with Version 2.0.7.5:
Quote:

"In BASCOM-AVR 2.0.7.6, software-USB, does not compile.
There are 3 error messages.
In BASCOM-AVR 2.0.7.5, the code compiles but does not work."


As I don't need the benefits of Version 2.X, I deinstalled Version 2.0.7.6, took out my old BASCOM CD and switched back to Version 1.11.9.6.


Ralf
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5920
Location: Holland

blank.gif
PostPosted: Fri Nov 30, 2012 3:49 pm    Post subject: Reply with quote

i do not use this software usb since i always use the hardware usb chips, but you can check this :
- in 2075, add $noframeprotect to your code. the usb lib might not support this option.
- in 2076, check for passing/declaring arrays the proper way. see also the help for Declare.

_________________
Mark
Back to top
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Tue Dec 04, 2012 7:31 am    Post subject: Reply with quote

edited Files swusb_declarations.inc and swusb_routines.inc
_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Tue Dec 11, 2012 12:36 pm    Post subject: Reply with quote

Mr. six1,
replacing Txstate with _usb_tx_rawbuffer not working on device with two interfaces (for example keyboard+multimedia). Crying or Very sad
Back to top
View user's profile
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Tue Dec 11, 2012 12:46 pm    Post subject: Reply with quote

please try with above downloadable files!
_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Tue Dec 11, 2012 11:39 pm    Post subject: Reply with quote

Thanks Mr. six1, it works!!! Very Happy
Back to top
View user's profile
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Wed Dec 12, 2012 1:01 pm    Post subject: Reply with quote

happy to help Very Happy
_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
omidkarkhi

Bascom Member



Joined: 11 Feb 2012
Posts: 2

PostPosted: Sun Jan 13, 2013 4:17 pm    Post subject: Reply with quote

Hi everybody.
how can i use multimedia keyboard keys such as mute, volume up or down or play button?
all my keyboard keys work well but these key codes are not working !!!
and what is usage page 12 (0C) in keys below and how can i use them? (Usage page of other keys are 07 )

Scan Next Track 0C 00B5
Scan Previous Track 0C 00B6
Stop 0C 00B7
Play/ Pause 0C 00CD
Mute 0C 00E2
Volume Up 0C 00E9
Volume Down 0C 00EA
Back to top
View user's profile
Mrshilov

Bascom LCD Guru



Joined: 24 Jan 2009
Posts: 314
Location: Russia

russia.gif
PostPosted: Sun Jan 13, 2013 4:40 pm    Post subject: Reply with quote

You need two interfaces for multimedia commands. Example: http://bascom.at.ua/publ/multimedijnaja_klaviatura_vinduksoida/1-1-0-74
Sorry, it is only in Russian. I send English version to Mark, but he don't publish it. Crying or Very sad
Here it: http://yadi.sk/d/5ERu9ZPw1qG4c
First version is simple, the second version uses EEPROM for keycodes.
Back to top
View user's profile
omidkarkhi

Bascom Member



Joined: 11 Feb 2012
Posts: 2

PostPosted: Mon Jan 14, 2013 2:51 pm    Post subject: Reply with quote

That was Great.
Thank you for your help !

O.K.
Back to top
View user's profile
ollopa

Bascom Member



Joined: 03 Sep 2007
Posts: 233
Location: California

usa.gif
PostPosted: Thu Feb 07, 2013 12:50 pm    Post subject: Wow! Reply with quote

Hi all,

I'm really pleased to see how much progress the community has been making with swusb! Thanks a lot to DK5BU for the additional examples and implementing the mouse example I never had the time to do. By the way, yes, you may distribute the library with your examples.

I'm so behind that my BASCOM is still on 2.0.7.3. Thank you six1 for updating the array passing! Are these changes compatible with older versions of BASCOM? I'll need to update the files on my website.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Goto page Previous  1, 2, 3 ... 19, 20, 21, 22  Next
Page 20 of 22

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum