Changing the name of BM70 BLE module without Microchip's evaluation board - bluetooth-lowenergy

I am trying to customize the name of my BM70 BLE module. I am not using the BM70 PICTail evaluation board. Instead I am using the MSP430F4799 microcontroller to communicate with the module and to configure the P2_0 pin and other necessary hardware pins. I tried with the UI configuration tool and manual pattern test tool to change the name of the BM70 module with the COM port where the UART of the MSP430 is connected but it did not work. Now my question is there any way to access command set protocol of BM70 module without using the PICTail evaluation board?

you can do that in the same way as BM71 module. You can read about the whole process in my blog at bijan.binaee.com/index.php/2018/08/03/bm71-no-uart-response/
ps: I wish I could post this as a comment but I don't have required reputation at this community (If you are a moderator I appreciate if you delete this answer and make it as a comment if possible)

Of course you can use your MSP 430. Please have a look at the BM70 user guide. There are some hardware connections required to interface the module (see page 63). You had to use the default baudrate to connect the module the first time.

Related

Serial communications over stlink with stm32f4discovery, is it possible?

I have the following: STM32F407G-DISC1. My goal is to communicate (sending strings back and forth) between my pc and the mcu over serial and I currently am able to do so using the micro-usb (otg) port, while powering separately using the mini-usb st-link port (so using two cables).
Is it possible to use the mini-usb port for serial communications? (eliminating one of the cables)
I have read the user manual and my interpretation is that this is not possible without physical modifications. But I am a beginner and would like to verify I am correct in this interpretation. I have researched thoroughly however most sources seem to not refer to this specific board and it is my understanding with the newer version of st-link it uses this should be achievable.
It is possible - just send the messages via the USART2
You need to solder those two wires as they screw up the design.

I found there a function "fopen",but how to use it?

I am amazing that arduino due has file operators.But where is my file?
I don't know what's the meaning of a file on a system without file system.
You need the 3V compatible shield which has SD card slot. You can also implement the host USB stack and connect usb storage devices. You can also create your file system in the uC FLASH. The last two require vast knowledge of the hardware as I do not think that you will be able to find the arduino libraries for it.

Communication b/w two WiFi modules using Arduino Ide

Firstly, I'll just give you a brief introduction about our project... its "Speech controlled Home Automation System" where we are controlling the Home appliances by the voice or speech commands. We're successfully done with the voice recognition module. But our problem is with achieving the communication between the transmitter {where the user gives the voice command} and receiver {where the home appliances are present} through WiFi i.e. we have got 2 ESP8266 12E modules interfaced with Arduino both at the transmitter and receiver side and these two WiFi modules need to be communicated(To interchange some data sent by Arduinos).So please let us know which Arduino code need to be used at transmitter side wifi module and at Receiver side wifi module and also about the header files or additional softwares(if any)to be used.
you can achieve this by starting one of wifi modules in Access Point Mode and the other one has to be set to Station Mode in order to connect to the first one.
In case you want to add a router, just set both ESP8266 modules to Station Mode and connect them to the router.
And then transfer any data you want through AT commands of ESP8266.
Here is the refrence to them.
https://room-15.github.io/blog/2015/03/26/esp8266-at-command-reference/
If you are newbie to Esp8266 and Arduino , this will help you.
http://www.teomaragakis.com/hardware/electronics/how-to-connect-an-esp8266-to-an-arduino-uno/
Good Luck !
I worked on a similar system a year ago. I was developing a remote controlled toy. My main difference was I used the ESP8266 without an Arduino attached.
One ESP worked as a a WiFi hotspot and the other connected to it, sending messages through UDP.
For some reason, I could not get the two ESP modules to connect (I think it was a problem with the board I had), but I sent messages from my computer, and it worked out fine. I will not burden you with all of the code, but here is the GitHub link.
All that needs to happen is they will be on the same WiFi network, and then you can use the ESP8266 WiFi library to send messages between the two. Like I said above, I used UDP, which is good for high speed, with no error checking. But there is also TCP (higher up, has error checking code), or you can use the server/client part of the library to set up a full web server and read/write data to it. Without knowing what type of data, I cannot comment on what would be the best method.
As for headers, you will need WiFi.h, and if you are using UDP you will need WiFiUdp.h
You should not need any external software besides the Arduino IDE.
I taught myself from scratch for this product, using two main resources: the Arduino library reference, and the docs on the ESP8266 Arduino GitHub page

How to send data from 8051 input ports to esp8266?

Please pardon me if this question comes as a little too basic but I have tried searching almost everywhere but haven't found a clue.
I am using the esp8266 module and have uploaded the firmware in it. I have also set it as "Access point" so that other modules are able to connect with it. My problem is that I want to control it pro-grammatically through an 8051 micro-controller. I have searched online and there is a lot of documentation on how it program it through arduino, but that doesn't solve it for me. I want to use assembly language to build a serial protocol that communicates the data from 8051 to esp8266 and then to the connected modules (such as Android device).
My question really is, "would it be possible to just connect TX/RX of 8051 to RX/TX of esp8266 and write a code in assembly that transfers data as I desire to esp8266? Or, do I have to do something else?".
At the moment the only documented way for a host controller (the 8051 in your case) to talk to the ESP8266 is to use the serial port (there is a slave SPI port but the mechanism for driving it isn't known yet). So you will have to make up a little protocol to send and receive commands and data (assuming that the standard support for an enhanced AT command set isn't sufficient for you).
The baud rate can go a lot higher than the default 115200bps, if you need it to (although I'm not sure if the 8051 could keep up).

TI sensor tag clone

I'm planning to design a custom sensor tag using a CC2540 ibeacon module and IMU unit. Can I burn TI's sensor tag firmware directly to the ibeacon module without doing changes to the source code, or do I have to configure I2C communication part in the source code? If so please let me know how to do it.
Regards.
ibeacon module I'm using
IMU sensor I'm planning to intergrate
Do you have any more information about the iBeacon module you're using. It's hard to tell if it's set up so you can plug n play sensors. The information in the product description is not very helpful.
It looks like the iBeacon module you're using is relying on the System-on-Chip solution that the CC2540 provides. If this is true in order to modify the source you'll need the IAR 8051 Compiler which requires purchasing a license at around $3,000 US dollars.
It's hard to say for certain without more information about that module. Do you have a spec sheet for that module?
You should use a Light Blue Bean instead of that module. It has iBeacon mode options available from the start. https://punchthrough.com/bean/ibeacon-setup/
It is programmable with the Arduino IDE, with over the air updates. So you won't have to deconstruct your project to reprogram it, and you won't have to buy the IAR compiler either. The Beans even have the I2C communication busses built in, as well as an onboard accelerometer! https://punchthrough.com/bean/arduino-users-guide/

Resources