IO interface with Arduino over Ethernet

More
6 years 3 months ago #175267 by BosniaCNC
@gerritv: Marius specifically made it clear in his last post that he has not looked at the Mega port, it is not his code.
udpioMega.py:
#!/usr/bin/python
#udpioMEGA.py
# HAL userspace component to interface with Arduino board
# Copyright (C) 2015 Marius Liebenberg <marius@bluearccnc.com>
# Mods to use Mega2560 Robi Akerley-mcKee <kf6pqz@gmail.com>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
udpioMEGA.ino:
void decodeRx(char* rxbuffer, int buflen)
{

if(rxbuffer[0] == 'D') {
STEPPORT = atoi(rxbuffer[STEPPORTDATA]);
DIRPORT = atoi(rxbuffer[DIRPORTDATA]);
XTRPORT = atoi(rxbuffer[XTRPORTDATA]);
for(int i=0; i< PWMCOUNT; i++) {
analogWrite(pwmpinmap,atoi(rxbuffer[PWMDATA + i]));
}
return;

STDLib.h :
extern int atoi(const char *__s) __ATTR_PURE__;

ERROR: char * cannot be translated into atoi (const char * ....)

Attachment not found



forum.arduino.cc/index.php?topic=474206.0

I hope I was clear?
Best regards!

Please Log in to join the conversation.

More
6 years 3 months ago #175270 by gerritv
You just don't get it do you? Someone used Marius' code and ported it to the Mega. They chose to keep Marius' original copyright notice in the code, as they should. That does NOT make the port his code. In fact the line right below that indicates the name of the person who ported the code, i.e. Robi.

But hey, keep on going up this path, you could of course instead figure out what is wrong with the code and fix it yourself.

Please Log in to join the conversation.

More
6 years 3 months ago #175272 by BosniaCNC
@gerritv:
But hey, keep on going up this path, you could of course instead figure out what is wrong with the code and fix it yourself.
- / -
Rest assured that I will fix it and make it functional.No need to doubt!

Please Log in to join the conversation.

More
5 years 7 months ago #201102 by nickom44
Hi all, I'm experimenting with Arduino ethernet shield but I'm getting errors regarding the gwibber.microblog.can import. has anybody experienced this and come across any workarounds?

Thanks
Nick

Please Log in to join the conversation.

More
5 years 7 months ago #201460 by nickom44
I have been looking into this issue and found using either:

STEPPORT = (int)(rxbuffer[STEPPORTDATA]); //Casting char buffer in rxbuffer[STEPPORTDATA] to an (int) then assign to STEPPORT seems to work.

My main issue now is bypassing the gwibber library, I don't understand why this is used and how to create a work around

(been experimenting with:
#received = service.recv(150) #Gwibber function for receiving data - no idea what it is
received = service.recvfrom(150) #USING SOCK instead of gwibber

But experiencing other problems

Please Log in to join the conversation.

More
4 years 8 months ago #234095 by virencq
I also installed on arduino Uno. Under Halshow Iam not being able to toggle Input pins.
Please guide me how to use input/output from arduino.

Please Log in to join the conversation.

More
3 years 10 months ago #260247 by GaryLa

Linux is a whole lot easier to code - compared to MICROSOFT!

Windows has so many layers of permissions, grants, rights to access admin for each and every move - it's evolved to take the fun out of coding and bring misery of security! I can't go on about how many bible sized books I studied to try and learn how to write a hardware device driver in windows.....

 
Windows is designed by and for the mind of a bureaucrat. These are people who like complications and details for the sake of being complicated and detailed. The less purpose it serves, the better.

In the Hitchhiker's Guide to the Galaxy, these people were referred to as "Vogons".

Please Log in to join the conversation.

More
3 years 10 months ago #260249 by tommylight


In the Hitchhiker's Guide to the Galaxy, these people were referred to as "Vogons".
Seems like everywhere you look there is more and more of those Vogons!
I would put a smiley face, but it is not a laughing matter any more.
Thank you for reminding me, will dig out the movie and watch it, if i can.

Please Log in to join the conversation.

More
3 years 10 months ago #260516 by M4MazakUser
Not being a vogon myself,  how was the Ethernet to arduino going? I was looking at using classicladder/modbus to access arduino i/o, as It looks easier,  but I'm just browsing currently. 

Please Log in to join the conversation.

Time to create page: 0.302 seconds
Powered by Kunena Forum