Movesense: how to determine wbcmd port on Windows 10 - movesense

I have a movesense device with the programming jig.
I can connect to the jig using j-link, I can program/firmware update the device, but I can-not connect to the device using "wbcmd". Keeps coming up with "No device connected"
The programming jig is listed in device manager as USB device "J-link driver" but does not have a corresponding COM port.
What is the connection I put in "port" settings in the following command:-
wbcmd --port xxxx --path /Info --op GET
Thanks in advance.

Connect the J-Link and run SEGGER J-Link Configuration tool, select your probe and enable Virtual COM-Port.
Unplug and reconnect the J-Link, the COM port should appear.

The COM port of Movesense jig is completely separate from the SEGGER (in fact you don't need to have SEGGER connected to use it). The easiest way to get the COM port number is to open the Windows "Device Manager" and open the "Ports" sub tree. The "Ports" is not visible if there are no COM/LPT ports in the system:
To access the sensor over COM-port the UART must be swithced on (it's off by default since it uses over 1 mA of current). That can be done using Android version of Movesense Showcase App (wrench icon in top-right corner). Sensor needs to be reset/power cycled for UART setting to take effect.
Full disclosure: I work for the Movesense

Related

windows 10 iot raspberry pi 3 wifi hotspot

I am trying to make my RPi 3 an AP using Windows 10 IoT core. RPi is connected with internet through Ethernet port and I want to make RPi 3 builtin WiFi to share internet with other devices. I have read documentation page but it is not working for me. I have tried with Windows IoT Onboarding and from PowerShell also. After selecting adapters from IoR Onboarding, clicked on start sharing service and a message appears which says "internet conncetion sharing has started" but I can't find network on other devices.
After selecting adapters from IoR Onboarding, clicked on start sharing
service and a message appears which says "internet conncetion sharing
has started" but I can't find network on other devices.
You could open Windows Device Portal and set your raspberry pi3 as the following instruction. Before doing this you would connect your raspberry pi3 with WLAN.
Select IoT Onboarding option on the left of the page. Then an Adapter configuration must be chosen. You could choose Access point adapter Microsoft Wi-Fi Direct Virtual Adapter #2 and choose Shared network adapter LAN9512/LAN9514 USB 2.0 to Ethernet 10/100 Adapter.
Then clicked on start sharing service. You could see the message appears which says "internet conncetion sharing has started".
At last make sure select enable in radio box and click on save button under the SoftAP settings. There is a message says reboot your raspberry pi3 for changes to take effect the SoftAP settings. Please click yes and your raspberry pi3 will be restarted.
After your raspberry pi3 is started you could connect your devices like PC or mobile phone on the SoftAP which is on raspberry pi3.

Passive WiFi detection system using WiFi router

As part of my project requirement I want to make a system which will detect all the WiFi devices in my router range either its connected or not, I did some research on it then I found something like wireshark ,kismate etc I just tried the wireshark by making my Mac machine's WiFi as an adhoc network and its all fine I am able to list all the WiFi devices in wireshark, now I want to make a real-time system based on a real WiFi router I don't know how I will configure my router using my PC and how I will monitor the router from my PC , one more thing if I am using this wireshark how I will use this data for my requirement. If any one worked with similar scenarios please help me..thanks in advance
To do that you will need more than the usual API that you have on commercial WiFi routers (by that I mean a full SSH access). I would:
flash my router with OpenWRT (you can search for your router on this page for detailed instructions)
Install the aircrack-ng suite on the flashed router with
opkg update
opkg install aircrack-ng
Put my WiFi card in monitor mode and run the airodump service:
airmon-ng start wlan0 #Put your NIC in monitor mode
airodump-ng mon0 #Sniff surrounding packets
You don't necessarily have to install aircrack-ng, you can just put your card in monitor mode using command line (look at the documentation for your WiFi driver) and then run tcpdump (command line equivalent to wireshark) but aircrack works very well and has a nice format.
Also, I should warn you that you can brick your router by flashing it. I never had such a problem when flashing router mentioned on the OpenWRT wiki and there are (most of the times) ways to restore a bricked router depending on the brand but I am not responsible if you break it ;)

Why my raspberry pi can not connect to the wireless network ?

I run the command wifi-menu in my archARM system ,and it already found the Wi-Fi hotspot,
but the the connection failed.
here has a photo: http://i.imgur.com/yIQpQaL.jpg?1
note: I use the EDUP EP-N8508GS USB wireless adapter.
So now,what should I do?
I've seen this problem on an x86 Arch system, this is what fixed it: Look in /etc/netctl/ and find the config for your wireless connection. Add the line WPA_DRIVER='wext'. If you already have a WPA_DRIVER line, change it and make sure it is using the wext driver. If /etc/netctl/ doesn't exist it is because you haven't updated Arch in a while, and the files you are looking for are located in /etc/network.d

Any known method to browse PC localhost from iPhone via USB cable (sans wifi)?

When I run a test mobile site in Visual Studio 2010 and it gives me a localhost:4331 I would like to find a way to forward the HTTP port over to my iPhone through the USB cable so I can test on the device.
They key here is using the USB cable instead of a wireless network, as I am working in a very locked down environment where no wifi is available.
I want the iPhone to connect to the internet through the USB cable, so it would be using my Windows LAN connection and have the Windows localhost be visible to iPhone Safari.
I don't think you can do this. You either need to use WiFi, or have your server exposed on a public network that is accessible via your carrier. You might have some more options with a Jailbroken device.
Follow these steps to see it working -
Connect your iPhone to your PC via USB
Find Tethering and Hotspot setting and enable "USB tethering" on your iPhone.
When your PC has been successfully been connected to the internet, type
"ipconfig" in the command prompt. Just copy the ipv4 address(along with port) and enter it on
the browser with your localhost active
If everything goes fine, then enter the same ipv4 address on your mobile(along with port) web
browser.
The server homepage will open on the iPhone.
I hope this helps.

Capturing network traffic while the application is running on iPhone and connected to xcode

Is there any way I can capture network traffic (using application like Ethereal, on Mac ) while the application is running on iPhone and connected to xcode
Thanks
Connect you mac using an ethernet cable. Share your network connection on the mac over your AirPort. Attach the iPhone to your Mac's ad-hoc network.
Run Wireshark or HTTPScoop on your mac and you will be able to see all traffic from the iPhone.
I'm no aware of any way to do this for the WAN connection though. I'd be surprised if it is possible.
To capture packets from your iPhone using Wireshark, you have to first get your device id for the phone from iTunes. Plug in your iPhone via USB to your Mac...then open iTunes and click the iPhone icon in top navbar.
You can't copy the UUID, so you have to write it down manually. After you have the UUID, you'll need to mount the device.
Open a terminal and type: rvictl -s <device-id>
I created an alias in ~/.bash_aliases as alias mntios='rvictl -s <device-id>' -- as long as you have the same phone your device UUID won't change, even if you re-install the OS.
Once you have the device mounted startup wireshark. brew install wireshark (see: http://brew.sh)
One of the network adaptors should be rvi0 -- this is the network interface for your iPhone.
Now you can capture packets -- double click it to start capturing.
If you want to filter for specific urls you can type a filter like: http.request.full_uri contains <string-in-url> to filter requests.
On your computer, run an HTTP debugging proxy like Charles (Mac) or Fiddler2 (Windows). In the phone's wi-fi settings, turn on the HTTP proxy, entering your computer's IP address and the port number of the proxy. Make the sure the proxy is configured to allow connections from your phone. (It may allow localhost-only by default.)