Parad1gm
Newbie
Offline
Posts: 18
Thank You
-Given: 20
-Receive: 15
|
|
« on: April 21, 2020, 07:21:17 19:21 » |
|
I have a few PIC 18F4450 I would like to use for usb development but have 0 skills when it comes to USB development. Anyone have any recommendations on USB stack or USB Tutorials / Books?
|
|
|
Logged
|
|
|
|
Manuel
Senior Member
Offline
Posts: 329
Thank You
-Given: 680
-Receive: 192
|
|
« Reply #1 on: April 21, 2020, 07:56:42 19:56 » |
|
Can be helpful I think: https://github.com/signal11/m-stacktake care, X!
|
|
|
Logged
|
-> An Apple a Day does not Let U become a Macintosh!
|
|
|
Sideshow Bob
Cracking Team
Hero Member
Offline
Posts: 1002
Thank You
-Given: 231
-Receive: 986
|
|
« Reply #2 on: April 21, 2020, 08:14:15 20:14 » |
|
You also have the tool hidmakerfs. My give you some help in the USB process. Take a look here http://www.sonsivri.to/forum/index.php?topic=925.0;topicseen
|
|
|
Logged
|
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
|
|
|
towlerg
Senior Member
Offline
Posts: 263
Thank You
-Given: 474
-Receive: 104
What is this for?
|
|
« Reply #3 on: April 22, 2020, 02:04:10 14:04 » |
|
Of course there is also the bible, USB Complete by Jan Axelson. He has a very informative forum.
|
|
|
Logged
|
Win 7 Ult x64 SP1 on HP2570p
|
|
|
HackAndCrack
Senior Member
Offline
Posts: 294
Thank You
-Given: 175
-Receive: 802
|
|
« Reply #4 on: April 22, 2020, 02:45:49 14:45 » |
|
easyUSBHIDNetClass.dll can be used with mikroC PRO PIC code easily.
Libstock.com has example for it.
|
|
|
Logged
|
|
|
|
folkeu
Active Member
Offline
Posts: 220
Thank You
-Given: 127
-Receive: 311
|
|
« Reply #5 on: April 23, 2020, 09:46:22 09:46 » |
|
Hi, This can help you too but it's in french : https://www.roboticus.org/electronique/usb/9-carte-dinterface-sur-port-usb-protocole-hid.htmlThe author's information and sources are accurate. What it offers basically works to get you started. It uses a non-free third-party DLL to communicate with the PIC. There is another solution without DLL with the JhidDeviceController component of the JVCL library for software development with Delphi (Embarcadero). it has been converted for use under Lazarus ( https://github.com/LongDirtyAnimAlf/FPC-USB-HID). While searching for the Pascal language, I saw that there was the same for C. Here is my contribution to help you get started. If you modify the HID descriptor in the example, you may need "HidMaker" (see in the forum ) to make one. @+ Folkeu
|
|
« Last Edit: April 23, 2020, 09:55:55 09:55 by folkeu »
|
Logged
|
|
|
|
especialista
Junior Member
Offline
Posts: 50
Thank You
-Given: 84
-Receive: 161
|
|
« Reply #6 on: May 02, 2020, 05:46:53 17:46 » |
|
If you plan to connect this USB device to a Raspberry PI or any Linux Based System, take a look at this files: https://github.com/prof7bit/HIDAPI.pasThey are Free Pascal bindings for libhidapi on Linux and work flawlessly (at least, to me!!)
|
|
|
Logged
|
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4668
Thank You
-Given: 835
-Receive: 4328
There is no evidence that I muted SoNsIvRi
|
|
« Reply #7 on: May 02, 2020, 06:49:42 18:49 » |
|
there is a good sample in Proteus >> PICDEM FS USB
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
FTL
Junior Member
Offline
Posts: 83
Thank You
-Given: 170
-Receive: 33
|
|
« Reply #8 on: May 02, 2020, 11:14:41 23:14 » |
|
A small note for Towlerg - Jan Axelson is a she, not a he, although it is probably politically incorrect to point that out these days.
|
|
|
Logged
|
|
|
|
towlerg
Senior Member
Offline
Posts: 263
Thank You
-Given: 474
-Receive: 104
What is this for?
|
|
« Reply #9 on: May 03, 2020, 11:16:52 11:16 » |
|
Wow I had no idea. Is it wrong that my first reaction was that she must be even clever than I thought?
|
|
|
Logged
|
Win 7 Ult x64 SP1 on HP2570p
|
|
|
Parad1gm
Newbie
Offline
Posts: 18
Thank You
-Given: 20
-Receive: 15
|
|
« Reply #10 on: May 12, 2020, 01:16:07 13:16 » |
|
Thankyou. I'm starting with USB complete so I can get an idea what i'm doing when creating the endpoints etc. I will come back to this thread after I've gained some knowledge and fustrated myself to the point of asking for help again.
|
|
|
Logged
|
|
|
|
avrlover
Active Member
Offline
Posts: 115
Thank You
-Given: 50
-Receive: 219
|
|
« Reply #11 on: May 12, 2020, 01:47:04 13:47 » |
|
USB Is complex protocol it is not simple as using serial ports But if you want to use PIC18F4550 i your projects u can read book PIC Microcontroller Projects in C: Basic to Advanced WHITH contains good chapter on USB using PIC18F4550 book link ,,http://docentes.uni.edu.ni/fec/Alejandro.Mendez/Advanced%20PIC%20Microcontroller%20Projects%20in%20C.pdf do not start USB complete first as it is very difficult to grasp first time use another book from here http://silanus.fr/sin/formationISN/Robotique/Logiciels/CCS/Data%20Sheets/Development%20Kit%20for%20the%20USB%20Exercise%20Book.pdf which uses PIC CCS complier very easy to generate code for pic18f4550 for usb also from this site you can learn allot from this site https://www.studentcompanion.co.za/usb-communication-device-class-with-pic-microcontroller-mikroc/ which PIC18F4550 USB HID AND different projects
|
|
|
Logged
|
|
|
|
comlekciler
Junior Member
Offline
Posts: 40
Thank You
-Given: 73
-Receive: 44
Ph.D.
|
|
« Reply #12 on: May 12, 2020, 03:54:41 15:54 » |
|
|
|
|
Logged
|
...none...
|
|
|
Parad1gm
Newbie
Offline
Posts: 18
Thank You
-Given: 20
-Receive: 15
|
|
« Reply #13 on: May 12, 2020, 10:46:06 22:46 » |
|
|
|
|
Logged
|
|
|
|
|