How to save radio message log automatically with just log all printf()s and timeout activated on cooja - contiki

I'm wondering how to save the radio message log when I implement an automate simulation on cooja, the simulation will be repeated 10 000 times, and I'm interested on information given from IEEE 802.15.4 radio,
any ideas on how to do that ?
The info i want to save is in the pic attached.

Related

How to Auto Answer and Dial 9

I just bought an Airbnb that requires guests to enter a gate code which then dials my phone number which I have to answer and press 9 several times until the gate opens. I'm looking to automate this process in Twilio Stack Flows.
Does anyone know how to do this? I have no idea what to input into the system to make this work (if it's even possible).
One way you might want to build this is via Twilio Studio (Twilio's low-code solution) and the Say/Play Widget.
Specifically, there's a Play Digits Configuration which mimics a keypress, so you can automate the process of pressing 9 several times.

How to show popup question to start tracking a stair stepper exercise on the Apple Watch?

Is there a way to detect activity in the background using my app like Apple does it?
Currently there's no way to calculate stairs climbed by the user while using a stair stepper machine using the Apple Watch/iPhone. We want to be able to detect activity in the background if our app is installed and ask them "It looks like your climbing stairs on a stair stepper". The only thing I can think of is to do a Background scheduler event, but the shortest period allowable is every 15 minutes which is almost at the end of any work out with a stair stepper machine.
Is the Apple Watch using inaccessible private APIs to achieve this behavior? Or is there a way we can achieve it too?
I have never tried it but I think it can be done with location region monitoring and some ML.
Keep track of where the user is when they trigger workouts, and the time. Maybe even heart rate and any other data that might give you clues.
When you get notified that the user is in that spot, check for activity and/or clues with ML and send the notification.
The watch only seems to send that notification if it knows the area where you are is a workout area and the right time.
Apple has ML videos where the user can train a model on device. I think their sample shows a restaurants app where depending on time, day, and location you can suggests restaurants to a user.

youtube Integration on a settop box and questions

We are trying to integrate Youtube app on a STB that is using RDK middleware (capable of running HTML5/javascript applications). I have been through the "YouTube TV HTML5 Technical Requirements 2016" document and have some questions.
1) As per my understanding youtube is an opensource app and integration work will be required? Will there be any customization be required? For example there is a difference how search functionality is available on different device types. Youtube app being run on a browser on a PC, a textbox is available where you can type what you want to search and then press the search icon next to it to start the search. However on the devices like Smart TV, Set Top Box where user does not have the pointing device and the keyboard, usually soft keyboard is required to be shown on the screen and search starts automatically after entering certain number of characters. I want to know if this functionality is customized by the app integrator or there are different code bases for different device types?
Similar questions i have is for the settings menu. For example to support dial 2.0 protocol to remotely launch the youtube application from the remote device you need to have settings menu to let you to pair / unpair the device. So settings menu seems to be different for different device types.
2) Similarly there are differences how user is allowed to perform forward / rewind during the playback. On PC browser i have seen user can seek to any position with in a stream using a mouse. However on smart TV's there is a rewind forward button which result in seek -/+ 10 secs. I have not seen trick modes on any implementation. Are trick modes required and how they are performed? If they are required then using seek or some sort of iframe tag file to allow smooth trickmodes? Again doesn't that part come from the app itself?
3) I'm trying to find if Youtube support any or all of these MPEG-DASH, Apple HLS, Microsoft Smooth Streaming, adaptive bit rate protocols. However not having much luck with them. I tried to capture the packets using wireshark and launched the youtube application and played back the video but i was unable to see any http calls that can give me hint that youtube app is using any of the above ABR formats (may be all the communication was under TLS and so encrypted and so i was unable to find whats going on). Even youtube app running from a browser on a PC, when i playback the video, i can see under settings -> Quality always remain at auto, 480p for the whole duration of playback. And if i change the quality to any value e.g 720p it always stay there for the whole duration of the playback. This is telling me it is not using any of the ABR formats. So i guess these ABR formats are probably for future use?
4) Under the youtube specifications i can see that target device must implement at least com.youtube.playready and com.widevine.alpha (for 4K contents) DRM's. I was trying to find if you tube has any content available in these formats but was unable to find any. Can you please confirm?
I would appreciate if someone can answer these or point me in the right direction.
Best Regards,
Farhan

want to build an iOS app that can send text messages to groups

I'm learning Swift and newbie all together. I want to build an app I need. I play a lot of tennis and have a network of men and women of around 50 or so at various skill levels. I want to create an app that lets my network know I'm looking for a specific player, skill, day, time and I also want to see who is free or not. At the moment everything is done through texts, either sending a blast or text to each individual player. Players range from 18-60+ so not everyone uses facebook, etc, but I think having a tennis specific app could work.
Can I build an app that, when signed up, you'll be able to see who is available, and also send out alerts to the app OR as a text, when someone is looking for a player(s), or someone has made themselves available at a certain day or time slot. Also, if a text is received for those that do not have the app installed, the text response will notify the app and update their status.
Probably the quickest/easiest way to get started with this is using Parse (parse.com) with push notifications. However, you should consider a simpler project for starting out, because this would still be a very complicated project.

Detect Slow Internet on iPhone with Monotouch

In an iPhone/iPad app we would like to enable upload of a picture if the user is on wifi or 3g, but not on edge because it will take way too long. I've seen ways to detect if you're on a carrier network or wifi, but is there a good/simple way of detecting which kind of carrier bandwidth you got, like edge OR 3g? Has anyone tried timing the download/upload of a small sample file to test carrier bandwidth? Is it a good idea to test this or just go with a "cancel upload" button the user can click on if running out of patience?
People can drop from 3G to EDGE just as they have tapped to start uploading, or gain 3G, LTE or Wi-Fi coverage just after deciding not to upload. In the real world, the bandwidth can remain stable, yes, but it can also change a dozen times in a few minutes when you're on the move.
I think you would be better served by just allowing the picture upload in any case, informing the user if the upload is slow and letting them cancel at any time. If the model permits it, you could let the image upload run in the background and come in late.
It seems that you can only detect what network type user uses: wifi or 3g/edge (here is sample). If you want to detect the actual speed you'll need to test actual connection by hand.
As for me it is beter to provide "cancel upload" button and do not hurt users with slow internet.

Resources