Connecting to Tizen TV via the Tizen IDE or sdb - connection

I assume Samsung forums devoted to Tizen would the the first place to resolve this issue but after reading through them it seems that nobody has succeeded with this and the support has not provided any valuable information either so I'll just hope that there are some SO users working with Tizen TVs who have encountered and maybe solved this themselves.
I am trying to connect to a Tizen Smart TV from the Tizen IDE to deploy a native application. As far as I understand this functionality is quite new and supported only in recent firmware releases. I've updated to the latest firmware (1411) but still neither the Tizen IDE (namely the Connection Explorer component) neither the native sdb command line tool seem to work ( I've described the behavior in detail in this post to the Samsung Tizen forum).
The sdb tool seems to fail with any command other than sdb connect. Connection seems to succeed but after that any other command like sdb dlog or sdb shell simply print that the connection has been closed. Wireshark also approves this - every TCP message gets a CLSE reply.
Is there anyone on SO who has successfully deployed a native application via the developer mode on a Tizen Smart TV and could share the recipe?

adding your workstation's ip to the TV's hosts is a must.
on the tv, go to apps, put focus on my apps and click 1,2,3,4,5 on the RCU.
a pop up message with ip input comes up.
enter your workstation's ip and reboot the tv (turn off, turn on)
try to reconnect, good luck

I had the same problem: when I tried to connect to Samsung Smart TV from Tizen SDK or sdb, It didnĀ“t work.
For me, the solution was to define in the Samsung Smart TV ip config the IP from the Macbook where I am running the Tizen SDK (according to the recomendation in this link)
So, in my private network the Samsugn Smart TV was on ip 192.168.0.102, and the Notebook was on ip 192.168.0.103
I opened the developer mode in Samsugn Smart TV, it was ON and I change there the IP to 192.168.0.103 (It was the private Macbook ip)
After that, the sdb command and SDK work and my demo app is running on the Smart TV:
$ sdb connect 192.168.0.102:26101
connecting to 192.168.0.102:26101 ...
connected to 192.168.0.102:26101
My software and hardware versions are Samsung (JU6500) and Tizen SDK Version : 2.4.0_Rev7
I hope it answer could help you, may be you have the same problem... It tooks me a lot of time find this solution...

Try to Menu -> System-> Smart Security -> Settings: Deactivate network security
Then reboot device. Power off wait 30sec. power on.
Try to connect via the instr. of Samsung. Worked for me

I had the same problem after reset the TV to factory settings. For me, upgrading TV firmware from 1430 to 1443 did the trick.
To upgrade firmware:
Menu->Assistance->software update->update now
Good Luck

Related

Is it possible to wirelessly deploy Xamarin.iOS Apps using a VPN?

We currently have a Xamarin.Forms application that requires a Mac to build the Xamarin.iOS project. We purchased two MacMinis to do this but these are located in our office and due to Coronavirus we are all working from home for the foreseeable future. We are trying to use Microsoft's wireless deployment feature (https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/wireless-deployment?tabs=windows) - this works if I'm in the office on the same network or I take the MacMini home because all hardware (laptop with VS19, MacMini and iPhone) are on the same network. However, my laptop does not detect the phone when the MacMini is in the office and my laptop plus iPhone are at home on the VPN. I'm going to speak to my companies IT department to see if it is any settings on our VPN side but any suggestions or assistance would be much appreciated!
What I've Tried:
I've tried connecting the iPhone to the VPN and wirelessly deploy it from Visual Studio 19 but my
device is not detected.
I've looked for an answer through Stackoverflow's "Similar questions".
A quick Google search didn't retrieve anything relevant to wireless debugging/deployment using a VPN.
I've searched on Microsoft Community to see if any issue had been raised.

Not able to connect to apple tv !! "Making apple tv ready for development" dialog shown

