Read The Value Of The Sonar-sensor Of NXT Through Bluetooth?
Sep 22, 2011How is it possible to read the value of the sonar-sensor of my NXT through Bluetooth (and Visual Basic 2010)?
View 3 RepliesHow is it possible to read the value of the sonar-sensor of my NXT through Bluetooth (and Visual Basic 2010)?
View 3 RepliesI am using Telnet in VB to read a temperature and RH sensor. I don't know that the data is the exact same length every time. I have pasted the code below. This code does get the data back. I have also pasted the unparsed and parsed data as well.... Sometimes I get more or less data than the time before and I think this is because I am not reading the entire buffer. How can I make this code run a little better so that I can get the proper data every time? Below the code is a sample of several readings. You can see how I get bad data periodically.
Unparsed
" 24.4155 45.2235 11.7921 200.9005 45.2372 45.2235 -42.0242"
Parsed (replaced " " with , and then " " with ,)
[Code].....
Trying to read data through the virtual COM port created by bluetooth.
The original console program (and the trimmed version below) was designed to read data from serial port COM1 and output the data to notepad. The program works; hook the bar code reader to COM1, activate bar code reader, swipe card, bar code reader beeps, data input collected from COM1 and sent out to notepad.
The problem: Bluetooth is wanted instead of serial cable.
We disconnected the serial cable, we connected a USB bluetooth receiving device onto the XP. XP installed the bluetooth device drivers 'Generic Bluetooth Radio' and 'MS Bluetooth Enumerator'. Bluetooth detected the bar code reader device and created COM5 outgoing SPP slave and created COM6 incoming.
But now; activate bar code reader, swipe card, bar code reader beeps, NO data input collected from COM5.
[Code]....
How to access VB functions using C#? I am trying to create an interface for a sensor, whose files are given in VB format. How can i access themm and consequently make changes in the same?Ok! sorry for incomplete info. The files i have are .vbp and .frm format. I am trying to create a Form file(interface, with buttons etc.) using Microsoft Visual Studio2008, which has a included wrapper to combine C++ and C# and has console application. Now how do i call the .vbp files and to furthur work on the interface?
View 1 RepliesI am looking to create a VB 2008 Express programme which converts a data stream from a picoscope muscle sensor into a power output board which controls a mechanism.
In simple terms when the Muscle sensor reaches a value of 0.8 V or higher I want the programme to send a text file to the power output control programme, and likewise when the sensor is below 0.2 V I want the power to be zero.[code]...
I'm trying to get my hands on my ThinkPad T500 tilt sensor data.So the (unfinished, but works (i'll get three values, state,x and y)) code is:
Public Class Form1
Private Structure AccelData
Dim stat As Integer
Dim x As Short
[code]....
With debug.print I'll get the correct information, but as soon as I try to insert the outcomes to label.text I'll get error:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
So, how can I pull the information from dll to label text?how to use the sensor.dll to extract information?
I have been searching everywhere to figure out how to access the G-Sensor/Accelerometer in my HTC Touch Pro and other like devices. I've already created a number of app's for windows mobile but now I'd like to add some more customizations into my app's. I don't mind installing 3rd party app's but I'd like to add the same fuctionality into my own apps with regaurds to the G-Sensor/Accelerometer funtions. I got a hold of some code(Rhaakmeester)...
[code]...
This code helped a bit but only detects the change after a 3rd party app has already changed the screen orientation or if the KB was slid out. How do I access the G-Sensor data myself.
I'm new at VB therefore i need some guidance on how to go about doing e current project that i have. Currently doing on Light Sensor and Audio Announcement.
[Code]...
measure distance using serial port (sensor)?
View 1 RepliesI am looking to create a VB 2008 Express program which converts a data stream from a picoscope muscle sensor into a power output board which controls a mechanism. In simple terms when the Muscle sensor reaches a value of 0.8 V or higher I want the programme to send a text file to the power output control programme, and likewise when the sensor is below 0.2 V I want the power to be zero.
So 0.8 V > = send text file (0O=100%)
0.2 V < = send text file (0O=0%)
so when muscles being senced move the device turns on and off. I think I am successfully getting the data stream from the Picoscope which is plugged in the usb. I am using codes and examples that the programming guide for the device provided. [Code] I just need to now how to get the data to be displayed or how to tell the programme to do something with the data. The device also came with an example of how it can record data to an excel sheet if anyone needs the code to gain a better understanding.
Is there a way to detect the motion sensor in the hard disk with visual basic .net?I know that hard discs has an acceleration sensor to turn the hard disk off when the computer falls from a height.I have seen one example of this in a game using this sensor.I want to detect the sensor so that my security program can alarm and email me if lets say someone nocks my computer to the floor while im gone.
View 1 RepliesI am using Visual Basic Express 2008 to write an application that communicates with a Digi Watchport/D sensor. This is an IR sensor and I checked the manual for the commands to send to it. In order to get the distance, it say to send the sensor the command D<CR>. Here is my code so far...
Option Explicit On
Option Strict On
Imports System.IO.Ports
Public Class Form1
[Code]...
Every time when i click the button, I get the timeout exception error message.
i got a app that needs to connect to a HID device.but every time i off my PC the pairing of the 2 (PC with the HID device) is gone. is there a way for VB to pair it ?
View 1 RepliesHow is the Bluetooth connection by Visual Basic Dot Net readers and text sent by the Bluetooth
View 2 RepliesI desgin an app that encoding text to sms format so you can after that sent this text to your mobile.ok now I want to know how can I send this file by bluetooth from my app
View 4 RepliesI am developing for my project is "Remote Control Winamp from Mobile with Bluetooth Connection".I have two applications to develop it. Application server with vb.net programming and application client with J2ME.[code]...
View 1 Repliesgot a good sample of using VB to get a list of Bluetooth devices? And to maybe send and receive a file.Also, I'm using VS2005. Is there any better Bluetooth resources available if I upgrade to VS2010?
View 6 RepliesWhere should you start when your next application was a bluetooth hotspot implementation?
View 1 RepliesHow to create code and send sms in vb.net using bluetooth devices..
View 2 RepliesI am looking at adding in some bluetooth functionality to my vb.net application. I require it to couple with a specified mobile phone (that is found by the app) than to be able to retrieve contact information, phone calls (made and recevied) and images from the phone.
Can anyone tell me what my best approach will be for this? If there are any good third party solutions that will do it? If it is actually doable? Im thinking that it should because im basically mimic'ing what all the new fancy cars do with their bluetooth phone compatibility.
I'm looking for an "auto-SMS VB.Net programme module" for window mobile 6.0 professional.my application will operate like below:1. User required pair his hp bluetooth device with his car bluetooth device for first.2. If the accident happened the car sensor will automatic trigger the car bluetooth device to trigger the sms button and send a SMS to a predefined recipient. (this scenario is same with Bluetooth headset, once you press the Bluetoth headset button, you can trigger the mobile phone call function automatically)The process of sending the SMS is 100% automatic, trigger by the car Bluetooth Device and without interception of any users.
View 14 Repliesi use vb 2008 office 2007 , it's a powerpoint add-in application. I need to use a window form as a bluetooth interface.the working procedure is like that when i click the Enum button, it will help me to search for available bluetooth devices.but now i have an error, it shows "WCL ERROR: Specified transfer is not available"
[Code]...
i wanted to create bluetooth messenger using vb.net for computers.
View 2 RepliesHow to send a file via bluetooth through my program? I have a text file that I make it by my program and i want to send it to mobile via bluetooth and also I want my program gives me a message in these 2 cases?
1- In case if there's no bluetooth in computer
2- In case if it dose not find bluetooth device around
How is it possible to receive Bluetooth-messages through vb 2010?
View 1 Repliesi am currently working on an application that reads the MAC addresses of all phones within the range of our bluetooth reader on the workstation. However, we would like to reduce the range of the reader to < 1 meter. I have dont alot of research and the only solution that i have found is a hardware one; i.e. changing the device to a class 3 or getting a custom made device that will have it's range adjusted to our preferences. However, i also know that we can adjust the power that runs through the bluetooth device in order to reduce the range. Is there any way that we can reduce the power of the device ? We don't have many funds atm and we're looking at a software solution and not a hardware one.
View 4 Replieshow to program using bluetooth dongle in vb.net. i want to send audio to bluetooth headset.
View 1 RepliesI was trying to play a bit with bluetooth devices but i can't find that much info about it. I'd like to build some sort of program that allowed me to send messages into bluetooth enabled cellphones. The idea was to send messages with tasks/events inside the building. This software would be part of other software such as ERPs or agendas.
View 4 RepliesI was wondering if there was a way to transfer a file to another device over bluetooth using vb.net.
View 1 Repliesi'm currently trying to make a connection between my phone to my PC using vb .net and a program I will build for my phone.my phone should send information (some strings) through the com port, I wrote in google "VB .net bluetooth" and I sew there is a library for vb .net, but I don't think I need that library, can I communicate with a com port without this library? like making a connection with a normal com port?If I'm right, how do I do that? how can I recieve information from the bluetooth com port?
View 7 Replies