Additional library for MikroBasic PRO 2009

General discussion on mikroBasic PRO for PIC.
Author
Message
igeorge
Posts: 593
Joined: 28 Dec 2005 09:15

Re: Additional library for MikroBasic PRO 2009

#76 Post by igeorge » 31 Mar 2010 07:28

Hello Florin,
The link to download the zip file is dead
Please update
Thank you
Ion
Experience is something you don't get until just after you need it

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Re: Additional library for MikroBasic PRO 2009

#77 Post by yo2lio » 31 Mar 2010 07:49

igeorge wrote:Hello Florin,
The link to download the zip file is dead
Please update
Thank you
Ion
All OK here...

http://www.microelemente.ro/MikroBasic/ ... y_V1_4.zip
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

igeorge
Posts: 593
Joined: 28 Dec 2005 09:15

Re: Additional library for MikroBasic PRO 2009

#78 Post by igeorge » 31 Mar 2010 08:15

thank you
it did work
originaly i clicked on the first page link and just went to your main page
thanks again
ion
Experience is something you don't get until just after you need it

Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

Re: Additional library for MikroBasic PRO 2009

#79 Post by Kalain » 10 Apr 2010 05:05

Hi yo2lio,

I can't install V1.4 because it search automaticaly and by default MB path on my USB key licence (k:\). But by now, I do not have any more my USB key license (lost it) and by now I use MB on a borrowed laptop (c:\). (MB in demo mode)

Is there a way to choose specific path to install additionnal library ?

Thanks
Alain

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#80 Post by stevenindon » 15 Apr 2010 11:32

Florin,

Code: Select all


dim strLongString as string[550]
...
...
...
sub procedure Eth_UserTCP(dim byref dest_ip_addr_T as IpHeader, dim byref source_port_T, dest_port_T, len_T as word, dim CC_Sock as byte)
      if len_T > 550 then len_T = 550 end if
          if source_port_T = MY_TCP_Port then
             memset(@strLongString,0,550)
             CopyEthMem_CPToRam(@strLongString,len_T)

Florin, Looking at the above codes, is there any way that i can access directly to the variable in your EthMem other than having to use this function : CopyEthMem_CPToRam(@strLongString,len_T)

Using the function CopyEthMem_CPToRam(@strLongString,len_T), I have to waste pretty much of my MCU ram by creating the variable : dim strLongString as string[550]


Thanks

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Re: Additional library for MikroBasic PRO 2009

#81 Post by yo2lio » 15 Apr 2010 17:04

stevenindon wrote:Florin,

Code: Select all


dim strLongString as string[550]
...
...
...
sub procedure Eth_UserTCP(dim byref dest_ip_addr_T as IpHeader, dim byref source_port_T, dest_port_T, len_T as word, dim CC_Sock as byte)
      if len_T > 550 then len_T = 550 end if
          if source_port_T = MY_TCP_Port then
             memset(@strLongString,0,550)
             CopyEthMem_CPToRam(@strLongString,len_T)

Florin, Looking at the above codes, is there any way that i can access directly to the variable in your EthMem other than having to use this function : CopyEthMem_CPToRam(@strLongString,len_T)

Using the function CopyEthMem_CPToRam(@strLongString,len_T), I have to waste pretty much of my MCU ram by creating the variable : dim strLongString as string[550]


Thanks
You can read from ETH MEM (TCP packet) with Eth_GetByte
Eth_GetByte will increment automatically read pointer.

If you want to reset the read pointer to first byte, run this : ReadFromEthMem(AddrPacket + 53)
First byte is located at AddrPacket + 54

Code: Select all

first_byte = ReadFromEthMem(AddrPacket + 54)
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Kalain
Posts: 1093
Joined: 11 Mar 2005 18:26
Location: Aubenas, France

Re: Additional library for MikroBasic PRO 2009

#82 Post by Kalain » 15 Apr 2010 21:03

Kalain wrote:Hi yo2lio,

I can't install V1.4 because it search automaticaly and by default MB path on my USB key licence (k:\). But by now, I do not have any more my USB key license (lost it) and by now I use MB on a borrowed laptop (c:\). (MB in demo mode)

Is there a way to choose specific path to install additionnal library ?

Thanks
Ok, There was a mistake somewhere in my computer with 2.50 and 3.20 MB versions compilers. Only 2.50 was licenced in my computer. :x but not 3.20. :shock: :shock:
I desinstalled 2.50, reinstalled 3.20, applied new licence.
After that I could installed additionnal library.

Regards
Alain

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#83 Post by stevenindon » 16 Apr 2010 04:54

Code: Select all

You can read from ETH MEM (TCP packet) with Eth_GetByte
Eth_GetByte will increment automatically read pointer.
Thank you so much florin.
I will try the above code.

Thanks again :D

pratik345
Posts: 15
Joined: 18 Mar 2010 04:24

Re: Additional library for MikroBasic PRO 2009

#84 Post by pratik345 » 16 May 2010 12:17

hi need lib for eeprom 24c512

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#85 Post by stevenindon » 17 May 2010 12:11

Florin,


Can i ask for a favour? As i noticed your latest additional library does not include the latest
FAT32 library from Dany.

As the Fat32 library compiled by you usses your additional string library, Can you please compile your additional string libraries with Dany's FAT32 (latest version)?... as some of the latest functions in FAT32 are very useful for my coming project. ( FAT32_SPI1 and FAT32_SPI2 )


Thanks

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Re: Additional library for MikroBasic PRO 2009

#86 Post by yo2lio » 17 May 2010 12:14

stevenindon wrote:Florin,


Can i ask for a favour? As i noticed your latest additional library does not include the latest
FAT32 library from Dany.

As the Fat32 library compiled by you usses your additional string library, Can you please compile your additional string libraries with Dany's FAT32 (latest version)?... as some of the latest functions in FAT32 are very useful for my coming project. ( FAT32_SPI1 and FAT32_SPI2 )


Thanks
I'm sorry, I'm very busy and I don't have time for this.

Sorry and thanks for understanding.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#87 Post by stevenindon » 18 May 2010 05:09

Forin,

Its ok. You have done so much for us. Only whenever you have time.

Thanks and Cheers

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#88 Post by stevenindon » 02 Jun 2010 07:32

Florin,

Currently i have just installed Windows 7 due to my harddisk failure... and after installing MBro and your additional libraries, I tried to compile some previous projects and this is what i found :

File 'lib_delays_lio.mcl' not found

I tried to search in the folder C:\Program Files\Mikroelektronika\mikroBasic PRO for PIC\Uses\P18 for 'lib_delays_lio.mcl' but i couldnt find it.

Please advice

Thanks.

stevenindon
Posts: 466
Joined: 18 Apr 2008 03:46

Re: Additional library for MikroBasic PRO 2009

#89 Post by stevenindon » 02 Jun 2010 08:22

Florin,

I solved the problem by including the file :

include "lib_delays_lio"

After compiled... I took out the include and it now works. I guess the mcl is built when i put
include the bas file in my project.

As for new users, I guess they might have problem with this.

Thanks

dmtulsa
Posts: 114
Joined: 04 Jun 2010 14:08
Location: Tulsa,Ok
Contact:

Re: Additional library for MikroBasic PRO 2009

#90 Post by dmtulsa » 04 Jun 2010 17:17

I understand there is a library for the MRF24J40MA RF chip. I've tried to follow links posted here but they seem to be dead.

Where can I find the Library or source code for the library.

Thank you
Doug
Doug
KD5NWK

Post Reply

Return to “mikroBasic PRO for PIC General”