I want to use the ch341 usb driver. - Samsung Galaxy Note 8 Questions and Answers

hi! I want to connect a 3D printer and a note8
but i'm not able to use/enable the ch341 driver, i know i must compile the kernel, can you help me???

The GN8 is host, the 3DP is peripheral? Or the other way around?
Can you make the 3DP speak CDC or FTDI instead of CH341?

Renate said:
The GN8 is host, the 3DP is peripheral? Or the other way around?
Can you make the 3DP speak CDC or FTDI instead of CH341?
Click to expand...
Click to collapse
Yes, GN8 is host.
I want to upload or modify a program to the connected 3D printer board by running ububtu on Android.
I know that it can be used by modifying the usb-serial of CH341.
However, I lack too much knowledge to run it on me.

Could you please take a look at this video?
This Korean man solved the problem, but unfortunately my ability is not enough to apply it to the Note 8 I use.
I studied on my own for three days, but I had no prior knowledge, so I ended up asking for help here.
Has anyone applied this type of modification to LineageOS or hades roms before?

I'm just saying that building kernels is tedious and often all the necessary drivers aren't released.
There are lots of different "serial" USB protocols:
FTDI232 and related
Prolific PL2303
Silabs CP2102 and related
CH340
Standard CDC
Life would be easier if you used one of these that are already supported in your kernel.
You could use both GN8 and 3DP as hosts and connect two USB/UART adapters back-to-back.
You could use USB gadget serial on the GN8 to have Android as the peripheral.
There is also Bluetooth SPP. Also WiFi. Also hardware UART in your phone.
But that's about all I know.

Thank you And I'm sorry. At my level, I can't quite understand what you're talking about...
I now know that there are many ways to solve my problem, but I don't have the knowledge to use it.
I just wish that function could be used without additional devices.

You really haven't given us any information.
What is the micro behind the 3DP? How do you know it's CH340? Can you recompile the micro's software instead of recompiling the kernel of the Android? Is there only USB on the micro or is there physical UART? Why do you even want to use the GN8? Why not a RPi?

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I apologize for my lack of explanation.
3d printers have a common printer port. usb 2.0
1. I am watching a 3D printer firmware installation lecture using Android, and I have the same model as the 3D printer used in the lecture there is. Android's usb serial must be opened so that you can manage the 3D printer's firmware with Android through it.
2. Information about usb-serial of CH341 was obtained from the lecture.
3. The reason I used the note8 was because it was used as an example in the lecture and because I got a cheap one just in time.
4. The reason why Android is used without using Raspberry Pi is because this lecture is for replacing Raspberry Pi with Android.
ok... see that learning Linux on my own would be good for the future.
thank you...

