RE: Monitoring data wirelessly
Toob - Based off your statements, you are currently the most knowledgeable of this interface. I would recommend that you consider joining the OSCAR development team. Being a member is not required to download the source code and start writing the interface though.
Based off of Arie's statement above and your statements about the Bluetooth interface using the exact same files, I find rather odd that Encore and Encore Pro, being the native software for the Philips line, doesn't make use of this protocol.
RE: Monitoring data wirelessly
(12-20-2020, 02:56 PM)A KLERK Wrote: So, no charts in Dreammapper when you just use Bluetooth, would mean the same in OSCAR...
If that fits you, just use Dreammapper. If you want charts, you need all data that is on the SD card...
And these are not transmitted over Bluetooth, hence the small footprint...
Now clear?
What's your problem?
OSCAR has better charting etc where Dreammapper has better connectivity. Why is the suggestion to add bluetooth to a future rrelease of OSCAR being met with such disdain?
The charts are generated from the same files that both OSCAR and dreammapper use. So adding bluetooth to OSCAR would not mean using all the files on the sdcard, only the small files previously mentioned per sleep session need to transmitted once a device has been added to OSCAR.
Dreammapper have decided not to show charts like OSCAR does.
The data footprint that dreammapper successfully transmits over bluetooth would be identical in size and bandwidth if it was added to OSCAR to generate its output.
Is OSCAR not being further developed?
Can we not suggest new features?
If it helps the developers I can share my code that proves the theory which I have added into a copy of OSCAR.
RE: Monitoring data wirelessly
I already have the source and integrated basic bluetooth data transfer. I've yet to re code setting up the device / profile but in principle there IS enough bluetooth bandwidth to do that which was the original argument.
I've offered later in this thread to share my code but there appears to some kind of issue with suggesting any additional features to OSCAR.
In fact at each post my idea is strongly rejected stating I should stick with dreammapper.
This completely misses the point in my first post where I started to code my own solution to overcome dreammapper's lack of charting before I came across Sleepyhead. Rather than reinventing the wheel I though I would use OSCAR but thought how much better it could be if the end user and myself did not need to use the sdcard to update readings. It may be that the card would be required for initial setup but from then on bluetooth could be used instead or in addition.
RE: Monitoring data wirelessly
Toob, if we can develop a routine to connect to the BT data and write that to OSCAR, it would be a fantastic advancement. As Crimpson Nape suggested earlier, if you can contribute to incorporating that capability into Oscar, you are a very welcome member to the Development Team. Another project on the long-term dream list is to make Oscar compatible with mobile devices. That probably requires some new version of the database structure of the entire program. There is a lot of talent on the development team, but expertise in porting this to the mobile platforms is not there yet.
RE: Monitoring data wirelessly
The main issue porting I guess will be replicating the charts as there is nothing built-in in Android to to such nice charting. Would need a decent third party java library or code something from scratch. I developed a health monitoring app for recording cholesterol, blood pressure, sugar and others with charting and gauges but the charting is quite basic in comparison to OSCAR but not to dissimilar.
RE: Monitoring data wirelessly
Were you thinking of porting it only for Android? Or for laptops/desktops with BLE also?
By all means, post the code if you wish. Having BT available for OSCAR and Phillips machines would be a blessing. As well as BT for some of the oximeters many of us use. It would be a welcome addition!
RE: Monitoring data wirelessly
Now I am getting greedy too. Do you have working code that reads Bluetooth from a DreamStation?
That would really be great for OSCAR, no matter what it contains: it could be the missing link between just the machine display and what OSCAR now does...
Go ahead please, send a PM to Bonjour!
Arie KLERK: Member of the Dutch Apnea Association staff ( https://apneuvereniging.nl) and proud to be the OSCAR Translations Team Coordinator.
***Please help us: We’re always looking for more translators and language editors***
Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients, but just dedication to AB.
01-16-2021, 07:18 AM
(This post was last modified: 01-16-2021, 07:43 AM by A KLERK.)
RE: Monitoring data wirelessly
Going back to the original subject: using FlashAir Card without Flash on a Mac...
The CopyCPAP app does not anymore recognize the name of the card, nor the IP address. So, I'm back to where it started: Cannot read the FlashAir Card on my Mac anymore.
Running the app, the following happens:
[attachment=29166][attachment=29167]
Here is the script:
Code: (* Updated 11 December 2020 *)
###1 Enter your FlashAir card name or IP address below (between the quotes " ")
set diskName to "192.168.2.207"
#
##2 Enter the location you want your xPAP data transferred to (between the quotes " "). The folder (directory) must already exist!
set copyLocation to "/Users/arieklerk/MyCard"
#
##3 Enter the location of OSCAR.app, by default it's /Applications
# if you have it installed on your desktop you can change it to "/Users/yourusername/Desktop
set oscarLocation to "/Applications"
#
#Do not change anything below here ############################
#
# Close any running instances of Terminal
quit application "Terminal"
delay 3
#
#Mount the FlashAir card and make sure it shows up in /Volumes
tell application "Finder"
try
if not (exists "/Volumes/" & diskName) then mount volume "http://" & diskName
repeat until diskName is in (do shell script "ls /Volumes")
delay 0.2
end repeat
on error e
display dialog "An error occured: " & e
end try
end tell
#
#Open Terminal and use rsync to copy FlashAir to computer or NAS
tell application "Terminal"
activate
do script "rsync -avz -P /Volumes/" & diskName & "/" & " " & copyLocation in window 1
end tell
#Pause the app until rsync is finished
set isBusy to true
repeat until isBusy is false
tell application "Terminal"
tell window 1
set isBusy to busy as boolean --> Test if busy
end tell
end tell
delay 1 --> Check every second
end repeat
delay 2
#Eject FlashAir so we don't accidently change anything on the card
tell application "Finder"
try
eject alias diskName
end try
end tell
delay 1
# Now open OSCAR and quit Terminal
do shell script "open" & " " & oscarLocation & "/OSCAR.app"
quit application "Terminal"
Here's the latest output of the program:
Code: tell application "Finder"
exists "/Volumes/192.168.2.207"
--> false
mount volume "http://192.168.2.207"
--> error number -1708
«event ascrgdut»
--> error number -1708
mount volume "http://192.168.2.207"
--> error number -10004
end tell
tell application "Script Editor"
mount volume "http://192.168.2.207"
--> error number -5014
end tell
tell application "Finder"
display dialog "An error occured: Finder got an error: An error of type -5014 has occurred."
--> {button returned:"OK"}
end tell
tell application "Terminal"
activate
do script "rsync -avz -P /Volumes/192.168.2.207/ /Users/arieklerk/MyCard" in window 1
--> tab 1 of window id 222
get busy of window 1
--> false
end tell
tell application "Finder"
eject alias "192.168.2.207"
--> error number -1728 from alias "192.168.2.207"
end tell
tell current application
do shell script "open /Applications/OSCAR.app"
--> ""
end tell
tell application "Terminal"
quit
end tell
Any help available?
RGDS, Arie
Arie KLERK: Member of the Dutch Apnea Association staff ( https://apneuvereniging.nl) and proud to be the OSCAR Translations Team Coordinator.
***Please help us: We’re always looking for more translators and language editors***
Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients, but just dedication to AB.
RE: Monitoring data wirelessly
First, can you pull up the FlashAir's IP in your web browser or get a response from the command line using, ping -c3 192.168.2.207? If not, then the FlashAir is not communicating with the network.
RE: Monitoring data wirelessly
Bluetooth is an eventual goal for OSCAR, but there's a lot of foundational work that needs to happen first. And another skilled developer might help speed that along.
|