This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

"Mashing" smartphone GSP and Arduino sensor data
#2
Sorry, we must have someone missed this post. Are you still trying to do this?

1) The issue here is that you are using the "config" tag. This is used to write configuration data (like setting a data rate on a sensor) right after phyphox has established a connection. So, in this case it is converting "TestValue" to a floating point value (not entirely sure, but that should turn into "Not a Number") and try to write it to the given cahracteristic on the Arduino. In order to read a value from the Arduino, this should be an output tag and the bluetooth tag should be within an input tag.

Indeed, the Arduino library currently does not include the GPS sensor, so the XML file like this:

Code:
    <input>
        <bluetooth name="..." uuid="..." id="..." autoConnect="..." mode="..." rate="..." subscribeOnStart="...">
            <output ...>...</output>
        </bluetooth>
    </input>

Also, I would not use poll if it is not strictly necessary for your Arduino code. Notifications are usually a much better solution as the timing of the sensor is usually not controlled by the phone.

2) Unfortunately, the library currently does not support GPS (I am reallizing this myself just now). Since you are already writing your own XML config, I would recommend using the output from the library for any other sensor and then replacing the "sensor" tag in the input block with a "location" tag and the channels that you are interested in.


Let me know if you are still interested in this. I have now subscribed to this thread and should not miss your next post.
Reply


Messages In This Thread
RE: "Mashing" smartphone GSP and Arduino sensor data - by Sebastian Staacks - 04-10-2026, 11:12 AM

Forum Jump: