Quantcast
Channel: MCS Electronics Forum
Viewing all 20597 articles
Browse latest View live

Share your working BASCOM-AVR code here : LORA : NEWTOPIC

$
0
0
Hi all, This is a working sample using the Lora SX1272 modules from Semtech. I’ve used Dorji DRF1272F modules at 868MHz and 900MHz. There are a lot of info regarding Lora on the net, so go there for info. Code is crude and not fully debugged, but working. Tested to work with one module inside my house as TX and the RX with LCD into the woods 500 meter away. This was on the lowest datarate and +17dbm. Antennas used was 8 cm magnet wire whip. I've ordered some more for 433MHz to test on and expect them to go even further.

Share your working BASCOM-AVR code here : LORA : REPLY

$
0
0
Thanks for sharing. Very nice. Have done some testing with the RN2483 on 868 Mhz. A very small pitch to solder. Found some break-out boards. [img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora1.jpg[/img:ba2cbe783d][img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora2.jpg[/img:ba2cbe783d] [img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora3.jpg[/img:ba2cbe783d][img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora4.jpg[/img:ba2cbe783d] [img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora5.jpg[/img:ba2cbe783d][img:ba2cbe783d]http://members.home.nl/hobbycorner/images/Bascom_forum/lora6.jpg[/img:ba2cbe783d] Got some testresults. Have fun Ben Zijlstra

Share your working BASCOM-AVR code here : Ultra Light MQTT client : REPLY

$
0
0
Got some remarks about the Bascom program In the program I am using [code:1:b8fd1dac88]'topic For Temp = 1 To Topic_len Temp2 = Temp + 6 Temps = Mid(topic , Temp , 1) Sub_ar(temp2) = Asc(temps) Next Temp [/code:1:b8fd1dac88] Instead of using a [b:b8fd1dac88]MID [/b:b8fd1dac88]it is easier to use a [b:b8fd1dac88]ASC(string,index)[/b:b8fd1dac88] [code:1:b8fd1dac88]'topic For Temp = 1 To Topic_len Temp2 = Temp + 6 Temp4 = Asc(topic , Temp) Sub_ar(temp2) = Temp4 Next Temp [/code:1:b8fd1dac88] === If you go over the MQTT documentation you will find things like [b:b8fd1dac88]Retain[/b:b8fd1dac88] and [b:b8fd1dac88]Last Will and Testament[/b:b8fd1dac88] [quote:b8fd1dac88]A retained message is a normal MQTT message with the retained flag set to true. The broker will store the last retained message and the corresponding QoS for that topic Each client that subscribes to a topic pattern, which matches the topic of the retained message, will receive the message immediately after subscribing. For each topic only one retained message will be stored by the broker.[/quote:b8fd1dac88] [quote:b8fd1dac88]The Last Will and Testament (LWT) feature is used in MQTT to notify other clients about an ungracefully disconnected client. Each client can specify its last will message (a normal MQTT message with topic, retained flag, QoS and payload) when connecting to a broker. The broker will store the message until it detects that the client has disconnected ungracefully. If the client disconnect abruptly, the broker sends the message to all subscribed clients on the topic, which was specified in the last will message. The stored LWT message will be discarded if a client disconnects gracefully by sending a DISCONNECT message.[/quote:b8fd1dac88] *From HiveMQ MQTT Essentials If you would like to check, the const for these commands are [b:b8fd1dac88]Connect with Last Will and Testament[/b:b8fd1dac88] [code:1:b8fd1dac88]Const Connect_lwt = "{016}{045}{000}{004}MQTT{004}{038}{000}{070}{000}{013}Bascom-Client{000}{008}home/lcd{000}{007}Offline{000}" [/code:1:b8fd1dac88] === [b:b8fd1dac88]Creating a retain message[/b:b8fd1dac88] [code:1:b8fd1dac88]Const Retain = "{049}{022}{000}{008}home/lcdBascom Rules"[/code:1:b8fd1dac88] === [b:b8fd1dac88]Deleting a retain message[/b:b8fd1dac88] [code:1:b8fd1dac88]Const Delete_retain = "{049}{010}{000}{008}home/lcd"[/code:1:b8fd1dac88] === These examples are Ultra Light MQTT clients In the specs of MQTT something about topic and message length [quote:b8fd1dac88]The length of the actual topic string is at most 65535 bytes. This is a limit imposed by the mqtt spec, you can't change it. It is also worth noting that the topic is encoded with utf-8, so you may have less than 65535 characters available. The payload of the message is limited to 268,435,456 bytes. Again, this is defined by the spec. If you are routinely approaching either of these limits you should be thinking about whether what you are doing is sensible.[/quote:b8fd1dac88] On the Internet you can find installation instructions how to turn your Raspberry Pi into a Mosquitto Broker. Have fun Ben Zijlstra

BASCOM-AVR : LINEINPUT Limit : NEWTOPIC

$
0
0
When reading from an SD card, is there a limit to the size of the line that's read? I'm guessing 256 Bytes? [b:0fd1f727d4][color=red:0fd1f727d4](BASCOM-AVR version : 2.0.7.8 )[/b:0fd1f727d4][/color:0fd1f727d4]

BASCOM-AVR : LINEINPUT Limit : REPLY

$
0
0
Check the $bigstring in the help Have fun Ben Zijlstra

BASCOM-AVR : EEprom access using pointers and tables : REPLY

$
0
0
Yes it works, after I realised the index was zero based. Many thanks Mark !

Share your working BASCOM-AVR code here : LORA : REPLY

$
0
0
Hi Anders, Thank you for sharing. LORA is indeed very interesting. Good to have your code :D

BASCOM-AVR : LINEINPUT Limit : REPLY

$
0
0
The max is 255 bytes. $bigstring will not help since AVR-DOS does not support bigstrings. I wonder why one would need such long lines?

BASCOM Project Blog : Weatherstation : REPLY

$
0
0
Two new pictures Nice weather here in Holland [img:05991a33bd]http://members.home.nl/hobbycorner/images/Bascom_forum/weerst_time_date.jpg[/img:05991a33bd] Added a PCF8583 I2c clock IC which get syncronized with the internet. [img:05991a33bd]http://members.home.nl/hobbycorner/images/Bascom_forum/print_weerstation.jpg[/img:05991a33bd] On this new board. Have fun Ben Zijlstra

BASCOM-AVR : New Bascom AVR on Windows 2000 : NEWTOPIC

$
0
0
Hello, I wanted to install (first time) a new Bascom AVR (fresh CD version, newly buyed) on a computer running Windows 2000 (Polish language), where is already installed the Bascom 8051. After a trouble-free installation, I tried to start Bascom AVR first; it reported a lack of library GdiPlus.dll, so I downloaded it from the web and placed it to the place indicated by the error message. After the program startup began to report a new message: [code:1:5a944b7d61]bascavr.exe - not found the entry point not found The procedure entry point wcsnlen library msvcrt.dll.[/code:1:5a944b7d61] From what I read, it is a popular error associated with different MSVCRT versions of the file. I tried to replace this file (msvcrt.dll) with a file copied from Bascom 8051 and other downloaded from the net, but it nothing helped. The OS of this computer cannot be changed or upgraded, it must be Win2000PL. Is there a solution? FAQ doesn't helps me. Thanks. [b:5a944b7d61][color=red:5a944b7d61](BASCOM-AVR version : 2.0.7.8 )[/b:5a944b7d61][/color:5a944b7d61]

BASCOM-AVR : New Bascom AVR on Windows 2000 : REPLY

$
0
0
Hi, [img:8c1b6038a9]http://www.evertdekker.com/Joomla/images/stories/fotoupload/bascomver.jpg[/img:8c1b6038a9]

BASCOM-AVR : New Bascom AVR on Windows 2000 : REPLY

$
0
0
Hi again, Thanks. As I understand, since some version of Bascom AVR, the later systems are not supported... Can You tell me, since which version the WIN2000 is not supported? Is there still any possibility to install it on Win2000 with some combinations or it is definitely not possible?

BASCOM-AVR : New Bascom AVR on Windows 2000 : REPLY

$
0
0
you really should stay away from windows 2000 and XP. Especially when the PC is connected to the internet. when you install, make sure you have admin rights. and install into a folder like c:basavr so you do not have problems with access rights. the dll you can download from our web the download section. otherwise, write to support. Some dll need to be registered with regsvr32 from the command line, in the folder where the dll resides. We do not check the latest versions on w2000 anymore, but i see no reason why it would not work.

BASCOM-AVR : New Bascom AVR on Windows 2000 : REPLY

$
0
0
Hi, Thank You very much. Unfortunately, I made an mistake, my version is Bascom AVR SE (Special edition): https://kamami.pl/bascom/393-bascom-avr-se-kompilator-bascom-dla-mikrokontrolerow-avr.html Is it changes something? Of course, I will do all things described by You. Best regards

BASCOM-AVR : New Bascom AVR SE on Windows 2000 : REPLY

$
0
0
it does not change a thing. I am installing W2000 into a VM and see how it goes.

BASCOM-AVR : New Bascom AVR SE on Windows 2000 : REPLY

$
0
0
Thank You very much, Mark! I do not have access to a this WIN2000 computer at this moment

BASCOM-AVR : New Bascom AVR SE on Windows 2000 : REPLY

$
0
0
well it simply worked. all i had to do was download the gdiplus from microsoft and put the dll into the bascom-avr application folder. after that, bascom starts and operates normally. you might want to make sure your w2000 has the latest/last SP. [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=6a63ab9c-df12-4d41-933c-be590feaa05a&displaylang=en[/url]

BASCOM-AVR : New Bascom AVR SE on Windows 2000 : REPLY

$
0
0
Thank You again, I will try to do everything what was described by You and I believe it will help.

BASCOM-AVR : New Bascom AVR SE on Windows 2000 : REPLY

$
0
0
Okay, the problem was in GDIPLUS.DLL, i have no idea, what was wrong. Now it works! Thank You very much!

BASCOM-AVR : SPI DMA trigger in AVR-DOS : NEWTOPIC

$
0
0
Hi guys, How do you trigger an SPI DMA block transfer in AVR-DOS? I am trying to increase the speed of reading a file from an SD card. Regards, Igor [b:b7f745cfe9][color=red:b7f745cfe9](BASCOM-AVR version : 2.0.7.8 )[/b:b7f745cfe9][/color:b7f745cfe9]
Viewing all 20597 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>