I'm trying to connect apple tv with my xcode to debug my app. But I'm getting below dialog and it will never go. So I tried following steps to fix but no use.
Waited for 10 mins and checked but still the same.
I restarted/reset apple tv and checked but no use.
Tried with different versions of xcode but no use.
Tried using wifi, mobile hotspot with different networks.
Some times I will get this dialog and it will never go.
If I try to run app in this state then I will get this alert in xcode
So I'm not understanding the why its behaving like this. And how to fix this issue ?
Wireless Debugging on Apple TV
Dive has some great recommendations about using Apple TV with your machine, connected via Ethernet. So far this is also my preferred way to connect, develop and deploy to Apple TV, however debugging on Wifi isn't the best experience.
Here are a few things you could try.
Remove current pairing by using Device and Simulator window.
Try downloading Apple Configurator 2 and use that to first pair your Apple TV to your machine. This is great tool to ensure you can connect to your iOS/tvOS devices for some super user type setup. ( Main Menu -> Paired Devices)
For this to work you have to be on a specific screen on your Apple TV.
Settings -> Remote and Devices -> Remote App and Devices ( This uses multipeer connectivity)
If you are successful pairing your TV using apple configurator then it's a good sign as you can rule our networking issues with your Wifi.
Try pairing with Xcode after it's paired with your machine in the step above. The dialog window you see above is expected and takes some time ( longer in some cases) but should eventually complete.
If step 3 wasn't a success, unpair from Xcode and Apple Configurator ( if they show as connected but not aren't really paired), restart your machine and Apple TV and start the same steps again.
Lan Set up :
You can connect to your Apple TV via a switch or usually Modem/Routers have inbuilt switch ( extra ethernet ports).
Try the same steps and you should be able to pair with Xcode.
Troubleshooting: Try using Console app on your machine if you still can not figure out the root cause and this should help you debug the pairing issue.
There is a helpful instruction from Apple - Pair a wireless device with Xcode (iOS, tvOS) and I assume that you did as they recommend.
Such issues usually appear due to the following reasons:
Something is wrong with your network configuration. The easiest way to check is to try to wirelessly connect your iPhone to be sure that you do not have the same problem. If this is the case then try to white-list the IP address for the Apple TV on your router and open necessary ports;
About port, Apple recommends the following configuration: Communication to network devices uses port 62078. Some networks block specific ports. You may need to check your network settings or ask your system administrator to open this port;
Your Xcode version has to be in sync with tvOS. From the screenshots, I see that you have tvOS 13.3.1. It means that it is better to use Xcode 11.3.1 in this configuration. But you mentioned that you already tried this.
The option that always works to me is to use an Ethernet connection. I connect my AppleTV via the ethernet cable to my router and access it from my MacBook without problems:
Connect the device to the same network using an Ethernet cable.
For an Apple TV, connect using the Ethernet port in the back of the device.

How does this iOS app communicate over the USB port?

This app promises to turn your iOS device into a second monitor and uses the standard USB cable to connect to the computer, as opposed to the network which all other similar apps use.
Back when I heard about it, it wasn't yet available so I thought it was a scam. To my surprise, they released the app and it actually works as described.
How does it work ? As far as I know there are no APIs to drive the USB port in iOS, and the computer connected via USB through the standard charging/syncing cable doesn't count as an MFI accessory.
Note that they provide the server software (the one that installs on the Mac and streams the desktop to the device) on their download page for free, reverse-engineering it could shed some light on this but I unfortunately don't have the skills for that.
Dean told about it on his blog.
Duet uses Peertalk, an open source library allowing to pass TCP connections through the USB connection without being part of the MFI program.
The information, code and tools to accomplish generic USB port communication is available to those who join the Apple MFi program. You have to do the paperwork and get licensed by Apple.
http://developer.apple.com/programs/mfi/
The libraries necessary are included in the app and then the usual streaming libraries and code do the rest.

Windows phone development - can't run emulator with internet connection

Background
A few years ago I was developing for C#, WPF and Silverlight and then moved to developing for Android.
I've decided to give Windows phone a try, and install the newest Visual Studio Pro 2012 with its Windows phone sdk, together with the latest version of Windows - windows 8 pro.
I've created a new Windows phone project hoping I will start learning from a hello world project, and I've launched the emulator .
Some specs information
OS is windows 8 pro (final) . 64 bit CPU .
Visual Studio Pro 2012
Windows phone sdk 8
Connected by usb to a wireless D-Link device (DWA-140) .
The problem
Just as soon as I've started the emulator, a dialog came asking if I want to enable networking:
When I chose that I want, an error has appeared:
After selecting ok, the emulator crashed.
Knowing how to search for solutions on the internet, I've found a few (like here and here ) that suggested me to delete the network switches, create an internal switch, and whatnot.
The question
I don't understand what I'm doing wrong, and this is just my starting point. Can anyone please help me with this error and how to make the emulator work?
Please tell me the exact steps that I need to take.
EDIT: after uninstallation of anything related to VS and WP , i've re-installed them both and i still get the same errors.
Not only that , but when trying to create a new external switch (which some websites offered) , it showed me the next error :
How could such a basic feature of an emulator be missing out of the box ?
You might try a couple of things.
First, verify the network connection settings for the "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)" adapter.
To do so, open "Control Panel\Network and Internet\Network Connections" in Control Panel. Right click on the "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)" adapter, and choose "Properties". Under "This connection uses the following items:" verify that ONLY the following options are selected:
Client for Microsoft Networks
QoS Packet Scheduler
File and Printer Sharing for Microsoft Networks
Microsoft LLDP Protocol Driver
Link-Layer Topology Discovery Mapper I/O Driver
Link-Layer Topology Discovery Responder
Internet Protocol Version 6 (TCP/IPv6)
Internet Protocol Version 4 (TCP/IPv4)
In addition, you may want to review the network adapter settings for the emulator image in "Hyper-V Manager"
Verify the network adapters that are shown are valid. You might try disabling some (like the adapters connected to the WiFi or Wired Ethernet adapters on your machine) if the adapters they are bound to are not currently enabled in the OS.
Let me know if that helps!
I suspect you may be running afoul of UAC. As you've noted, it's trying to create a virtual device. Doing so requires elevated permissions. If I were you I would either run VS2012 as Administrator or completely disable UAC until it's all installed and configured, and then you can turn UAC back on if you prefer it on. I think Allen's comment about manually creating a VM with the appropriate networking is astute and a worthwhile experiment, since it sidesteps the possible UAC issues.

AIR mobile debug - "Enter ip address or hostname"

I'm developing a mobile app using Flash Builder 4.6/AIR. I've been able to debug on the device (an iPhone 4s) just fine until now. I connect my iPhone to my mac with the USB corad, and debug.
All of a sudden I'm getting a black screen for close to a minute. Then I see the "Enter ip address or hostname" dialog. If I enter the ip address of my machine it doesn't matter. The window goes away for about 15 seconds, then comes back. Meanwhile, Flash Builder on my mac times out. The only way I can actually see the program running is if I hit 'Cancel' on that dialog. The app then launches, but I cannot set any breakpoints, cannot debug.
Everything I've found on the internet around this issue mentions it in reference to AIR for android -- not iOs. But I'm seeing it with iOs.
Anyone know what's going on here?
Thanks.
To make it easier for future readers, the official answer to this issue;
With the current (official) version of the AIR SKD (3.2) USB debugging is not supported on iOS devices. This is going to change with the future 3.3 release which (amongst others) adds USB debugging support:
"USB debugging for AIR iOS
This new feature allows the iOS developer to connect to the desktop via USB while debugging their mobile applications instead of relying on network connectivity."
With version 3.2, iOS debugging works over the local network, so both devices (the machine the debugger runs on and the iOS device) have to be in the same network so that they can communicate with each other.
See also the reply to What is the address of my Flash debugger?, it really helped me to resolve similar issue. Using 'ios-debug' mode was the way to go.
If you still have this problem using Android with the device connected to same wifi, try checking firewall rules. In my case FlashDevelop was blocked and I didn't suspected because of updates worked perfectly.

Resources