Ok, i've been steering you a bit wrong.
Support for all types of USB UART adapter in Linux comes from CONFIG_USB_SERIAL.
AFAIK, no OEM Android kernels come with that built in. You can check:
Code:
$ zcat /proc/config.gz | grep CONFIG_USB_SERIAL
# CONFIG_USB_SERIAL is not set
Under Android you can use UsbDevice, UsbConnection, UsbInterface, UsbEndpoint to talk to an adapter.
Of course you'll have to implement the CH341 protocol yourself.
There is no libusb.so so you only have the Android/Java/JNI way.
Do you have a terminal program on your GN8?
Plug in your 3DP (through an OTG adapter).
In terminal lsusb -v.
If you have a Linux or Windows desktop you can do it there too.
(Windows you'll need to look in DeviceManager, "Device instance path".)
Upon thinking about it, I've never used a USB UART adapter on Android.
I have used Bluetooth SPP (virtual serial).
I have implemented FTDI protocol on a micro.
I've interfaced with custom USB HID devices through Java.
I've made Android a custom USB HID device through USB Gadget.
Edit: Hmm, my Onn 7" Gen 3 Walmart tablet has CONFIG_USB_SERIAL

Related

Is there an App....

I wanna know if there is an app or something where i can control my t-mobile wing from my laptop without using a USB cable?
not to my knowledge. I've never heard of that.
EDIT : JUST REMEMBERED SOMETHING ... SEE MY POST BELOW
i know motorola phones have a program called "motorola phone tools" that let you do exactly what you are talking about. so your best bet is to see if HTC releases a similar tool.
taspankya said:
i know motorola phones have a program called "motorola phone tools" that let you do exactly what you are talking about. so your best bet is to see if HTC releases a similar tool.
Click to expand...
Click to collapse
I used to use MPT all of the time and I always had to have a USB cable connected to the phone to do anything.
There is nothing out there that I have heard of.
Well, come to think of it .... I just realized that MY MOBILIER SHOULD be able to do what you're talking about
which sort of fulfills the role of what motorola phone tools was...
My Mobilier gives you the option to connect via an IP address...
Technically, if you could connect your phone to the same WIFI network as your PC and seeing if it would connect that way? Assuming it would work, My Mobilier has an option that lets you choose between connecting via USB or IP address... I've never tried it ... but apparently it's possible....
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i know RDM+ allows you to control your desktop from anywhere using a internet connection. When i used to use it, i never thought about using it the other way. I would assume you would need the phone connected to the internet for this to work.
RDM+ is not freeware, you will have to purchase it. However, it does come with a free trial for u to test before making the decision.
JLine05 said:
I used to use MPT all of the time and I always had to have a USB cable connected to the phone to do anything.
There is nothing out there that I have heard of.
Click to expand...
Click to collapse
i used mpt with bluetooth, it limited some of the capabilities as compared to usb, but worked - none the less
He wants to control the phone from the PC ... not the PC from the phone.
Via Wifi.. hmm.. there are actually many programs wich enables you to connect to and other LAN PC. Like VNC. VNC basicly is a program that allows you to control an other host in your LAN area.
If you know what your PDA's LAN IP is then it should be a possibility.
For Example:
Go to your router settings and look through the hosts and see what your phone;s IP adress is.
Then start VNC and connect to that IP Adress. for example: your PC = 192.168.2.100. And your phone = 192.168.2.150.
Start VNC Server on your Phone wich i will include in this message IF IT WORKS!
open VNC and connect to IP: 192.168.2.150, wich is your phone.
Then a little screen should come up wich has your phone's today screen.
Then you should be able to control it.
EDIT:
OK it works, There are 3 programs that you need. I'll post them here in a ZIP.
First what you need to do is to get RealVNC viewer installed. Wich is VNC 4 1 2 and stuff.
Then you need to put PocketVNC.exe on your phone and start it. Tap ok in the setup screen.
Then install IP Dashboard ( ipdash_setup bla bla ) via Activesync.
This programs allows you to see your LAN IP address of your phone. It'll go on your today screen.
Then open up VNC Viewer on your PC and connect to that IP Address.
Now you can control your phone via Wifi.
Webcam is broken, sry about the vid.
Soti Pocket Controller should allow you to do that.."Connect through your ActiveSync or wired/wireless TCP/IP", listed as one of the features
Provided you can connect the mobile either via Bluetooth or WiFi
http://www.soti.net/default.asp?Cmd=Products&SubCmd=PCPro

HTC Battery Drainage Bug (Possible Fix)

Hello,
This is my first attempt at .NET CF programming. It is in reference to this thread.
It attempts to cycle the power to the GPS hardware eight times (at 200ms intervals) by calling GPSOpenDevice() and GPSCloseDevice().
It also shows the raw information provided by GetSystemPowerStatusEx2() if you need to troubleshoot your battery.
I'm not sure that it works, but it attempts to do programmatically what is described in the thread link above.
Full source code is included. I think it is also a great tutorial VB.NET project for anyone wanting to learn how to read the power on their device.
Please let me know what you think, and if it even works towards being a workaround for the HTC/Qualcomm chip standby-power drain bug. If it does work, I'll improve it (add autorun/exit-after capability, systray, etc..)
To use this without dealing with VS2005/compiling/etc, just copy HQPowerFix.exe from the bin/Release folder (in the zip) to your device (anywhere) and run it from there.
Note: These images are from my development machine. They look different on the device:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Regards,
--Weasel5i2
Nice idea! But it seems would be useful to cycle gps state not a fixed amount of times, but based on result of battery drainage (if it's below the certain level, the fix was succeed and no need to cycle gps anymore).
Also it would be useful to create a "command-line mode", when the program is starting and doing the fix without user interference. When done, it makes possible to launch iGo and this program from one script file, to implement the fix automatically after exit from iGo.
I found the MSDN documentation on the SYSTEM_POWER_STATUS_EX2 structure:
http://msdn.microsoft.com/en-us/library/aa926903.aspx.
It seems I didn't properly implement this structure's usage in my code, so I am planning to fix it tonight when I get home from the office.
@Vladimyr: That's a great idea, I do plan on doing that if this program turns out to be worthwhile and actually do the GPS power-drain fix as intended. Once I figure out how to more accurately read the mV/mA metrics, I will start working on that.
I'm also now working on a front-end/back-end for controlling a Car PC from a Pocket PC.. I think an older iPaq is cheaper than a Lilliput touchscreen
--W5i2
weasel5i2 said:
I found the MSDN documentation on the SYSTEM_POWER_STATUS_EX2 structure:
http://msdn.microsoft.com/en-us/library/aa926903.aspx.
It seems I didn't properly implement this structure's usage in my code, so I am planning to fix it tonight when I get home from the office.
@Vladimyr: That's a great idea, I do plan on doing that if this program turns out to be worthwhile and actually do the GPS power-drain fix as intended. Once I figure out how to more accurately read the mV/mA metrics, I will start working on that.
I'm also now working on a front-end/back-end for controlling a Car PC from a Pocket PC.. I think an older iPaq is cheaper than a Lilliput touchscreen
--W5i2
Click to expand...
Click to collapse
Any updates to your program? Also, is it possible to edit the thread title and put GPS in it? I'd been meaning to reference back to this one and it took me a while to find it.
HAVE ANYONE TRIED THIS ALREADY?
DID IT FIX THE PROBLEM?
weasel5i2 said:
Hello,
This is my first attempt at .NET CF programming. It is in reference to this thread.
It attempts to cycle the power to the GPS hardware eight times (at 200ms intervals) by calling GPSOpenDevice() and GPSCloseDevice().
It also shows the raw information provided by GetSystemPowerStatusEx2() if you need to troubleshoot your battery.
I'm not sure that it works, but it attempts to do programmatically what is described in the thread link above.
Full source code is included. I think it is also a great tutorial VB.NET project for anyone wanting to learn how to read the power on their device.
Please let me know what you think, and if it even works towards being a workaround for the HTC/Qualcomm chip standby-power drain bug. If it does work, I'll improve it (add autorun/exit-after capability, systray, etc..)
To use this without dealing with VS2005/compiling/etc, just copy HQPowerFix.exe from the bin/Release folder (in the zip) to your device (anywhere) and run it from there.
Note: These images are from my development machine. They look different on the device:
Regards,
--Weasel5i2
Click to expand...
Click to collapse
Doesnt work but nice idea

Accessing NAS - Addonics adaptor using Kiaser+Experia/WM6.1

Now that I have formally Introduced myself, I'm having issues with Accessing my NAS device. I've searched like crazy on the boards and cant seem to find anything along the issues that I've been having, even going as far as changing some registry items
The NAS Device in question is an Addonics NAS adapter with a Kingston 64GB thumbdrive plugged into it, and it's physically connected by CAT5 cable to my Wireless router - netgear DG834GT. I followed the instructions in the Manuals for getting it started ( quick install, and user manual - both PDF). There are 2 SMB profiles, one that I set up myself with a password, and a Guest profile without a password that was there by default.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and I've been able to access it appropriately the first time, through WIFI, by going through in windows : start -> run -> the Device's assigned IP (\\192.168.0.3) or the device's "name" ("\\kingston64GB) I'm able to get through to the thumbdrive without a problem, I've since applied shortcuts to the drive on My Laptop itself.
However I'm also trying to access the NAS through Both my winmo devices (kaiser and Experia, both running winmo 6.1, stock roms ) over wifi and I'm having no Joy. I've even tried going through The total command program that i saw elsewhere , and I still get the same thing happenening.
I go File explorer -> Menu -> go to -> open path -> new path I enter either the IP or device name that I mentioned Earlier and I get the a screen asking for a username, password and a "Domain"
Neither username and password combo that have been set up work with this, And I don't even know if there's a Correct "domain" for this.
Any help will be much appreciated, thanks in advance
Nas access
Hi deed-elvis,
Think the problem is that your nas system runs a samba server for file sharing. Myself i run a linux server at home and have the same issues.
And i haven't found a way to connect samba using windows mobile
Yup,
I've googled my fingers Raw, and it seems Winmo and Samba Do not want to play with each other.
Even The Tech support people at addonics agree on that front (see attatched)
NAS workaround
I had similar problems, however, there is a workaround: if your nas supports FTP, you can connect in that way. I use total commander on my winmo to connect to my Linux based NAS. For some reason this only seems to work over wifi; it seems that something about the WAN network (AT&T) makes my FTP unhappy.
try with htc network plug in and the share folder must have free access without passwords or user names
@wolframio74 I've tried the NAS setup utility, and at the very least i have to set up a username for it, it doesn't want to let me set up a profile with neither filled in =/
@afgncaap I'll try setting up FTP, I'll let you know how it goes

[REQ] Video Output app...

I have documents that show what needs to be done for the chip to put out video, I just don't know how on earth to program...code, or whatever you call it. Is this possible? or impossible? Who's willing to give it a shot?
What are you trying to accomplish? Be specific.
Yes, of course, I'm sorry....
A Jailbroken iPod Touch has the ability to output the whole UI (not just when playing a video) with the use of ScreenSplitr. I'm wondering if there's someone out there that would be able to develop the same thing so we could use the G1 as a good portable media device.
I'm currently using my iPod in my car as my media center/internet device...which I don't want to do anymore.
lbcoder said:
What are you trying to accomplish? Be specific.
Click to expand...
Click to collapse
I think he wants to output the frame buffer over usb.. I've thought of doing it before but I have no idea if it's possible.
Right...that's what I said...framebuffer...usb...I have a table with arm registers...I don't know what can be done with that...but yeah...I have it.
its noway to output video from a G1..the phone dont have the hardware for it..thats what i think
But it does...the chipset does...
Im sure it's possible to dump the screen output straight to usb, but then you need a program on the host pc to receive the feed. I use RemoteJoy to play my girlfriend's PSP on the tv.. it's essentially the same thing you're looking for.
I wish I could attach the file I have...It's actually in this link it shows a link to PDFs...
And, I meant video out like how the Touch Pro has...with a little HTC video cable output etc...
RavenII said:
I wish I could attach the file I have...It's actually in this link it shows a link to PDFs...
And, I meant video out like how the Touch Pro has...with a little HTC video cable output etc...
Click to expand...
Click to collapse
Tv Out, or something like that.
And I posted a thread asking if it could be developed but I guess the actual Drivers to the usb port can't do it or some junk.
See that's what I don't get...everyone keeps saying it's not doable, but the fact of the matter is, the chip supports it...so what is it that doesn't allow it? I've tried searching for "TV Out", "TV Output", "Video Out", "Video Output"...etc, throwing HTC, G1, Dream in to google, and come up with threads that seems like no one followed up on...
Andddd....this thread is dead....great.
The framebuffer is located at /dev/graphics/fb0. Reading this is trivial. For example, fbvncserver from here: http://code.google.com/p/android-vnc/ uses it as the display source.
You won't be able to get a video source straight from the hardware since this capability is physically not connected to anywhere, at least as far as I can tell. I know that an actual video out signal is generated by the "big chip" but you wont be able to get at it without butchering the mainboard. There is a slim possibility that these pins may be connected up to test pads on the mainboard, but I wouldn't count on it.
Either way, use of the framebuffer would definitely be the best approach, and can be done as is without much effort. What you do with this is up to you and your exact objectives -- as I've mentioned, you can *right now* just run fbvncserver and pull the video to a vnc client over the network connection (preferably wifi, bluetooth, or USB -- note that USB networking is possible using the program "wired tether for root users" and related driver...). VNC is probably a little slow though -- it won't carry video framerates.
See...I'm just up for discussion...brainstorm if you will...I don't know if many of you are into hardware, but typically, a chip HAS to be wired a certain way...
For example...the USB port on the bottom of the phone is typically configured where
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you notice, some pins can be assigned to different functions...I think the chip routes what to where...but I just don't know arm...or anything like that...
Yeah but your main problem is that you need to have a microusb to composite/component/s-video/hdmi dongle. Even if you did have that dongle you would still need drivers to support sending a video signal to that port and decoding it to be used by said output device. You might be able to make a break out box that can do the video separation but still getting it to that box involves a lot of drivers on both ends.
psychoace said:
Yeah but your main problem is that you need to have a microusb to composite/component/s-video/hdmi dongle.
Click to expand...
Click to collapse
HTC does make the cable, but it is meant for the various version of the HTC Touch and a few other HTC models.
See, there are a few WM based HTC phones that people have gotten to do video out that never even had the option listed...For example, my old HTC Mogul (Titan)...Simple registry hack, and 5 bucks later...Video output...or you could even get the app from a Touch Pro, and run it, and get video out.
http://forum.ppcgeeks.com/showthread.php?t=59236
Bueller....Bueller............Bueller?
http://forum.xda-developers.com/showthread.php?t=557717&page=13
Probably the closest you'll get for a while I'm afraid
Damn it, looks like i need to learn how to code...

[Q] Xperia Z Bluetooth Drivers

Hello All,
I've searched the General and Q&A Forums without finding an answer, so I thought I'd post here.
Picked up my Xperia Z yesterday, and tried to pair it via Bluetooth with my work laptop, (Lenovo W520) running Windows 7 64-bit. The phone was found and paired, but there are four Bluetooth devices that drivers cannot be found for. I tried installing the Sony Media Go application in the hopes that the requisite drivers would be included, but no luck so far. I also tried forcing each device to find a driver in the Media Go drivers directory c:\program files (x86)\Sony\Media Go\drivers\ and also search Windows Update, but nothing works. The Xperia is stock, build 10.1.A.1.350.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any ideas anyone?
Thanks in advance,
SF
AW: [Q] Xperia Z Bluetooth Drivers
Default Windows Bluetooth stack is **** and supports close to no profiles. Get yourself a compatible full featured Bluetooth stack (check Lenovo System Update and download Bluetooth software) and install it.
schaggo said:
Default Windows Bluetooth stack is **** and supports close to no profiles. Get yourself a compatible full featured Bluetooth stack (check Lenovo System Update and download Bluetooth software) and install it.
Click to expand...
Click to collapse
Well, you were right - the Lenovo Bluetooth driver solved everything and I now have all the usual AV and headset profile options as well as proximity locking and even the ability to use my PC keyboard and mouse to remote control my phone. I'm not sure how useful this is yet, but might come in handy if I ever get an MHL to HDMI cable!
Vielen Dank!
SF
Good day,
I have an similar issue like the OP of this thread:
I bought an Hama Nano-Bluetooth-USB-Adapter Version 2.1 + EDR Class2 and it worked fine with my old Galaxy S1.
Now I bought the Xperia Z and can't really connect with my computer.
I used as app "Bluetooth Remote PC" but it doesn't work (it worked well with Galaxy S1), so what can I actually do?
I didn't need a driver with Galaxy S1 but it seems I need one for Xperia Z.
I tried everything, what I found on the internet (actual drivers for the Bluetooth-USB-Adapter, some Bluetooth program which was strangely trail and so on), but nothing helps.
Now I think the problem might be the Xperia Z but I don't have any idea how to solve it.
Any ideas?
Regards.
Still in trouble here
Sushifiend said:
Well, you were right - the Lenovo Bluetooth driver solved everything and I now have all the usual AV and headset profile options as well as proximity locking and even the ability to use my PC keyboard and mouse to remote control my phone. I'm not sure how useful this is yet, but might come in handy if I ever get an MHL to HDMI cable!
Vielen Dank!
SF
Click to expand...
Click to collapse
Dear Sushifiend, I'm facing the same problem here. But I'd updated the Bluetooht driver (//support.lenovo.com/en_US/downloads/detail.page?DocID=DS029104) both on my X1 (Windows 7 64) and Twist (Windows 8) with no luck.
Can you share the URL of driver update that worked for you?
Thank you very much!
Did you manage to get the Remote Keyboard feature working?
Mine connects the bluetooth and laptop fine but that feature won't work.
Marcellus Pereira said:
Dear Sushifiend, I'm facing the same problem here. But I'd updated the Bluetooht driver (//support.lenovo.com/en_US/downloads/detail.page?DocID=DS029104) both on my X1 (Windows 7 64) and Twist (Windows 8) with no luck.
Can you share the URL of driver update that worked for you?
Thank you very much!
Click to expand...
Click to collapse
I can't because I let Lenovo System Update download and install the driver. I have no idea where it got it from!
SF
Just ignore those "!" devices
... those four (five) "Bluetooth Peripheral Devices" are also on my device manager with exclamation mark....
1. but when i tried to send a file and received a file from my laptop to and from xperia z (vise versa),.. it works just fine! for me... just ignore those four "!" ....
2. On your computer, right-click on your bluetooth icon status (mine is located at notification area, and look for the send or receive and click it!
3. hope this helps.

Categories

Resources