Maybe. It can also be a plain text file, json or xml format.1, I think a CSV file would be sufficient,
What is the frequency of the data? What is the format?2. Data processing not required in app
IOS doesn't talk nicely to Classic BT
Why???Maybe. It can also be a plain text file, json or xml format.
Instead of sending the csv file by email or FTP to a server which eventually landed into a database, there are other options such as using jRDC2 or REST API.
The advantage of using SQL database for me is it is easy to add, delete, update, search, sort and do analysis by SQL command such as count, sum, average, etc. It is more powerful than CSV and more maintainable. Using CSV is fine if you don't need all these fancy functions.Hi Aeric
frequency of the data is not very complicated, and should not be more than twice a day!!!
I only need to know the date time and duration of the treatment and efficacy ( user input 0-9)
I would suggest the following
YY, MM, DD, HH, mm , duration, Efficacy <CR><LF>
All in plain ASCII. Duration could be number 1-9 in 30 min increments, and efficacy 0-9 as mentioned.
I don't need the time to the second. There is no precise answer from analysing this data, just trends.
Why???
The big advantage of CSV as far as I am concerned is it is universally recognised, a months worth of data is only 20x2x30 bytes. I could ask almost anyone to analyse it. I'm sure that the formats you mentioned are familiar to you and "easy", but without looking it up I have no idea what jRDC2 is and neither will the clinician who will be the ultimate recipient of this data. But I am open to being persuaded that there is merit in choosing an alternate format.
I guess if you want to work in jRDC2 in an SQL database that's your choice, and I accept that it may well make life easier for displaying usage on the phone, but when its exported I would prefer it in CSV as above please.
Am I to understand from your general comments that you are considering helping in this project ?
Again thank you for your input
Steve
PS I have received an offer to help in a PM. It seems I don't have the right to reply in this forum???? Either way does it make any sense for this to be a cooperative venture with say someone experienced in BLE side doing that and someone else doing the data handling for example.
Would the person who sent me the PM (and anyone else interested!!!) mind posting here what parts of the project they would like to handle.
Duration could be number 1-9 in 30 min increments
How close are you to having one of these, and being able to program it via USB from Arduino IDE?I intend to use an ESP32-C3
or is "unit" currently just the glove and motors, not yet hooked up to a microcontroller?I have built a unit
It might be better to stick with Arduino IDE, to simplify use of existing ESP32 BLE libraries.I think this should also be written in B4R rather than Arduino.
Would that be the Tass 3:2 Pattern as shown in https://github.com/pdbuzzboard/pdbuzzboard/blob/main/GloveNano.ino :3. The sequence is VERY important,and again is outlined on the Github. The ability to change sequence timing via BLEwould be a big plus.
Steve
// Define all 24 Random Sequences
unsigned int Seq[]={/*0x1234,*/0x1243,0x1324,0x1342,0x1423,0x1432, 0x2134,0x2143,0x2314,0x2341,0x2413,0x2431,
0x3142,0x3124,0x3214,0x3241,0x3412,0x3421, 0x4123,0x4132,0x4213,0x4231,0x4312/*,0x4321*/ };
int nSeq = sizeof(Seq)/sizeof(int);
experiment with various patterns
I have the ESP32-C3 I intend to use for the first batch
My next plan is to try writing the app in Arduino using Serial rather than BT, perhaps I should have done this first.
That’s basically correct. iOS has a lot of the same serial infrastructure as macOS but:
It doesn’t have built-in support for USB serial devices.
It doesn’t allow you to write your own code to add that support.
Unless you join the Made For iPhone program you can not directly connect anything to an iOS device unless you use Bluetooth or TCP/IP.
Access to the USB serial profile from an iOS device may require enrolling in the MFi program and manufacturing a special custom cable. See: https://developer.apple.com/programs/mfi/
Another possible option is to use Core Bluetooth to connect to a BLE serial port bridge device (Arduino,et.al.?). Core Bluetooth comm does not require MFi.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?