Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 12:29:47 00:29


Login with username, password and session length


Pages: [1]
Print
Author Topic: PIC 18F USB Development Recommendations  (Read 5397 times)
0 Members and 1 Guest are viewing this topic.
Parad1gm
Newbie
*
Offline Offline

Posts: 18

Thank You
-Given: 20
-Receive: 14


« 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 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-stack

take care,
X!
Logged

-> An Apple a Day does not Let U become a Macintosh!
Sideshow Bob
Cracking Team
Hero Member
****
Offline Offline

Posts: 1002

Thank You
-Given: 231
-Receive: 983



« 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 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 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 Offline

Posts: 220

Thank You
-Given: 126
-Receive: 307


« 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.html
The 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  Smiley ) to make one.
@+
Folkeu

« Last Edit: April 23, 2020, 09:55:55 09:55 by folkeu » Logged
especialista
Junior Member
**
Offline Offline

Posts: 50

Thank You
-Given: 84
-Receive: 161



WWW
« 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.pas

They are Free Pascal bindings for libhidapi on Linux and work flawlessly (at least, to me!!)
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4668

Thank You
-Given: 834
-Receive: 4321


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 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 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 Offline

Posts: 18

Thank You
-Given: 20
-Receive: 14


« 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 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 Offline

Posts: 40

Thank You
-Given: 73
-Receive: 44

Ph.D.


« Reply #12 on: May 12, 2020, 03:54:41 15:54 »

I don't have this PDF, but maybe if you can find it, it might work.

http://www.ebookdownl.com/book.php?i=11&g=ebook&b=123140&n=Advanced+PIC+Microcontroller+Projects+in+C+From+USB+to+ZIGBEE+with+the+PIC+18F+Series
Logged

...none...
Parad1gm
Newbie
*
Offline Offline

Posts: 18

Thank You
-Given: 20
-Receive: 14


« Reply #13 on: May 12, 2020, 10:46:06 22:46 »


Stumbled across this:
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC