Hello,
I'm doing some testing with HM-11 (BlueTooth Low Energy) modules.
They are advertised of having a range of 100 meter line of sight with an Iphone.
I have tested this and only reach 8 meter.
This is also true when I connect two HM-11 with each other.
I'm beginning to suspect that I have counterfeit devices although the module seem to react like a real one.
Counterfeit devices are widely available on the market.
When I use AT+HELP I get 'www.jnhuamao.cn´ which is the designer of the HM-11.
Firmware version is HMSoft V540
Is there anyone who has any experience with this modules and did get the 100m distance between modules or module and IPhone?
The HM-11 is a downsized version of the HM-10 which is the same when it comes to firmware.
Thanks in advance !
Peter
↧
Various : HM-11 Range : NEWTOPIC
↧
Various : HM-11 Range : REPLY
Hello Peter
Blue tooth uses a shared frequency segment so there are hundreds of devices making a lot of noise.
If your in the middle of some remote place you might get more than 100meters.
The modules that use lower frequencies in the VHF segment will have greater range
Regards Paul
↧
↧
BASCOM-AVR : Read the data in hexadecimal : REPLY
thanks
I wrote this code ...
why does not I receive the string correctly?
es. : 02 00 03 33 30 59 03 58
receives: 00 03 03 58 ???
[code:1:b6dc2199cb]
$regfile = "m1284def.dat"
$crystal = 16000000
$baud1 = 9600
$hwstack = 40 ' default use 32 for the hardware stack
$swstack = 40 ' default use 10 for the SW stack
$framesize = 40
Config Lcdpin = Pin , Db4 = Porta.3 , Db5 = Porta.2 , Db6 = Porta.1 , Db7 = Porta.0 , E = Portc.5 , Rs = Portc.6
Config Lcd = 16 * 2
Config Com2 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Open "com2:" For Binary As #2
Config Portd.6 = Output
Declare Sub Bip
Dim Cmdrx As String * 254
Dim Rx_cmd , Ric As Byte
Bip
Enable Interrupts
Cls
Locate 1 , 1
Lcd "HELLO"
Wait 2
Bip
Print #2 , Chr(&H02) ; Chr(&H00) ; Chr(&H02) ; Chr(&H33) ; Chr(&H30) ; Chr(&H03) ; Chr(&H00); 'POWER ON
Cmdrx = ""
Do
Rx_cmd = Ischarwaiting(#2) 'CONTROLLA SE E' STATO RICEVUTO UN CARATTERE
If Rx_cmd = 1 Then
Rx_cmd = Waitkey(#2) 'RITORNA IL VALORE DECIMALE RICEVUTO
Ric = 1
Cmdrx = Cmdrx + Hex(rx_cmd) 'INSERISCE I CARATTERI IN UNA STRINGA FINO A QUANDO LA TRASMISSIONE NON TERMINA
Waitms 1
Else
If Ric = 1 Then
Ric = 0
Bip
Waitms 500
Locate 2 , 1
Lcd Cmdrx '??????????????
If Cmdrx = "06" Then
Waitms 500
Bip
Print #2 , Chr(&H05);
End If
End If
Cmdrx = ""
End If
Loop
End[/code:1:b6dc2199cb]
↧
BASCOM-AVR : Read the data in hexadecimal : REPLY
I think the code STX is the "STX" code of the emitter see the protocol RS232 here
[url]https://www.commfront.com/pages/3-easy-steps-to-understand-and-control-your-rs232-devices[/url]
the 02 is like the "toc toc , i'm here" to the door of your house :wink:
JP
↧
BASCOM-AVR : Read the data in hexadecimal : REPLY
I don't think that the data is send as hex string but just as byte with hex representation, that's why you receive the 1/2.
↧
↧
BASCOM-ARDUINO : SSD1306 Oled I2c 0.96 inch : REPLY
Hello Mrshilov, how are you? I'm starting to use your library with buffer, and obviously it's much faster, in addition to having excellent graphics commands.
I just have a problem, set LCD_AUTO = 0 and it is true that the display does not show anything properly, after executing Gosub _update_screen it shows it but the screen remains as if it were in LCD_AUTO = 1, with a very fast but annoying blink, Probe with LCD of .96 and with 2.42 and does the same.
You have some idea of what mistake I may be making.
Here the video [url]https://www.dropbox.com/s/pq00xcfkzpdwrku/VID_20180903_183352.mp4?dl=0[/url]
Thank you so much.
Best regards.
↧
Various : HM-11 Range : REPLY
Hello Paul,
Thanks for your answer. I've tested the modules in a 'low/no RF' enviroment (I live in rural area) but the range is still the same.
I have contacted the supllier and he will get back to me.
Peter
↧
BASCOM-ARDUINO : SSD1306 Oled I2c 0.96 inch : REPLY
Solved the problem, change in the LIB the values of initialization by those of the LIB without buffer and the flicker decreased to logical values.
Thanks also.
Best regards.
↧
Share your working BASCOM-AVR code here : AS3935 Franklin Lightning Sensor IC : REPLY
Hi Guys,
I have just got hold of one of these devices for a project and am about to embark on some testing. I see that there is some suggestion of a bug? with the
device operation, and also some possible issues with resetting the IRQ after a detection?
Has anyone found any advantage in putting the atmega to sleep whilst waiting so the 3935 is not listening to processor noise?
Do you guys have any updates on your earlier experiments?
neil
↧
↧
BASCOM-AVR : Fastest IC : REPLY
If you need really fast AVR then use FPGA and program it as an AVR, search the web or [url=https://hackaday.com/2009/11/19/avr8-virtual-processor-on-fpga/]see one link here[/url].
Best regards
Jure
↧
Various : HM-11 Range : REPLY
Hi Peter,
my question is a bit off-topic... how much current does HM-11 actually use? I see at ebay data: Working current: 90ua
Suspen mode: 14 uA, but is that really that small consumption? Can you confirm that?
Thanks & best regards
Jure
↧
Various : HM-11 Range : REPLY
Hello Jure,
That seems a bit low to me. See the table on the link below.
[url]http://wiki.seeedstudio.com/Bluetooth_V4.0_HM_11_BLE_Module/[/url]
I haven't measured it myself.
Peter
↧
BASCOM-AVR : Bascom stops to start : NEWTOPIC
Hello,
by sudden starting Bascom stops with the message
"bacavr.exe Bascom Anwendungsfehler" (translate: Application error)
"Die Anwendung konnte nicht korrekt gestartet werden (0000005)".
"Klicken Sie auf ok, um die Anwendung zu schließen"
(translate ~: "Click OK to close the application")
This happens just for Bascom.
I reinstalled Bascom, but that does not help.
Running Win10 with all updates.
Is there any suggestion?
Best regards, Meister
[b:ac94e60068][color=red:ac94e60068](BASCOM-AVR version : 2.0.8.1 )[/b:ac94e60068][/color:ac94e60068]
↧
↧
BASCOM-AVR : Fastest IC : REPLY
[quote:9dea8e2aea]If I want to use the XMega series with 32MHz I need an external crystal or is the internal oscillator enough.[/quote:9dea8e2aea]
The Xmega chips have multiple clock sources, and a PLL to multiple the clock frequency.
One can easily run an Xmega on its internal 32 MHz clock.
The Xmega A series are the big Xmegas, with lots of pins, and lots of modules.
The Xmega E series is the smallest of the Xmegas, (pin wise), and additionally has a programmable logic unit that might be useful in your project.
Finally, know that the Xmega core seems to run well at 3 V and room temperature at 48 MHz, (via the PLL), for the core digital functions.
One would not want to run at that speed if one was using the ADC, DAC, AC, or EEPROM.
It would also probably not be a good idea to run out of spec for a commercial product.
JC
↧
BASCOM-AVR : Bascom stops to start : REPLY
On backup-drives I have several backup-copies of the system partition (C:), including the Bascom directory.
When I chose a drive that has Bascom Version 2.0.7.9, that runs!
When I chose a drive with Bascom version 2.0.8.0 and 2.0.8.1 they don't run!
Is there some more fundamental difference in the underlying programming method between
Bascom versions 2.0.7.9 and 2.0.8.0 and later?
Best regards, Meister
↧
BASCOM-AVR : Bascom stops to start : REPLY
you need to :
- install with admin rights
- run the first time with admin rights
error 5 is a well know error in win 10. just google it.
the only fundamental change is support for hid based programmers. it can be the case that an update in win10 requires more permission.
i could not (re) produce the problem. and so far we did not get any similar report. so try the suggestions first.
↧
BASCOM-AVR : Bascom stops to start : REPLY
Hello Mark,
I uninstalled Bascom and reinstalled as you recommended, this time installing on drive d.
The same error as before.
The strange thing is that nothing happens (no error, no Bascom IDE, no Bascom process) when starting Bascom as administrator!
I had tried several things I found in the internet, but nothing helped.
So, I am running out of ideas.
Do you have any further suggestion?
Thanks, Meister
↧
↧
Announcements : Server : NEWTOPIC
Please read this :
https://www.mcselec.com/index.php?option=com_content&task=view&id=384&Itemid=65
↧
BASCOM-AVR : "warm" reset doesn't work properly in assembly : NEWTOPIC
Take the following code:
[code:1:d4606a8850]$regfile = "m2560def.dat"
$hwstack = 1000
$swstack = 800
$framesize = 600
$crystal = 16000000
$baud = 57600
$baud1 = 57600
$ASM
jmp &H1FC00 'hardcoded loader start address
$END ASM
end[/code:1:d4606a8850]
I have the Bascom Bootloader installed and it works fine. If I do a "hard" reset (either cycle power or pull the reset line on the AT2560 low), the processor resets and the bootloader sends a series of "^" as it should. HOWEVER, if I do a reset from the above code, no "^" is sent, only a value of 255 (which the Bascom terminal displays as a space).
This didn't happen in earlier versions of Bascom but I very recently had reason to recompile the existing code and noticed this (mis)behavior.
[b:d4606a8850][color=red:d4606a8850](BASCOM-AVR version : 2.0.8.1 )[/b:d4606a8850][/color:d4606a8850]
↧
BASCOM-AVR : "warm" reset doesn't work properly in assembly : REPLY
I have no idea why you use asm instead of GOTO ?
I can guarantee that the GOTO or JMP always works the same for all versions.
I think this is caused by the fact that the bootloader is compiled with an older version. Newer versions use the 2x speed option in order to calculate a better error free baud.
Either recompile the boot loader too, or just remove the 2x flag from the dat file so this option will not be used. This is mentioned on the forum in earlier posts just search for the post.
If you mention earlier versions, do specify exactly which ones, and better give some files for both versions we can test.
↧