I am using the RN4871 bluetooth module from microchip for sending sensor data to matlab. I programmed the module according to this website. www.allaboutcircuits.com
I was able to program the module through the serial monitor and also changed the name of the module to "RN4871_SAKIN".
Now I wanted to read the analog values from the characteristics UUID. For that I wanted to use matlab. I searched with the command "blelist" the available nearby BLE devices and found my device.
But when I try to connect to the device matlab gives me an error. I tried using ble("name") and ble("address") but both gave me the same error.
I dont think that matlab is the issue here. But I really dont know how to solve the problem. Going through the troubleshooting section in matlab was also not helpfull.
Matlab Failed to connect to device
Has someone experience connecting with this bluetooth module?
Cheers
Related
This semester I have a project where I need to send data from my microcontroller to my PC and read/interpret its data. We are doing this using an ftdi cable and using matlab to read the data.
I would like to know if there is a way that I can see if my matlab code works that doesn't involve me going to the lab to test it. That is, if there is a way to simulate receiving data in a USB port of my computer so that I can test if my code is working.
Thanks in advance
I want to preface this by saying I am learning Raspberry Pi. This is my first real hands on experience. A project I am working on requires our PI-3 to be connected to the internet via a SIM.
We are using the SIM800 Board (https://www.modmypi.com/raspberry-pi/communication-1068/raspberry-pi-sim800-gsm-breakout-board) and a T-Mobile SIM. Please note that the SIM is already activated.
I followed along with this tutorial and used SAKIS3G: https://www.modmypi.com/blog/how-to-connect-your-raspberry-pi-to-a-3g-network. Everything works until the final selection "custom TTY..."
I receive the following error box: "Device did not report GSM capabilities. You can skip this by adding --noprobe command line switch." I have searched high and low for solutions, but there is very limited information. Does anyone here have experience with errors such as this and can point me in the right direction?
I also added the --noprobe suggestion, but it still printed the same error.
I found a work around, hopefully this is useful for someone. Sakis3G seems to be more focused around other SIM card models rather than T-Mobile. I found a really good guide that allows for easy connection (https://www.rhydolabz.com/wiki/?p=16325).
Follow the link's steps and you should be good. The only flaw with this currently is that it requires manual connection every time the pi boots, but this could probably be fixed by someone who knows R-Pi better than me!
Using c programing i need to display mac address of the devices which are connected to router on terminal.I tried with so many things bt still i am not getting the exact output.Else any command is there to get that details please share.i am doing project based on this so please if anyone know means share the answers.
Not sure about doing it with C, but I have a look at ettercap you could use some command line script to to easily get info about all connected devices a local network.
What you are looking for is to write your your arp-scan.
To do this basically you'll need to write or use existing C based ping code. Apple has a nice simple ping.
Here is the link to apple's simple ping -
simplePing
Then you will want to open your devices arp-table. This will vary based on device but there should be some way to make C code compatible across a narrow range of devices.
Here is an interesting code review involving what you are looking for.
Post is here
I would like to start a semester project related to Matlab Simulink and USRP devices. I am new in this field and studying regularly about it...
The first step to setup the devices is completed and now I would like to check if both device can communicate properly. For this Reason can any one suggest a simple Communication Module...
anything would be OK to start with. e.g sending text, Image, Voice, Video etc etc...
Regards
I suggest you take a look at the communications toolbox in matlab:
USRPĀ® Support Package from Communications System Toolbox
There seem to be some code snippets for simulink available as well.
BR
Magnus
Ok, so I've never done anything with serial connections before. But...
I just got an Arduino that I am trying to use to remotely launch model rockets. I have a 5 volt relay that I can control with the Arduino's digital out.
Now, I want connect my iPhone's Tx to the Arduino's Rx and vice-versa. I would buy the iPhone breakout board from spark fun so I could connect it to the Arduino. (http://www.sparkfun.com/products/10645) I was thinking something along the lines of: when the phone gets a text or a call from a certain number, or maybe even just a bluetooth signal, it would tell the Arduino. But those are just ideas.
How can I actually send a signal from my iPhone? Are there xCode libraries to do this? My phone is jailbroken, so I am open to other non-apple ways for sending signals. But I am a novice programmer.
Thank you.
P.S. I'm new to Stack Overflow, and I would appreciate if you could help me. The first time I posted a question someone told me it wasn't on the right site. So please bear with me.
EDIT #1: Haha, I just read over this and it sounds like a cell phone bomb from a terrorist movie. I swear that's not what I'm doing. Just look at my avatar.
EDIT #2: I also have a Bluetooth dongle for the Arduino. But I honestly have no idea how to interface that with anything, it was $10 from China, so I thought I would buy it to keep my options open. But, regardless, it would be really cool to plug an iPhone into an Arduino.
You could buy a Redpark Serial Cable for iOS to connect the iPhone to your Arduino board over RS-232.
This book also seems to be helpful: iOS Sensor Apps with Arduino
EDIT:
Redpark FAQ: http://redpark.com/c2db9_FAQs.html
There is a SDK available for this serial cable.
You will have trouble writing communication software when trying to connect directly to the dock connector! The External Accessory Framework wont help you here unless your Arduino board has a special decoding chip for dock connector communication.
Have fun!
All I think you need to do is utilize the External Accessory framework. I'm not sure how well it will work for you, the library is meant to communicate with MFi approved accessories. I'd really like to hear how your results went, I am going to be conducting an experiment of my own using a break out board
I am in a similar boat as you, and I have successfully built my own serial cable using the podbreakout, and have implemented a serial class that supports reading / writing. I can confirm that I have read working, as I have tested it with my RFID reader. I am in the process of writing code that will send a command to the Arduino from the iPhone, and then have the Arduino perform a task based on the command.
Here is a document I put together on iDevice serial com,
https://docs.google.com/document/d/1Yi9_hcw8XSyYNCG2OJT9oHlTG-dC-Dnuc58VIULa81Q/edit?usp=sharing
and the serial class can be seen in the project I am working on.
https://github.com/ipatch/KegCop