ESP8266 micropython terminal not reponding? - esp8266

I bought these boards and was trying to install micropython and then launch the REPL, but when I would start the putty session the chip would send the proper stuff but I could not type anything. I tried:
reinstalling both the 2MB+ firmware and the 1MB,
adding fm -dio to the install,
reinstall drivers for my computer.
Any other ideas?

Related

No connection is possible with last firmware builds

I am using NodeMCU since a couple of years without problems, usually I build the firmware with these modules:
gpio
node
tmr
mqtt
wifi
file
dht
net
Yesterday I tried to rebuild the firmware with the same modules and to connect to the device with ESPlorer without success.
I tried also with different modules combination but the problem is the same.
This is what esptool returns:
python esptool.py --port /dev/ttyUSB0 flash_id
esptool.py v2.7-dev
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 68:c6:3a:8b:d8:29
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
If I try to reload the old firmware all works fine.
Working firmware: 2018-05-19
By reading the release notes I found out that I was probably using the version 2.2.0-master_20180402.
Now there is the version 2.2.1-master_20190405.
I am wondering if some major change in the firmware is preventing me to connect again.
Is it possible to build (with the cloud tools) a firmware from a different version?
Does everyone else experienced a similar issue?
I found out the issue, on the different versions there are different baud rate settings needed to connect properly.
On the older version I used 9600, now I have to use 11520. After the change everything works fine.

How to check the Bundle Version of a iOS App on the phone connected via USB using the command line?

I wanted to know if there is a way to get the Bundle Version of a iOS App on the phone connected via USB using the command line (from a Mac running on OSX)?
I have seen a solution in which you need to download the IPA application and then unzip it and read the Info.plist file to find the Bundle Version and bundle version string short but I wanted to know if there is a way or tool to directly get the version from the phone without having to download the App/IPA.
Thank you
You can use the ideviceinstaller utility from libimobiledevice.
You can use the -l flag to list all apps installed on the device. Use the -o xml flag to make the utility list the results in an XML format.
On Mac, you can install ideviceinstaller using Homebrew. On Linux, be aware that the copies of libimobiledevice which ship with the various Linux distributions are usually out of date, so you're better off installing from source.

Cannot replace app: app is automatically re-installed on boot

I have an app installed on Android Things, in a Raspberry Pi. I want to replace with a newer version, but it's overwritten with previous version after a reboot. That's weird!
This is what I've tried: Let's say the installed app package name is "com.myapp", I've run "adb uninstall com.myapp", and I get "Success". If I run uninstall command again, I get "Failure [DELETE_FAILED_INTERNAL_ERROR]", so the app is completely uninstalled.
Then, I've modified package name in build.gradle to "com.mynewapp", and I install and run it using Run button from Android Studio. Now "com.mynewapp" appears when I run "adb shell pm list packages".
Now I restart the Pi using "adb shell reboot". And after reboot, the old app is running. Executing "adb shell pm list packages" shows my old package: "com.myapp", and "com.mynewapp" does not appear in the list.
How can I completely remove the old app, and replace with a new one?
Uninstall the app using:
adb uninstall <pkg name>
I tried deleting all SD contents, and flash latest Android Things image, and I realized SD card is corrupt. I replaced SD card, and it's working fine.
You can not uninstall the app which you packed in the OS image and flashed in the SD card using adb (returns the error which you encountered Failure [DELETE_FAILED_INTERNAL_ERROR]). Only you can uninstall the app which you installed using adb or android studio.That is why first time you are seeing success,which is uninstalling the overwritten version but next time as you are actually trying to uninstall the OEM version of your app so,you are seeing this error.
Just format and reflash the SD card with only Android things OS (without your app) then install your app using adb/android studio,now you will have only the uninstallable copy of your app in the sd card. So you can replace or do whatever you like with that app as like normal app downloaded from playstore.

ipad ip address using command line tools

I have an iOS device (iPhone or iPad) hooked up to my mac laptop. Obviously, you can get the IP address of the iOS device from settings, but is there a way to do this using command line tools (without rooting the iOS device)? I need to be able to do this for some test automation.
brew install open ssl
brew install --HEAD libimobiledevice
brew install arp-scan
macaddr=$(ideviceinfo -u <UUID OF DEVICE> -k WiFiAddress)
arp-scan --interface=<eth interface connected to same wifi> --localnet | grep $mac_addr"
This is flaky, because you need to force the devices to see each other on the LAN. I work around it turning wifi on and off on the device.
This is the best solution I have found. I generally cache this info since getting it dynamically is unreliable. arp-scan also requires you be root to access the network device.
You can use this web service to know your IP Address , the web service returns you an XML with your ip-address ...
http://www.domaintools.com/research/my-ip/myip.xml

Windows Mobile Device Center stops working after "not supported bluetooth function" driver is installed

I run the drvupdate-64 installer which runs until it closes and I get a notification in the tray icon that '"not supported bluetooth function"' was successfully installed as a driver.
I found that a bit weird and after that NOTHING happens with the installer, it just dissapers and doesn't come back.
In task manager I can see it running as 'driver_setup.exe' with the description 'windows mobile device center setup' but that's it, nothing else seems to be happening.
Any ideas what's going wrong and how I can fix this? I need it to get the windows mobile sdk to install.
I had to navigate to the install directory of WMDC Driver Update and find the installer to continue the process, the installer was bugging out on me and not proceeding to the next step for some reason...
I had a similar issue when installing on Dell laptops models 7480, 7280. I had tried updating removing device drivers as per Microsoft Answers with no success.
Having come across the above I did continue the installer process as per tweetypi comment but still had issues. I was able to install and get this working as per following steps:
After running the WMDC installer I could see that in task manager the install process "driver_setup.exe" was still running.
As per tweetypi answers I then navigated to the install directory for WMDC Driver Update to find the installer and continue the process:
C:\Windows\WindowsMobile
I opened each Drivers folder (Bluetooth, RNDIS, Serial) in turn and run the “wmupdate” installer.
Windows Mobile Device Centre was then listed on my programs list but would not launch.
I then opened Device Manager from Control Panel. Changed view to show hidden devices. This revealed 'Bluetooth Virtual Devices' > 'Not Supported Bluetooth function'.
I then uninstalled this driver and checked delete the driver software for this device
After this, I ended the “driver_setup.exe” process within task manager. Then run the “driver_setup.exe” install file once more. The install process was then able to complete and the Windows Mobile Device Centre was now launching.
The device I needed to connect was for USB, I'm not sure about functionality for Bluetooth after removing the virtual device.

Resources